Date: Mon, 02 Feb 2015 12:21:19 +0000 From: =?UTF-8?B?Um9nZXIgUGF1IE1vbm7DqQ==?= <royger@FreeBSD.org> To: FreeBSD CURRENT <freebsd-current@freebsd.org>, hrs@FreeBSD.org Subject: [RFC] load network config file from netif init script Message-ID: <54CF6BBF.9050906@FreeBSD.org>
index | next in thread | raw e-mail
[-- Attachment #1 --] 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. [-- Attachment #2 --] From 7ff1b427f31d92ff55f32021b78bae576d75c0c7 Mon Sep 17 00:00:00 2001 From: Roger Pau Monne <roger.pau@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)help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54CF6BBF.9050906>
