mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
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:
parent
edd89d2aaf
commit
53c8950947
1 changed files with 20 additions and 0 deletions
20
ethmngr/files/etc/ruleng/ethport.json
Normal file
20
ethmngr/files/etc/ruleng/ethport.json
Normal 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
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Reference in a new issue