فهرست منبع

fix up the network ifname in the network state when receiving iface/ifup events

SVN-Revision: 13399
Felix Fietkau 17 سال پیش
والد
کامیت
5cc72a2874
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      package/base-files/files/etc/hotplug.d/iface/00-netstate

+ 1 - 0
package/base-files/files/etc/hotplug.d/iface/00-netstate

@@ -1,3 +1,4 @@
 [ ifup = "$ACTION" ] && {
 	uci_set_state network "$INTERFACE" up 1 
+	[ -n "$DEVICE" ] && uci_set_state network "$INTERFACE" ifname "$DEVICE"
 }