#------------------------------------------------------------------------------ # /etc/boot.d/p640-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_if_exists kernel/drivers/watchdog w83627hf_wdt return 0 } # return 0 on success i2c_load_drivers() { # do_modprobe_if_exists kernel/arch/x86/kernel/cpu/cpufreq longhaul # do_modprobe_if_exists kernel/drivers/cpufreq cpufreq_powersave # do_modprobe_if_exists kernel/drivers/cpufreq cpufreq_userspace # do_modprobe_if_exists kernel/drivers/cpufreq cpufreq_stats do_modprobe_if_exists kernel/drivers/hwmon w83627hf do_modprobe_if_exists kernel/drivers/char/hw_random via-rng do_modprobe_if_exists kernel/arch/x86/crypto aes-i586 do_modprobe_if_exists kernel/drivers/crypto padlock-aes do_modprobe_if_exists kernel/drivers/crypto padlock do_modprobe_if_exists kernel/drivers/i2c/busses i2c-viapro do_modprobe_if_exists kernel/drivers/misc/eeprom eeprom # if [ -d /sys/devices/system/cpu/cpu0/cpufreq/ ] # then # echo conservative >/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor # /sbin/cpudynd -i 1 -d # fi sleep 1 } # returns temperature in $temperature i2c_get_temperature() { temperature=`sed 's/\(..\)\(...\)/\1.\2/'