From 78d646b8b6ad3ff09d3ef6539b4533a8e84c0fcc Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sun, 16 Jul 2006 12:33:59 +0000 Subject: Change head -1 -> head -n 1 --- ipsec-updown-ipmasq | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ipsec-updown-ipmasq') 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 -- cgit v1.2.3