miniupnpd: Fixed hotplug script's DEVICE handling.
authorMarkus Stenberg <markus.stenberg@iki.fi>
Wed, 25 Jun 2014 08:09:18 +0000 (11:09 +0300)
committerMarkus Stenberg <markus.stenberg@iki.fi>
Wed, 25 Jun 2014 08:09:18 +0000 (11:09 +0300)
miniupnpd/files/miniupnpd.hotplug

index a98a50cc441c5e66df70d46201f3e120d8377b63..c3805381767cb3deb563028b23a5167053ae7ccb 100644 (file)
@@ -14,9 +14,11 @@ fi
 # - check only on ifup (otherwise lease updates etc would cause
 #   miniupnpd state loss)
 
-
 [ ! "$ACTION" = "ifup" ] && service_check /usr/sbin/miniupnpd && exit 0
 
+# DEVICE is set only in ifup as of 20140625 netifd
+[ -z "$DEVICE" ] && network_get_device DEVICE $INTERFACE
+
 local iface
 local ext_iface
 local ext_iface6