1234567891011121314151617181920212223242526272829303132333435363738 |
- #!/bin/sh
- export PATH=/bin:/sbin:/planck/bin:/planck/sbin
- export LD_LIBRARY_PATH=/lib:/lib64:/planck/lib:/planck/lib64
- # clear
- /planck/bin/clear
- # Welcome message!
- /planck/bin/cat /planck/etc/motd
- # mount proc on boot
- /planck/bin/echo "Mounting /proc..."
- /planck/bin/mount -t proc proc /planck/proc -o nosuid,noexec,nodev
- # mount /sys
- /planck/bin/echo "Mounting /sys..."
- /planck/bin/mount -t sysfs sys /planck/sys -o nosuid,noexec,nodev
- # mount devpts
- /planck/bin/echo "Mounting /dev/pts..."
- /planck/bin/mount -t devpts /planck/dev/pts
- # Remount rootfs with read and write
- /planck/bin/echo "Remounting rootfs... "
- /planck/bin/mount -o remount,rw / > /dev/null
- # Deal with mdev
- /planck/bin/smdev -s
- #/planck/bin/echo /planck/bin/smdev > /planck/proc/sys/kernel/hotplug
- # Set hostname
- /planck/bin/echo "Setting hostname... "
- /planck/bin/hostname $(cat /planck/etc/hostname) > /dev/null
- # Show login prompt
- /planck/bin/getty /planck/dev/tty1 linux dash
|