mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
netmode: add 'netmode' in owsd ubusproxy
This commit is contained in:
parent
b5975b6dab
commit
054ae9686f
1 changed files with 13 additions and 0 deletions
13
netmode/files/etc/uci-defaults/997-owsd-with-ubusx-netmode
Normal file
13
netmode/files/etc/uci-defaults/997-owsd-with-ubusx-netmode
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
. /lib/functions.sh
|
||||||
|
|
||||||
|
add_owsd_ubusproxy_object_netmode() {
|
||||||
|
local netmd=$(uci -q get owsd.ubusproxy.object | grep netmode)
|
||||||
|
if [ -z "$netmd" ]; then
|
||||||
|
uci -q add_list owsd.ubusproxy.object="netmode"
|
||||||
|
uci commit owsd
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
add_owsd_ubusproxy_object_netmode
|
||||||
Loading…
Add table
Reference in a new issue