This got... long... and complicated. But I think it's a really good demonstration of getting redo to do complicated things elegantly. At least, I hope it is.
5 lines
104 B
Bash
Executable file
5 lines
104 B
Bash
Executable file
#!/bin/sh
|
|
busybox mount -t devtmpfs none /dev
|
|
/init >/dev/ttyS1
|
|
echo $? >/dev/ttyS2
|
|
busybox poweroff -f
|