Update usb-gadget.sh

This commit is contained in:
Miguel Fuertes authored and GitHub committed 2025-10-09 10:53:31 +02:00
1 parent 2bcd7e882b
commit 9ea51e9324
1 file changed
+1 -1
+1 -1
View File
@@ -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