summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 }' |