treewide: use the generic board_name function
[openwrt/openwrt.git] / target / linux / kirkwood / base-files / etc / init.d / nsa310_fancontrol
index 32e863e55da9fd72440bd69e5f5312781cb870ce..4073c2d559dc4c10091cad4c01b834c4516948a5 100755 (executable)
@@ -3,14 +3,13 @@
 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
+case $(board_name) in
        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