38 lines
958 B
Bash
Executable File
38 lines
958 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# System initialization sequence:
|
|
#
|
|
# /init
|
|
# |
|
|
# +--(1) /etc/01_prepare.sh (this file)
|
|
# |
|
|
# +--(2) /etc/02_overlay.sh
|
|
# |
|
|
# +-- /etc/03_init.sh
|
|
# |
|
|
# +-- /sbin/init
|
|
# |
|
|
# +--(1) /etc/04_bootscript.sh
|
|
# | |
|
|
# | +-- udhcpc
|
|
# | |
|
|
# | +-- /etc/05_rc.udhcp
|
|
# |
|
|
# +--(2) /bin/sh (Alt + F1, main console)
|
|
# |
|
|
# +--(2) /bin/sh (Alt + F2)
|
|
# |
|
|
# +--(2) /bin/sh (Alt + F3)
|
|
# |
|
|
# +--(2) /bin/sh (Alt + F4)
|
|
|
|
echo "Suppress most kernel messages."
|
|
dmesg -n 1
|
|
|
|
echo "Mount all core filesystems."
|
|
mount -t devtmpfs none /dev
|
|
mount -t proc none /proc
|
|
mount -t tmpfs none /tmp -o mode=1777
|
|
mount -t sysfs none /sys
|
|
|