On Wed, Nov 08, 2017 at 10:47:43PM +0100, Holger Mikolon wrote: > The veriable $HN_DIR is set in /etc/netstart on line 166 but used only > once (line 78). The diff below makes use of $HN_DIR in the other cases > where netstart cares of ip address configuration. > > With below change I can maintain different sets (think "profiles") of > hostname.if(5) files in separate directories and use them e.g. like this: > "env HN_DIR=/etc/myprofile sh /etc/netstart" > > Even without such use case it's at least a consistency fix. > > Regards > Holger > ;-se
Hallo Holger This "feature" was introduced for a specific purpose some time ago to assist the transition to the new hostname.if(5) parser code in the netstart script. People were able to run netstart with the -n option and this HN_DIR environment variable to verify that the new parser works with their possibly non-trivial hostname.if(5) configurations. We considered this to be a rather delicate transition because we did not want to break peoples setups. Now that the parser code proved to not break anything, I rather want to remove this funcionality, than to extend it. -- -=[rpe]=-
