packages/net/apinger/files/iface.hotplug

13 lines
204 B
Text
Raw Normal View History

#!/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
}
}