aboutsummaryrefslogtreecommitdiff
path: root/net/apinger/files/iface.hotplug
blob: f97de0ae9033c5c01b5bf4b0d3ace9d36226e7a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/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
	}

}