Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/etc/rc.d Adjust for new ifconfig address/mask output.
details: https://anonhg.NetBSD.org/src/rev/b9dcb64d5082
branches: trunk
changeset: 348473:b9dcb64d5082
user: christos <christos%NetBSD.org@localhost>
date: Wed Oct 19 21:27:10 2016 +0000
description:
Adjust for new ifconfig address/mask output.
diffstat:
etc/rc.d/ipsec | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (20 lines):
diff -r 89fccc199061 -r b9dcb64d5082 etc/rc.d/ipsec
--- a/etc/rc.d/ipsec Wed Oct 19 20:56:22 2016 +0000
+++ b/etc/rc.d/ipsec Wed Oct 19 21:27:10 2016 +0000
@@ -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_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
Home |
Main Index |
Thread Index |
Old Index