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]
PKG_NAME:=wwan
PKG_VERSION:=2019-04-29
-PKG_RELEASE=4
+PKG_RELEASE=5
PKG_LICENSE:=GPL-2.0
PKG_LICENSE_FILES:=
[ -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