aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorRozhuk Ivan <rozhuk.im@gmail.com>2019-11-16 05:11:10 +0300
committerHans Dedecker <dedeckeh@gmail.com>2020-03-16 21:03:25 +0100
commitd890f85e59617228b1e76e8cf45a9309904d9124 (patch)
tree676b1f4b5a347e949ea5bfcfb9d2f2f328713be6 /package
parent4821ff064b735c320ae2625a739018d1fc7d6457 (diff)
downloadupstream-d890f85e59617228b1e76e8cf45a9309904d9124.tar.gz
upstream-d890f85e59617228b1e76e8cf45a9309904d9124.tar.bz2
upstream-d890f85e59617228b1e76e8cf45a9309904d9124.zip
wwan: fix hotplug event handling
Hotplug manager send: "remove" -> "add" -> "bind" events, script interpret bind as "not add" = "remove" and mark device as unavailable. Signed-off-by: Rozhuk Ivan <rozhuk.im@gmail.com> Signed-off-by: Hans Dedecker <dedeckeh@gmail.com> [PKG_RELEASE increase]
Diffstat (limited to 'package')
-rw-r--r--package/network/utils/wwan/Makefile2
-rw-r--r--package/network/utils/wwan/files/wwan.usbmisc3
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