mirror of
https://github.com/openwrt/packages.git
synced 2025-12-20 01:21:21 +00:00
switchdev-poller: makefile cleanup
Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
This commit is contained in:
18
net/switchdev-poller/files/switchdev-poller.init
Executable file
18
net/switchdev-poller/files/switchdev-poller.init
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
# Copyright (C) 2018-2019 Luiz Angelo Daros de Luca <luizluca@gmail.com>
|
||||
|
||||
START=99
|
||||
USE_PROCD=1
|
||||
|
||||
start_service() {
|
||||
procd_open_instance switchdev-poller
|
||||
procd_set_param command /usr/lib/switchdev-poller/switchdev-poller
|
||||
procd_set_param stdout 1
|
||||
procd_set_param stderr 0 # enable for extra debug info
|
||||
procd_set_param respawn 3600 5 5
|
||||
procd_close_instance
|
||||
}
|
||||
|
||||
service_triggers() {
|
||||
procd_add_reload_trigger network
|
||||
}
|
||||
Reference in New Issue
Block a user