Browse Source

Don't print output when setting autoconf on interfaces. Suggested by deraadt,

ok florian@ rpe@
OPENBSD_5_9
sthen 8 years ago
parent
commit
71ac489f71
1 changed files with 7 additions and 12 deletions
  1. +7
    -12
      src/etc/netstart

+ 7
- 12
src/etc/netstart View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $OpenBSD: netstart,v 1.155 2015/09/13 13:51:57 sthen Exp $
# $OpenBSD: netstart,v 1.156 2015/09/27 20:32:33 sthen Exp $
# Turn off Strict Bourne shell mode.
set +o sh
@ -154,17 +154,12 @@ ifmstart() {
# IPv6 autoconf the interfaces in the list at $rtsolif
# Usage: ifautoconf
ifautoconf() {
if [[ -n $rtsolif ]]; then
printf 'IPv6 autoconf:'
# $ip6kernel will not have been set if we were invoked with a
# list of interface names
if ifconfig lo0 inet6 >/dev/null 2>&1; then
for curif in $rtsolif; do
printf ' %s' $curif
ifconfig $curif inet6 autoconf
done
fi
echo
# $ip6kernel will not have been set if we were invoked with a
# list of interface names
if ifconfig lo0 inet6 >/dev/null 2>&1; then
for curif in $rtsolif; do
ifconfig $curif inet6 autoconf
done
fi
}


Loading…
Cancel
Save