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:
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user