summaryrefslogtreecommitdiff
path: root/ipsec-updown-ipmasq
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2006-07-16 12:33:59 +0000
committerJonas Smedegaard <dr@jones.dk>2006-07-16 12:33:59 +0000
commit78d646b8b6ad3ff09d3ef6539b4533a8e84c0fcc (patch)
treec67beb1ee70f8fb91ac26fd64def08e0b6595130 /ipsec-updown-ipmasq
parent4dce2f2db4252fb55dce4b1e2dd99eb89294f91a (diff)
Change head -1 -> head -n 1
Diffstat (limited to 'ipsec-updown-ipmasq')
-rwxr-xr-xipsec-updown-ipmasq4
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