summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <lassulus@googlemail.com>2011-12-27 16:20:31 +0100
committerlassulus <lassulus@googlemail.com>2011-12-27 16:20:31 +0100
commit1a6878bc3ed3996a82b611742cb0b2829d8a7c53 (patch)
tree2249f77d8f2c90c7073968d3e65712b6a7549a0f
parentc039da4b063263bd1bc67f21b5b131443ba4d399 (diff)
fixed
-rwxr-xr-xretiolum/scripts/routing/defaultroute.sh2
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 }' |