mirror of
https://github.com/openwrt/packages.git
synced 2026-04-20 20:38:36 +04:00
treewide: use config_get_bool instead of config_get enabled
The config_get_bool function parses not just the 1 but on/yes, true/false or enabled/disabled. Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
This commit is contained in:
committed by
Tianling Shen
parent
b450fbc5ea
commit
4c4a7bd31d
@@ -10,7 +10,7 @@ STATUS_PATH=/var/run/natmap
|
||||
|
||||
load_interfaces() {
|
||||
config_get interface "$1" interface
|
||||
config_get enable "$1" enable 1
|
||||
config_get_bool enable "$1" enable 1
|
||||
|
||||
[ "${enable}" = "1" ] && interfaces=" ${interface} ${interfaces}"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user