Hello, Martin, hello, Ingo.

ok, so here's more background as to why I propose this change.

my setup is even simpler then stock setup. I just use the script that usually reads:

#!/bin/sh

/bin/hostname ....
/sbin/ifconfig lo0 127.0.0.1/8
/sbin/ifconfig ....
/sbin/route add -net default ...
/sbin/dhclient ...

the reason I am doing this is both historical (BSD/OS had this setup)
and practical (prefer to have a single observable script) also aesthetic (just do not like to have many single line files).


On 24.07.17 13:33, Ingo Schwarze wrote:
Hi,

Gregory Edigarov wrote on Mon, Jul 24, 2017 at 01:22:55PM +0300:

personally, I prefer using my short script, over the stock
/etc/netstart, so why not let everybody use what they prefer?
Hell no.
This is directly contrary to project goals.

KISS.  No useless knobs.

That said, OpenBSD is free software, you can replace any component
you want on your personal computer, even /etc/netstart.
But that certainly isn't supported, and if it ever results in
bogus bug reports, you *will* get yelled at.

Yours,
   Ingo


diff --git a/etc/rc b/etc/rc
index 75e63a397e4..f56485a60f5 100644
--- a/etc/rc
+++ b/etc/rc
@@ -447,7 +447,7 @@ echo 'starting network'
   # Prevents carp from preempting until the system is booted.
   ifconfig -g carp carpdemote 128

-sh /etc/netstart
+sh $netstart

   # Any write triggers a rekey.
   dmesg >/dev/random
diff --git a/etc/rc.conf b/etc/rc.conf
index 05146d58a4e..340c3de55df 100644
--- a/etc/rc.conf
+++ b/etc/rc.conf
@@ -40,6 +40,7 @@ ldpd_flags=NO
   lpd_flags=NO           # for normal use: "" (or "-l" for debugging)
   mopd_flags=NO
   mrouted_flags=NO       # be sure to enable multicast below
+netstart=/etc/netstart
   npppd_flags=NO
   nsd_flags=NO
   ntpd_flags=

Reply via email to