2
0
forked from Ivasoft/openwrt

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>
This commit is contained in:
Mathias Kresin
2017-12-28 10:18:48 +01:00
parent aa6f5f1787
commit c9e2c35f46
10 changed files with 49 additions and 119 deletions

View File

@@ -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

View File

@@ -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"