netmode: add 'netmode' in owsd ubusproxy

This commit is contained in:
Anjan Chanda 2018-10-09 15:40:27 +02:00
parent b5975b6dab
commit 054ae9686f

View 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