Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/etc/rc.d network: Update rtsol options



details:   https://anonhg.NetBSD.org/src/rev/41362a609bc8
branches:  trunk
changeset: 944919:41362a609bc8
user:      kim <kim%NetBSD.org@localhost>
date:      Fri Oct 16 15:31:04 2020 +0000

description:
network: Update rtsol options

- Use "-6" instead of "--noipv4" as it seems more appropriate based on
  the dhcpcd(8) manual page.
- Remove "-f /dev/null" as it seems unnecessary with "-6".
- Remove "--persistent" as it is in the default /etc/dhcpcd.conf,
  and this way the user can change it, if they would like to (either
  through dhcpcd_flags or by editing /etc/dhcpcd.conf).

The "-b" (or "--background") option is needed to avoid a timeout error
message (and a delay in booting), so it is still left in place.

diffstat:

 etc/rc.d/network |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (22 lines):

diff -r 72b0947982be -r 41362a609bc8 etc/rc.d/network
--- a/etc/rc.d/network  Fri Oct 16 12:36:01 2020 +0000
+++ b/etc/rc.d/network  Fri Oct 16 15:31:04 2020 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: network,v 1.84 2020/10/15 07:05:27 kim Exp $
+# $NetBSD: network,v 1.85 2020/10/16 15:31:04 kim Exp $
 #
 
 # PROVIDE: network
@@ -325,9 +325,7 @@
                                ;;
                        rtsol)
                                if ! checkyesno dhcpcd; then
-                                       /sbin/dhcpcd -n -f /dev/null \
-                                               --background --persistent \
-                                               --noipv4 \
+                                       /sbin/dhcpcd -n6b \
                                                ${dhcpcd_flags} $int
                                fi
                                ;;



Home | Main Index | Thread Index | Old Index