Files
op-packages/phtunnel/files/etc/hotplug.d/iface/30-oray-phtunnel
T

7 lines
153 B
Bash
Executable File

#!/bin/sh
[ "$INTERFACE" == "wan" -a "$ACTION" == "ifup" ] && {
logger -t oray 'wan interface up and phtunnel restart'
/etc/init.d/phtunnel restart
}