Update usb-gadget.sh
This commit is contained in:
1 parent
2bcd7e882b
commit
9ea51e9324
1 file changed
+1
-1
@@ -408,7 +408,7 @@ teardown_gadget() {
|
|||||||
for ifname in functions/*/ifname; do
|
for ifname in functions/*/ifname; do
|
||||||
if [ -f "$ifname" ]; then
|
if [ -f "$ifname" ]; then
|
||||||
local iface="$(cat "$ifname")"
|
local iface="$(cat "$ifname")"
|
||||||
uci -q del_list "network.@device[0].ports=$iface" 2>/dev/null
|
uci -q del_list "network.@device[0].ports=$iface" 2>/dev/null || true
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
uci commit network
|
uci commit network
|
||||||
|
|||||||
Reference in new issue
Block a user