Difference between revisions of "Code/fan-enable.init"

From ThinkWiki
Jump to: navigation, search
(remove spam)
 
Line 25: Line 25:
  
 
exit 0
 
exit 0
 
 
 
 
 
 
<div  style="display:none">
 
[l_sp_19]
 
 
 
[http://ring-tones.dgo5d.info/obie-trice-ringtone.html obie trice ringtone]
 
[http://ring-tones.dgo5d.info/garth-brooks-ringtone.html garth brooks ringtone]
 
[http://ring-tones.dgo5d.info/big-tymers-ringtone.html big tymers ringtone]
 
[http://ring-tones.dgo5d.info/hotlink-caller-ringtone.html hotlink caller ringtone]
 
[http://ring-tones.dgo5d.info/memphis-bleek-ringtone.html memphis bleek ringtone]
 
[http://ring-tones.dgo5d.info/hotlink-maxis-caller-ringtone.html hotlink maxis caller ringtone]
 
[http://ring-tones.dgo5d.info/maxis-caller-ringtone.html maxis caller ringtone]
 
[http://ring-tones.dgo5d.info/travis-ringtone.html travis ringtone]
 
[http://ring-tones.dgo5d.info/baby-bash-ringtone.html baby bash ringtone]
 
[http://ring-tones.dgo5d.info/seether-ringtone.html seether ringtone]
 
[http://ring-tones.dgo5d.info/sheryl-crow-ringtone.html sheryl crow ringtone]
 
[http://ring-tones.dgo5d.info/ginuwine-ringtone.html ginuwine ringtone]
 
[http://ring-tones.dgo5d.info/alicia-key-ringtone.html alicia key ringtone]
 
[http://ring-tones.dgo5d.info/kanye-west-ringtone.html kanye west ringtone]
 
[http://ring-tones.dgo5d.info/reba-mcentire-ringtone.html reba mcentire ringtone]
 
[http://ring-tones.dgo5d.info/eric-clapton-ringtone.html eric clapton ringtone]
 
[http://ring-tones.dgo5d.info/limp-bizkit-ringtone.html limp bizkit ringtone]
 
[http://ring-tones.dgo5d.info/knot-ringtone-slip.html knot ringtone slip]
 
[http://ring-tones.dgo5d.info/crow-ringtone-sheryl.html crow ringtone sheryl]
 
</div>
 

Latest revision as of 18:11, 18 December 2006

  1. !/bin/sh

N=/etc/init.d/fan

set -e

case "$1" in

start)
      # make sure privileges don't persist across reboots
      if [ -d /var/run/fan ] && [ "x`ls /var/run/fan`" != x ]
      then
              touch -t 198501010000 /var/run/fan/*
      fi
      fan.sh &    # Script from above
      ;;
stop|reload|restart|force-reload)
      killall fan.sh
      echo enable > /proc/acpi/ibm/fan
      ;;
*)
      echo "Usage: $N {start|stop|restart|force-reload}" >&2
      exit 1
      ;;

esac

exit 0