#------------------------------------------------------------------------------ # /etc/boot.d/soekris-hw __FLI4LVER__ # # Creation: 10.09.2006 gdw # Last Update: $Id$ #------------------------------------------------------------------------------ embd_load_drivers() { do_modprobe scx200_gpio sleep 1 major=`sed -n '/scx200/s/ .*//p' /proc/devices` mknod -m 600 /dev/gpio0 c $major 0 mknod -m 600 /dev/gpio1 c $major 1 mknod -m 600 /dev/embdled1 c $major 20 # access via device, one led, inverted logik, no button embd_type="-t device -n 1 -i -b" } watchdogd_load_drivers() { do_modprobe scx200_wdt sleep 1 } i2c_load_drivers() { do_modprobe pc87360 init=3 && do_modprobe lm78 } i2c_get_temperature() { temperature="`sed 's/\([0-9]\{3\}\)$/.\1/' /sys/class/hwmon/hwmon0/device/temp3_input | cut -d'.' -f1`" } embedded_subtype=-i2c