diff options
Diffstat (limited to 'ipsec-updown-ipmasq')
-rwxr-xr-x | ipsec-updown-ipmasq | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipsec-updown-ipmasq b/ipsec-updown-ipmasq index 8b61d86..53093a8 100755 --- a/ipsec-updown-ipmasq +++ b/ipsec-updown-ipmasq @@ -28,7 +28,7 @@ # to change the reference of a 10.0.x.x network below to the IP range # you're using! # -# RCSID $Id: ipsec-updown-ipmasq,v 1.2 2002-10-22 13:59:14 jrisch Exp $ +# RCSID $Id: ipsec-updown-ipmasq,v 1.3 2006-07-16 12:34:00 jonas Exp $ # CAUTION: Installing a new version of FreeS/WAN will install a new @@ -89,7 +89,7 @@ doroute() { ;; esac st=$? - src="`ifconfig | egrep "^[[:space:]]*inet addr:10\.0\." | cut -f2 -d: | cut -f1 -d' ' | head -1`" + src="`ifconfig | egrep "^[[:space:]]*inet addr:10\.0\." | cut -f2 -d: | cut -f1 -d' ' | head -n 1`" if test "$src" ; then ip ro ls | egrep "^10\.0\..* dev ipsec" | egrep -v " src " | while read ; do |