1# This is run first except when booting in single-user mode. 2 3# Startup the system 4::sysinit:/bin/mount -t proc proc /proc 5::sysinit:/bin/mount -t sysfs sysfs /sys 6::sysinit:/bin/mount -t devtmpfs devtmpfs /dev 7::sysinit:/bin/mount -o remount,rw / 8::sysinit:/bin/mkdir -p /dev/pts 9::sysinit:/bin/mount -t devpts devpts /dev/pts 10::sysinit:/bin/mount -a 11::sysinit:/sbin/swapon -a 12null::sysinit:/bin/ln -sf /proc/self/fd /dev/fd 13null::sysinit:/bin/ln -sf /proc/self/fd/0 /dev/stdin 14null::sysinit:/bin/ln -sf /proc/self/fd/1 /dev/stdout 15null::sysinit:/bin/ln -sf /proc/self/fd/2 /dev/stderr 16# set hostname 17null::sysinit:/bin/busybox hostname -F /etc/hostname 18::sysinit:/etc/init.d/rcS 19 20# Stuff to do before rebooting 21#::ctrlaltdel:/sbin/reboot 22::shutdown:/etc/init.d/rcK 23::shutdown:/sbin/swapoff -a 24::shutdown:/bin/umount -a -r 25 26# Stuff to do when restarting the init process 27::restart:/sbin/init 28 29