forked from Ivasoft/openwrt
treewide: use the generic board_name function
Use the generic function instead ot the target specific ones. Signed-off-by: Mathias Kresin <dev@kresin.me>
This commit is contained in:
@@ -4,11 +4,10 @@
|
||||
#
|
||||
|
||||
. /lib/functions/uci-defaults.sh
|
||||
. /lib/kirkwood.sh
|
||||
|
||||
board_config_update
|
||||
|
||||
board=$(kirkwood_board_name)
|
||||
board=$(board_name)
|
||||
|
||||
case "$board" in
|
||||
"dockstar")
|
||||
|
||||
@@ -5,11 +5,10 @@
|
||||
|
||||
. /lib/functions/uci-defaults.sh
|
||||
. /lib/functions/system.sh
|
||||
. /lib/kirkwood.sh
|
||||
|
||||
board_config_update
|
||||
|
||||
board=$(kirkwood_board_name)
|
||||
board=$(board_name)
|
||||
|
||||
case "$board" in
|
||||
"dockstar"|\
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
#!/bin/sh
|
||||
# Copyright (C) 2014 OpenWrt.org
|
||||
|
||||
. /lib/functions.sh
|
||||
. /lib/functions/leds.sh
|
||||
. /lib/kirkwood.sh
|
||||
|
||||
get_status_led() {
|
||||
case $(kirkwood_board_name) in
|
||||
case $(board_name) in
|
||||
dockstar|\
|
||||
goflexhome|\
|
||||
goflexnet)
|
||||
|
||||
@@ -4,9 +4,8 @@
|
||||
START=97
|
||||
boot() {
|
||||
. /lib/functions.sh
|
||||
. /lib/kirkwood.sh
|
||||
|
||||
case $(kirkwood_board_name) in
|
||||
case $(board_name) in
|
||||
linksys-audi|linksys-viper)
|
||||
# make sure auto_recovery in uboot is always on
|
||||
AUTO_RECOVERY_ENA="`fw_printenv -n auto_recovery`"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user