[RFC] load network config file from netif init script

Roger Pau Monné royger at FreeBSD.org
Mon Feb 2 12:21:29 UTC 2015


Hello,

r272959 broke compatibility with mfsBSD that stores the default network
config file in /etc/rc.conf.d/network. In order to fix that load the
network config file from netif also.

I'm attaching a patch to restore previous functionality, but since I'm
not an expert on rc.d init scripts I would like some feedback on whether
this is the right approach or not.

Thanks, Roger.
-------------- next part --------------
From 7ff1b427f31d92ff55f32021b78bae576d75c0c7 Mon Sep 17 00:00:00 2001
From: Roger Pau Monne <roger.pau at citrix.com>
Date: Tue, 27 Jan 2015 14:01:16 +0100
Subject: [PATCH] rc.d: load the network config file for netif

r272959 broke compatibility with mfsBSD that stores the default network
config file in /etc/rc.conf.d/network. In order to fix that load the network
config file from netif also.
---
 etc/rc.d/netif | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/etc/rc.d/netif b/etc/rc.d/netif
index dd0dde2..62ad31f 100755
--- a/etc/rc.d/netif
+++ b/etc/rc.d/netif
@@ -252,5 +252,8 @@ netif_common()
 	debug "The following interfaces were not configured: $_fail"
 }
 
+# Load the old "network" config file also for compatibility.
+# This is needed for mfsBSD at least.
+load_rc_config network
 load_rc_config $name
 run_rc_command $*
-- 
1.9.3 (Apple Git-50)



More information about the freebsd-current mailing list