Opened 15 years ago
Closed 15 years ago
#15 closed defect (fixed)
rc_conf_files="rc.node.local" does not work
Reported by: | huub | Owned by: | |
---|---|---|---|
Priority: | major | Version: | |
Keywords: | Cc: |
Description ¶
The network configuration in rc.node.local, referrenced in rc.conf by the line rc_conf_files="rc.node.local" is not applied.
Could this be related to the location of rc.conf in the /conf/base/etc directory (i.e. on partition da0s1a) and rc.node.local in the /cfg directory (i.e. on partition da0s3)?
Change History (3)
comment:1 by , 15 years ago
comment:2 by , 15 years ago
Natuurlijk kan dat: een hack van een paar regels die werkt. Maar in het algemeen zou ik liever de standaard-freebsd manier van configureren willen hanteren. Het is ook niet erg bevredigend dat een feature die al jaren in het handbook vermeld staat niet zou werken. Dat zou toch erg curieus zijn.
Het blijkt dat rc_conf_files alleen in de default /etc/defaults/rc.conf file effect heeft. Daar staan als default
rc_conf_files="/etc/rc.conf /etc/rc.conf.local"
Er zijn dus twee oplossingen:
- de file rc.node.local een andere naam geven, t.w. rc.conf.local
je moet hiervoor wlconfig script aanpassen.
of
- in bestand /etc/defaults/rc.conf zetten:
rc_conf_files="/etc/rc.conf /etc/rc.node.local"
Om alles zoveel mogelijk standaard te houden en omdat rc.node.local een wat vreemde naam is voor een proxy lijkt mij methode 1 het meest aantrekkelijke.
http://unix.derkeiler.com/Mailing-Lists/FreeBSD/stable/2007-06/msg00370.html
rc_conf_files is declared before /etc/rc.conf is processed.
Why not use the old 'include' statement?