boot 503 B

123456789101112131415161718192021222324252627
  1. #!/bin/sh
  2. #INIT 10
  3. [[ $1 = autostart ]] || exit 0
  4. . /etc/functions.sh
  5. mkdir -p /var/log
  6. mkdir -p /var/run
  7. touch /var/log/lastlog
  8. touch /var/log/wtmp
  9. ln -s /var/tmp /tmp
  10. echo 0 > /proc/sys/kernel/printk
  11. HOSTNAME=
  12. [[ -s /etc/hostname ]] && HOSTNAME=$(cat /etc/hostname)
  13. HOSTNAME=${HOSTNAME%%.*}
  14. echo ${HOSTNAME:=linux} >/proc/sys/kernel/hostname
  15. chown 0:0 /tmp; chmod 1777 /tmp
  16. load_modules /etc/modules
  17. for f in /etc/modules.d/*; do
  18. [[ -e $f ]] && load_modules /etc/modules.d/*
  19. break
  20. done
  21. exit 0