#! /bin/sh # # My startup script - webcam etc # note, when changed do the following at a ssh command line- # update-rc.d -f graham_startup.sh remove # update-rc.d -f graham_startup.sh defaults 99 # # Now carry out specific functions when asked to by the system case "$1" in start) # to be worked on # mjpg_streamer -b -i "input_uvc.so -r 960x720" -o "output_http.so -p 8088 -w /webcam_www" # /usr/local/bin/motion mkdir /var/www/ramdisk mount -o size=2M -t tmpfs tmpfs /var/www/ramdisk # espeak -s 140 'starting sole err hot water display' > /dev/null 2>&1 # /home/graham/i2c/solar/solar_display.bas # modprobe rdc321x_gpio # modprobe i2c-algo-bit # modprobe i2c-gpio # modprobe i2c-gpio-custom bus0=0,12,9 modprobe i2c-dev # modprobe snd-pcm-oss # i2c-core not needed here - seems to be present after these loaded # aplay /home/graham/sound/apegconn.wav flite -t "the system is redee" ;; stop) ;; *) echo "Usage: /etc/init.d/graham_startup.sh {start|stop}" exit 1 ;; esac exit 0