#------------------------------------------------------------------------------ # /etc/boot.d/fscpc-hw __FLI4LVER__ # # Creation: 10.09.2006 gdw # Last Update: $Id$ #------------------------------------------------------------------------------ embd_load_drivers() { # set type for embedded daemon # h - hardware # d - device # p - pc # s - sim embd_type="-t p" } watchdogd_load_drivers() { # Hardware has _2_ Watchdogs - we use the chipset-one because this one really does the 15 Seconds # the sensor-chip-one reboots much earlier do_modprobe itco_wdt sleep 2 # do_modprobe i2c-i801 # do_modprobe fschmd } # return 0 on success i2c_load_drivers() { if [ -z "`grep i2c-i801 /proc/modules`" ] then do_modprobe i2c-i801 fi if [ -z "`grep fschmd /proc/modules`" ] then do_modprobe fschmd fi do_modprobe processor do_modprobe intel-rng } # returns temperature in $temperature i2c_get_temperature() { t1=`sed 's/\([0-9]\{3\}\)$/.\1/' /sys/class/hwmon/hwmon0/device/temp1_input` t2=`sed 's/\([0-9]\{3\}\)$/.\1/' /sys/class/hwmon/hwmon0/device/temp2_input` temperature="$t1/$t2" }