From 1062293981d8857c047fe725e1d5903fcc93936b Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Wed, 23 Nov 2011 15:01:00 +0000 Subject: [PATCH] change rc defaults reading . always install them (overwrite) . source minix one from /etc/defaults/rc.conf so that it'll get read on existing installs without overwriting rc.conf (doesn't happen by default as it's user-editable), needed for new netconf system . reported by Tenkawa --- etc/Makefile | 4 ++-- etc/{ => defaults}/minix.rc.conf | 0 etc/defaults/rc.conf | 4 ++++ etc/rc.conf | 4 ---- 4 files changed, 6 insertions(+), 6 deletions(-) rename etc/{ => defaults}/minix.rc.conf (100%) create mode 100644 etc/defaults/rc.conf diff --git a/etc/Makefile b/etc/Makefile index 693474a71..c11703f89 100644 --- a/etc/Makefile +++ b/etc/Makefile @@ -10,7 +10,7 @@ FILES1=group hostname.file inet.conf motd.install mtab profile \ PWFILES=master.passwd FILES3=daily dhcptags.conf rc -DEFAULTFILES=minix.rc.conf +DEFAULTFILES=rc.conf minix.rc.conf USRFILES=Makefile TOOL_PWD_MKDB= pwd_mkdb @@ -25,7 +25,7 @@ install:: installpw # installpw needed to bootstrap pw db @echo "Making hierarchy.." sh mtree.sh mtree/minix.tree @for f in $(FILES3); do if [ -f $(USRETC)/$$f ]; then :; else cp usr/$$f $(USRETC); chmod 755 $(USRETC)/$$f; fi; done - for f in $(DEFAULTFILES); do cp $$f $(DEFAULTS); chmod 644 $(DEFAULTS)/$$f; done + for f in $(DEFAULTFILES); do cp defaults/$$f $(DEFAULTS)/; chmod 644 $(DEFAULTS)/$$f; done @echo "Making devices.." p=`pwd` && cd /dev && sh $$p/../commands/MAKEDEV/MAKEDEV.sh null p=`pwd` && cd /dev && sh $$p/../commands/MAKEDEV/MAKEDEV.sh std 2>/dev/null diff --git a/etc/minix.rc.conf b/etc/defaults/minix.rc.conf similarity index 100% rename from etc/minix.rc.conf rename to etc/defaults/minix.rc.conf diff --git a/etc/defaults/rc.conf b/etc/defaults/rc.conf new file mode 100644 index 000000000..eee37ed8b --- /dev/null +++ b/etc/defaults/rc.conf @@ -0,0 +1,4 @@ +if [ -r /etc/defaults/minix.rc.conf ]; then + . /etc/defaults/minix.rc.conf +fi + diff --git a/etc/rc.conf b/etc/rc.conf index ef877d543..257ced00d 100644 --- a/etc/rc.conf +++ b/etc/rc.conf @@ -13,10 +13,6 @@ if [ -r /etc/defaults/rc.conf ]; then . /etc/defaults/rc.conf fi -if [ -r /etc/defaults/minix.rc.conf ]; then - . /etc/defaults/minix.rc.conf -fi - # If this is not set to YES, the system will drop into single-user mode. # (Doesn't matter for Minix.) rc_configured=NO -- 2.44.0