mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
map-agent: simplify pvid unset default script
This commit is contained in:
parent
8b4e7586ad
commit
e5933d2938
1 changed files with 0 additions and 9 deletions
|
|
@ -2,21 +2,12 @@
|
|||
|
||||
. /lib/functions.sh
|
||||
|
||||
diff="0"
|
||||
|
||||
unset_pvid() {
|
||||
local section=$1
|
||||
|
||||
config_get pvid $section pvid
|
||||
|
||||
[ "$pvid" == "0" ] && return
|
||||
|
||||
uci -q set mapagent.${section}.pvid="0"
|
||||
diff="1"
|
||||
}
|
||||
|
||||
config_load mapagent
|
||||
|
||||
config_foreach unset_pvid policy
|
||||
|
||||
[ "$diff" = "1" ] && uci -q commit mapagent
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue