mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
pingcheck: Add new package
Pingcheck is a daemon for OpenWRT which checks the online status of individual network interfaces and makes this information available via UBUS and by triggering "online" and "offline" scripts. It is maintained at: https://github.com/br101/pingcheck Signed-off-by: Bruno Randolf <br1@einfach.org>
This commit is contained in:
Executable
+15
@@ -0,0 +1,15 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
|
||||
START=99
|
||||
|
||||
USE_PROCD=1
|
||||
PROG=/usr/sbin/pingcheck
|
||||
CONFFILE=/etc/config/pingcheck
|
||||
|
||||
start_service() {
|
||||
procd_open_instance
|
||||
procd_set_param command $PROG
|
||||
procd_set_param file $CONFFILE
|
||||
procd_set_param respawn
|
||||
procd_close_instance
|
||||
}
|
||||
Reference in New Issue
Block a user