From 1ef6741939f82380be2316ca856547fe0dd7667b Mon Sep 17 00:00:00 2001 From: floh1111 Date: Wed, 25 May 2011 20:45:46 +0000 Subject: [PATCH] This is working now on wr1043nd too --- .../default/etc/hotplug.d/iface/50-tincstart | 9 ++++++--- .../default/etc/hotplug.d/iface/51-nodewatcher | 5 +++-- 2 files changed, 9 insertions(+), 5 deletions(-) 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