#------------------------------------------------------------------------------ # /etc/boot.d/alix-hw __FLI4LVER__ # # Creation: 10.09.2006 gdw # Last Update: $Id$ #------------------------------------------------------------------------------ alix_error() { log_error "No support for kernel version 2.4 and alix hardware" } embd_load_drivers() { do_modprobe_if_exists kernel/driver/char hw_random do_modprobe_if_exists kernel/drivers/char/hw_random geode-rng do_modprobe_if_exists kernel/arch/x86/crypto aes-i586 do_modprobe_if_exists kernel/drivers/crypto geode-aes if [ -f /lib/modules/${KERNEL_VERSION}/kernel/crypto/ocf/cryptodev.ko ] then mknod /dev/crypto c 10 70 do_modprobe cryptosoft do_modprobe cryptodev fi do_modprobe cs5535_gpio major=253 mask=0x0b000040 mknod -m 666 /dev/embdled1 c 253 6 mknod -m 666 /dev/embdled2 c 253 25 mknod -m 666 /dev/embdled3 c 253 27 mknod -m 666 /dev/embdbutton c 253 24 embd_type="-t device" } watchdogd_load_drivers() { if [ 0$kernel_minor -gt 24 ] then if [ -n "`pcengines | grep 'MFGPT fix : disabled'`" ] then do_modprobe_if_exists kernel/drivers/watchdog geodewdt else log_error "loading alix watchdog driver while MFGPT fix is enabled is not supported - skipped loading" fi else # 2.6.16.xx if [ -n "`pcengines | grep 'MFGPT fix : enabled'`" ] then do_modprobe_if_exists kernel/drivers/char/watchdog geodewdt else log_error "loading alix watchdog driver while MFGPT fix is disabled will freeze system - skipped loading" fi fi } # return 0 on success i2c_load_drivers() { : ${EMBEDDED_SENSOR_DRV:=lm90} do_modprobe scx200_acb && do_modprobe $EMBEDDED_SENSOR_DRV } i2c_get_temperature() { t1=`sed 's/\([0-9]\{3\}\)$/.\1/' /sys/bus/i2c/devices/0-004c/temp2_input` t2=`sed 's/\([0-9]\{3\}\)$/.\1/' /sys/bus/i2c/devices/0-004c/temp1_input` temperature="$t1/$t2" }