libevent2: Don't build tests and samples
[openwrt/openwrt.git] / target / linux / kirkwood / base-files / etc / init.d / nsa310_fancontrol
index 32e863e55da9fd72440bd69e5f5312781cb870ce..10eb5aa73cc16add150ed58bcef2e1e8822b8474 100755 (executable)
@@ -3,15 +3,14 @@
 START=98
 boot() {
 . /lib/functions.sh
-. /lib/kirkwood.sh
 
 #configuring lm85 onboard temp/fan controller to run the fan on its own
 #for more information, please read https://www.kernel.org/doc/Documentation/hwmon/sysfs-interface
 
 path_to_hwmon='/sys/devices/platform/ocp@f1000000/f1011000.i2c/i2c-0/0-002e/hwmon/hwmon0'
 
-case $(kirkwood_board_name) in
-       nsa310b)
+case $(board_name) in
+       zyxel,nsa310b)
        echo 2 > "$path_to_hwmon/pwm1_enable" # fan is on pwm1
        echo 1 > "$path_to_hwmon/pwm1_auto_channels" # temp1 is the only one that changes
        echo 23000 > "$path_to_hwmon/temp1_auto_temp_min"