Last active
May 2, 2019 18:16
-
-
Save ryanwoodsmall/33968dae347543aab94ebb7f6e3fddac to your computer and use it in GitHub Desktop.
busybox_lxc_files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
/bin/test -e /etc/fstab && /bin/mount -a | |
/bin/test -e /dev/urandom || /bin/mknod -m 666 /dev/urandom c 1 9 | |
/bin/test -e /dev/zero || /bin/mknod -m 666 /dev/zero c 1 5 | |
/bin/test -e /dev/null || /bin/mknod -m 666 /dev/null c 1 3 | |
/bin/syslogd | |
/bin/ifconfig eth0 0.0.0.0 up | |
/bin/udhcpc -b -v |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# default | |
# ::sysinit:/etc/init.d/rcS | |
# ::askfirst:/bin/sh | |
# ::ctrlaltdel:/sbin/reboot | |
# ::shutdown:/sbin/swapoff -a | |
# ::shutdown:/bin/umount -a -r | |
# ::restart:/sbin/init | |
# tty2::askfirst:/bin/sh | |
# tty3::askfirst:/bin/sh | |
# tty4::askfirst:/bin/sh | |
#tty1::respawn:/bin/getty -L tty1 115200 vt100 | |
#console::askfirst:/bin/sh | |
#::askfirst:/bin/sh | |
::sysinit:/etc/init.d/rcS | |
console::askfirst:/bin/cttyhack /bin/ash -il |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
auto eth0 | |
allow-hotplug eth0 | |
iface eth0 inet dhcp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/bin/sh | |
/bin/ash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment