- #!/bin/sh
- # Startup script for penguinbait crap
- #
- # Carry out specific functions when asked to by the system
- case "$1" in
- start)
- echo "Starting script penguinbaits crap"
- #Load modules plus check and mount local.img
- find /mnt/initfs/ -name mbcache.ko 2> /dev/null | xargs insmod
- find /mnt/initfs/ -name ext2.ko 2> /dev/null | xargs insmod
- rm /tmp/fsck.txt
- for i in `ls /dev/mmcblk[0-2]`
- do
- sfdisk -l $i 2> /dev/null | grep -v "Linux swap" | grep Linux | grep "/dev/" | awk '{print $1}' | xargs fsck -y >> /tmp/fsck.txt
- done
- /usr/bin/play-sound /root/.linus/linus.wav
- ;;
- stop)
- echo "Stopping script blah"
- ;;
- *)
- echo "Usage: /etc/init.d/local.sh {start|stop}"
- exit 1
- ;;
- esac
- #attery-status -d 10 >> /media/mmc1/battery.log &
- exit 0
Posted by None on Thu 19 Jun 10:38
report abuse | download | new post
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.