#------------------------------------------------------------------------------ # /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() { do_modprobe itco_wdt sleep 2 # do_modprobe i2c-i801 # do_modprobe w83627ehf } # return 0 on success i2c_load_drivers() { if [ -z "`grep i2c-i801 /proc/modules`" ] then do_modprobe i2c-i801 fi if [ -z "`grep w83627ehf /proc/modules`" ] then do_modprobe w83627ehf fi for i in processor p4-clockmod cpufreq_powersave cpufreq_userspace cpufreq_ondemand cpufreq_stats processor thermal video button evdev intel-agp intelfb do do_modprobe $i done echo performance >/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor # We do not use cpudyn actually, because it freezes with smp kernel # /sbin/cpudynd -i 10 -d } # returns temperature in $temperature i2c_get_temperature() { t1=`sed 's/\([0-9]\{3\}\)$/.\1/' /sys/devices/platform/w83627ehf.656/temp1_input` t2=`sed 's/\([0-9]\{3\}\)$/.\1/' /sys/devices/platform/w83627ehf.656/temp2_input` temperature="$t1/$t2" }