aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/utils/wwan/files/wwan.usbmisc
diff options
context:
space:
mode:
Diffstat (limited to 'package/network/utils/wwan/files/wwan.usbmisc')
-rw-r--r--package/network/utils/wwan/files/wwan.usbmisc3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/network/utils/wwan/files/wwan.usbmisc b/package/network/utils/wwan/files/wwan.usbmisc
index 4079a7fd8f..a86ff5d98b 100644
--- a/package/network/utils/wwan/files/wwan.usbmisc
+++ b/package/network/utils/wwan/files/wwan.usbmisc
@@ -17,7 +17,8 @@ find_wwan_iface() {
[ -z "$device" -a "$proto" = wwan ] || [ "$device" = "/dev/$DEVNAME" ] || return 0
if [ "$ACTION" = add ]; then
proto_set_available "$cfg" 1
- else
+ fi
+ if [ "$ACTION" = remove ]; then
proto_set_available "$cfg" 0
fi
exit 0