d38964e01523802a85ba0aa104127ba1224aad23
[openwrt/staging/stintel.git] / target / linux / apm821xx / base-files / etc / init.d / hwmon_fancontrol
1 #!/bin/sh /etc/rc.common
2
3 START=98
4
5 boot() {
6 # configuring onboard temp/fan controller to run the fan on its own
7 # for more information, please read https://www.kernel.org/doc/Documentation/hwmon/sysfs-interface
8
9 case $(board_name) in
10 netgear,wndr4700)
11 path_to_hwmon='/sys/devices/platform/plb/plb:opb/4ef600700.i2c/i2c-0/0-001b/hwmon/hwmon1'
12 echo 1 > "$path_to_hwmon/pwm1_enable"
13 ;;
14 esac
15 }