-
-
Save anonymous/7b12fdb5d7def9a835291a79c060fa07 to your computer and use it in GitHub Desktop.
This file contains 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 | |
mkdir -p /proc && mount -t proc none /proc | |
mkdir -p /sys && mount -t sysfs none /sys | |
mount -t debugfs none /sys/kernel/debug/ | |
mkdir -p /dev && mount -t devtmpfs none /dev | |
mkdir -p /run/udev | |
udevadm hwdb --update | |
udevd --daemon | |
udevadm trigger | |
# load modules | |
for m in /lib/modules/$(uname -r)/*; do | |
modprobe $(basename $m .ko) | |
done | |
# setup udhcpc client scropt | |
[ ! -f /usr/share/udhcpc/default.script ] && { | |
mkdir -p /usr/share/udhcpc | |
echo "#!/bin/sh" > /usr/share/udhcpc/default.script | |
echo "ifconfig \$interface \$ip" >> /usr/share/udhcpc/default.script | |
chmod +x /usr/share/udhcpc/default.script | |
} | |
# setup default root password | |
[ ! -f /etc/password ] && { | |
echo root:x:0:0:root:/root:/bin/ash > /etc/passwd | |
} | |
watchdog -t 5 -T 10 /dev/watchdog |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment