aboutsummaryrefslogtreecommitdiff
path: root/net/apinger/files/iface.hotplug
blob: 6c1930f935600b630db52485770b76e45565b791 (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 $INTERFACE restart
	}

}