Module Name: src
Committed By: christos
Date: Wed Oct 19 21:27:10 UTC 2016
Modified Files:
src/etc/rc.d: ipsec
Log Message:
Adjust for new ifconfig address/mask output.
To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/etc/rc.d/ipsec
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/etc/rc.d/ipsec
diff -u src/etc/rc.d/ipsec:1.13 src/etc/rc.d/ipsec:1.14
--- src/etc/rc.d/ipsec:1.13 Thu Sep 12 15:52:50 2013
+++ src/etc/rc.d/ipsec Wed Oct 19 17:27:10 2016
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: ipsec,v 1.13 2013/09/12 19:52:50 christos Exp $
+# $NetBSD: ipsec,v 1.14 2016/10/19 21:27:10 christos Exp $
#
# PROVIDE: ipsec
@@ -30,7 +30,7 @@ ipsec_prestart()
}
ipsec_getip() {
- ifconfig $1 | while read what address rest; do
+ ifconfig $1 | while IFS="${IFS}/" read what address rest; do
case "$what" in
inet) echo "$address";;
esac