pastebin - collaborative debugging

pastebin is a collaborative debugging tool allowing you to share and modify code snippets while chatting on IRC, IM or a message board.

This site is developed to XHTML and CSS2 W3C standards. If you see this paragraph, your browser does not support those standards and you need to upgrade. Visit WaSP for a variety of options.

pastebin - collaborative debugging tool View Help


Posted by None on Thu 19 Jun 10:38
report abuse | download | new post

  1. #!/bin/sh
  2. # Startup script for penguinbait crap
  3. #
  4.  
  5. # Carry out specific functions when asked to by the system
  6. case "$1" in
  7.   start)
  8.     echo "Starting script penguinbaits crap"
  9.  
  10. #Load modules plus check and mount local.img
  11. find /mnt/initfs/ -name mbcache.ko 2> /dev/null | xargs insmod
  12. find /mnt/initfs/ -name ext2.ko 2> /dev/null | xargs insmod
  13.  
  14. rm /tmp/fsck.txt
  15. for i in `ls /dev/mmcblk[0-2]`
  16. do
  17. sfdisk -l $i 2> /dev/null | grep -v "Linux swap" | grep Linux | grep "/dev/" | awk '{print $1}' | xargs fsck -y >> /tmp/fsck.txt
  18. done
  19. /usr/bin/play-sound /root/.linus/linus.wav
  20.     ;;
  21.   stop)
  22.     echo "Stopping script blah"
  23.     ;;
  24.   *)
  25.     echo "Usage: /etc/init.d/local.sh {start|stop}"
  26.     exit 1
  27.     ;;
  28. esac
  29. #attery-status -d 10 >> /media/mmc1/battery.log &
  30. exit 0

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.

Syntax highlighting:

To highlight particular lines, prefix each line with @@


Remember me so that I can delete my post