diff options
author | lassulus <lassulus@googlemail.com> | 2011-12-27 16:20:31 +0100 |
---|---|---|
committer | lassulus <lassulus@googlemail.com> | 2011-12-27 16:20:31 +0100 |
commit | 1a6878bc3ed3996a82b611742cb0b2829d8a7c53 (patch) | |
tree | 2249f77d8f2c90c7073968d3e65712b6a7549a0f /retiolum/scripts/routing/defaultroute.sh | |
parent | c039da4b063263bd1bc67f21b5b131443ba4d399 (diff) |
fixed
Diffstat (limited to 'retiolum/scripts/routing/defaultroute.sh')
-rwxr-xr-x | retiolum/scripts/routing/defaultroute.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 }' | |