diff --git a/root_file_system/default/etc/hotplug.d/iface/50-tincstart b/root_file_system/default/etc/hotplug.d/iface/50-tincstart index 330473f..8db4d03 100755 --- a/root_file_system/default/etc/hotplug.d/iface/50-tincstart +++ b/root_file_system/default/etc/hotplug.d/iface/50-tincstart @@ -1,3 +1,6 @@ -[ ifup = "$ACTION" -a "$DEVICE" = eth0 ] && { - sh /etc/tincstart.sh -} +#!/bin/sh +[ "$ACTION" = "ifup" -a "$INTERFACE" = "wan" ] && { + sh /etc/tincstart.sh + sleep 30 + sh /etc/tincstart.sh +} \ No newline at end of file diff --git a/root_file_system/default/etc/hotplug.d/iface/51-nodewatcher b/root_file_system/default/etc/hotplug.d/iface/51-nodewatcher index 32e323c..b753a7a 100755 --- a/root_file_system/default/etc/hotplug.d/iface/51-nodewatcher +++ b/root_file_system/default/etc/hotplug.d/iface/51-nodewatcher @@ -1,3 +1,4 @@ -[ ifup = "$ACTION" -a "$DEVICE" = eth0 ] && { +#!/bin/sh +[ "$ACTION" = "ifup" -a "$INTERFACE" = "wan" ] && { sh /etc/nodewatcher.sh -} +} \ No newline at end of file