apenwarr-redo/docs/cookbook/container/rdinit
Avery Pennarun 3923a7d3f8 cookbook/container: example of building+running docker containers.
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.
2019-01-08 01:42:33 -05:00

5 lines
104 B
Bash
Executable file

#!/bin/sh
busybox mount -t devtmpfs none /dev
/init >/dev/ttyS1
echo $? >/dev/ttyS2
busybox poweroff -f