From 1a6878bc3ed3996a82b611742cb0b2829d8a7c53 Mon Sep 17 00:00:00 2001 From: lassulus Date: Tue, 27 Dec 2011 16:20:31 +0100 Subject: fixed --- retiolum/scripts/routing/defaultroute.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/retiolum/scripts/routing/defaultroute.sh b/retiolum/scripts/routing/defaultroute.sh index b7d703e8..a9e227a6 100755 --- a/retiolum/scripts/routing/defaultroute.sh +++ b/retiolum/scripts/routing/defaultroute.sh @@ -34,7 +34,7 @@ esac cat $tincdir/hosts/* | grep Address | cut -b 11- | while read host do - if [ "$(echo $host | sed 's/[0-9]*//g' | sed 's/>//g')" = '' ]; then + if [ "$(echo $host | sed 's/[0-9]*//g' | sed 's/\.//g')" = '' ]; then route $command $host gw $defaultroute else host -4 $host | grep "has address" | awk '{ print $4 }' | -- cgit v1.2.3