diff options
-rw-r--r-- | package/network/utils/wwan/Makefile | 2 | ||||
-rw-r--r-- | package/network/utils/wwan/files/wwan.usbmisc | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/package/network/utils/wwan/Makefile b/package/network/utils/wwan/Makefile index bb829b5e2c..1c5a5e6669 100644 --- a/package/network/utils/wwan/Makefile +++ b/package/network/utils/wwan/Makefile @@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=wwan PKG_VERSION:=2019-04-29 -PKG_RELEASE=4 +PKG_RELEASE=5 PKG_LICENSE:=GPL-2.0 PKG_LICENSE_FILES:= 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 |