ethmngr: add ruleng recipe for ethport hotplug event

hotplug event generated now from ruleng recipe based on the
network.device event
This commit is contained in:
Rahul Thakur 2024-03-18 15:09:00 +05:30 committed by Markus Gothe
parent ee6a27dc76
commit bcea816742
2 changed files with 21 additions and 1 deletions

View file

@ -5,7 +5,7 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=ethmngr PKG_NAME:=ethmngr
PKG_VERSION:=3.0.6 PKG_VERSION:=3.0.7
LOCAL_DEV:=0 LOCAL_DEV:=0
ifneq ($(LOCAL_DEV),1) ifneq ($(LOCAL_DEV),1)

View file

@ -0,0 +1,20 @@
{
"ethport_update": {
"if" : [
{
"event": "network.device"
}
],
"then" : [
{
"cli": "/sbin/hotplug-call ethernet",
"envs": {
"PORT": "&network.device->ifname",
"LINK": "&network.device->link"
},
"timeout": 1
}
]
}
}