2
0
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:
Mathias Kresin
2017-05-12 22:36:07 +02:00
parent ced05ca9e0
commit f12a32630f
94 changed files with 153 additions and 260 deletions

View File

@@ -5,6 +5,8 @@
SWITCH_NAME_CHANGED=
. /lib/functions.sh
do_change_switch_name() {
local config="$1"
local option=$2
@@ -25,8 +27,6 @@ migrate_switch_name() {
local oldname=$1
local newname=$2
. /lib/functions.sh
config_load network
logger -t migrate-switchX "Updating switch names in network configuration"
@@ -40,9 +40,7 @@ migrate_switch_name() {
}
}
. /lib/ar71xx.sh
board=$(ar71xx_board_name)
board=$(board_name)
case "$board" in
dir-825-c1|\