mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
hotplug: add script to check for interface up/down
This commit is contained in:
parent
9d7c98f1c7
commit
38261d8da7
1 changed files with 8 additions and 0 deletions
8
libmobile/files/etc/hotplug.d/iface/99-mdmngr
Executable file
8
libmobile/files/etc/hotplug.d/iface/99-mdmngr
Executable file
|
|
@ -0,0 +1,8 @@
|
|||
if echo $DEVICE | grep "eth5";then
|
||||
ubus call mdmngr refresh
|
||||
fi
|
||||
|
||||
if echo $DEVICE | grep "usb0";then
|
||||
ubus call mdmngr refresh
|
||||
fi
|
||||
|
||||
Loading…
Add table
Reference in a new issue