1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-17 12:53:54 +02:00
openwrt-packages/net/apinger/files/iface.hotplug
Jaymin Patel 4281b7639c apinger: add rrd graph support
- add package apinger-rrd for RRD graphs
- add RPC to get an overview and update graphs
- fix interface hotplug to restart apinger instance
- add patch to split alarms list in the status

Signed-off-by: Jaymin Patel <jem.patel@gmail.com>
2022-07-29 14:12:45 +05:30

13 lines
204 B
Bash

#!/bin/sh
. /lib/functions.sh
/etc/init.d/apinger enabled && {
[ "$(uci_get apinger $INTERFACE)" == "interface" ] || exit 0
[ "$ACTION" = "ifup" ] && {
/etc/init.d/apinger restart $INTERFACE
}
}