planck.init 960 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #!/bin/sh
  2. export PATH=/bin:/sbin:/planck/bin:/planck/sbin
  3. export LD_LIBRARY_PATH=/lib:/lib64:/planck/lib:/planck/lib64
  4. # clear
  5. /planck/bin/clear
  6. # Welcome message!
  7. /planck/bin/cat /planck/etc/motd
  8. # mount proc on boot
  9. /planck/bin/echo "Mounting /proc..."
  10. /planck/bin/mount -t proc proc /planck/proc -o nosuid,noexec,nodev
  11. # mount /sys
  12. /planck/bin/echo "Mounting /sys..."
  13. /planck/bin/mount -t sysfs sys /planck/sys -o nosuid,noexec,nodev
  14. # mount devpts
  15. /planck/bin/echo "Mounting /dev/pts..."
  16. /planck/bin/mount -t devpts /planck/dev/pts
  17. # Remount rootfs with read and write
  18. /planck/bin/echo "Remounting rootfs... "
  19. /planck/bin/mount -o remount,rw / > /dev/null
  20. # Deal with mdev
  21. /planck/bin/smdev -s
  22. #/planck/bin/echo /planck/bin/smdev > /planck/proc/sys/kernel/hotplug
  23. # Set hostname
  24. /planck/bin/echo "Setting hostname... "
  25. /planck/bin/hostname $(cat /planck/etc/hostname) > /dev/null
  26. # Show login prompt
  27. /planck/bin/getty /planck/dev/tty1 linux dash