diff options
author | Mathias Kresin <dev@kresin.me> | 2017-05-12 22:36:07 +0200 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2017-07-15 23:13:34 +0200 |
commit | f12a32630ff52b5e13397f64e9fb31708e97fb60 (patch) | |
tree | 46db1bb2606e05b40aaf2e43e7468531fa8df7b6 /target/linux/ar71xx/base-files/etc/uci-defaults/03_network-switchX-migration | |
parent | ced05ca9e092817f2f4d4fe25c5c56700838a3ad (diff) | |
download | upstream-f12a32630ff52b5e13397f64e9fb31708e97fb60.tar.gz upstream-f12a32630ff52b5e13397f64e9fb31708e97fb60.tar.bz2 upstream-f12a32630ff52b5e13397f64e9fb31708e97fb60.zip |
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>
Diffstat (limited to 'target/linux/ar71xx/base-files/etc/uci-defaults/03_network-switchX-migration')
-rw-r--r-- | target/linux/ar71xx/base-files/etc/uci-defaults/03_network-switchX-migration | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/03_network-switchX-migration b/target/linux/ar71xx/base-files/etc/uci-defaults/03_network-switchX-migration index a99a4ec0b4..338a22297b 100644 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/03_network-switchX-migration +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/03_network-switchX-migration @@ -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|\ |