aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/kirkwood/base-files/etc/init.d
diff options
context:
space:
mode:
authorMathias Kresin <dev@kresin.me>2017-12-28 10:18:48 +0100
committerMathias Kresin <dev@kresin.me>2018-01-09 22:06:55 +0100
commitc9e2c35f46346fc460a78b8f13b70d538c47cb27 (patch)
treee8def2744bc1f68beeee290eadd6ee55787968e4 /target/linux/kirkwood/base-files/etc/init.d
parentaa6f5f1787a69c8b9af7533010f2d099075d9826 (diff)
downloadupstream-c9e2c35f46346fc460a78b8f13b70d538c47cb27.tar.gz
upstream-c9e2c35f46346fc460a78b8f13b70d538c47cb27.tar.bz2
upstream-c9e2c35f46346fc460a78b8f13b70d538c47cb27.zip
kirkwood: use the generic board detect
Drop the target specific detection function in favour of the generic one provided by base-files. Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/kirkwood/base-files/etc/init.d')
-rwxr-xr-xtarget/linux/kirkwood/base-files/etc/init.d/linksys_recovery2
-rwxr-xr-xtarget/linux/kirkwood/base-files/etc/init.d/nsa310_fancontrol2
2 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/kirkwood/base-files/etc/init.d/linksys_recovery b/target/linux/kirkwood/base-files/etc/init.d/linksys_recovery
index ba7e4bb393..8fd2f387ab 100755
--- a/target/linux/kirkwood/base-files/etc/init.d/linksys_recovery
+++ b/target/linux/kirkwood/base-files/etc/init.d/linksys_recovery
@@ -6,7 +6,7 @@ boot() {
. /lib/functions.sh
case $(board_name) in
- linksys-audi|linksys-viper)
+ linksys,audi|linksys,viper)
# make sure auto_recovery in uboot is always on
AUTO_RECOVERY_ENA="`fw_printenv -n auto_recovery`"
if [ "$AUTO_RECOVERY_ENA" != "yes" ] ; then
diff --git a/target/linux/kirkwood/base-files/etc/init.d/nsa310_fancontrol b/target/linux/kirkwood/base-files/etc/init.d/nsa310_fancontrol
index 4073c2d559..10eb5aa73c 100755
--- a/target/linux/kirkwood/base-files/etc/init.d/nsa310_fancontrol
+++ b/target/linux/kirkwood/base-files/etc/init.d/nsa310_fancontrol
@@ -10,7 +10,7 @@ boot() {
path_to_hwmon='/sys/devices/platform/ocp@f1000000/f1011000.i2c/i2c-0/0-002e/hwmon/hwmon0'
case $(board_name) in
- nsa310b)
+ 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"