Kristian, Very clear explanation, and a cool feature.
1) I created /mnt/kd/rc.conf.d/z.local.conf, (sanitized listing below) 2) remove /mnt/kd/rc.conf 3) reboot Works like a charm, I only have a few changes from the defaults. A much better setup then manually merging in the new rc.conf for each upgrade. Thanks, Lonnie ### /mnt/kd/rc.conf.d/z.local.conf ### ----- snip here ---- ## Begin z.local.conf ## ##Hostname DOMAIN=priv.abelbeck.com HOSTNAME=voip ##Timezone TIMEZONE=America/Chicago TZ_TIMEZONE=CST6CDT,M4.1.0/2,M10.5.0/2 ##NTP server NTPSERV="68.0.0.0" ##FTP support FTPD=vsftpd FTPDOPTIONS="/mnt/kd/vsftpd.conf" SMTP_SERVER="myispsmtpserver.com" SMTP_DOMAIN="abelbeck.com" ## End z.local.conf ## ----- snip here ---- On Aug 25, 2006, at 9:16 AM, Kristian Kielhofner wrote: > Lonnie Abelbeck wrote: >> Hi, >> >> I was looking at the [Notes] of the 0.4.3 release on sourceforge.net >> >> http://sourceforge.net/project/shownotes.php? >> release_id=441863&group_id=170462 >> <http://sourceforge.net/project/shownotes.php? >> release_id=441863&group_id=170462> >> >> Included under "changes" is >> >> Changes: >> rc.conf.d has been created. It allows you to create sets of config >> files in /stat/etc/rc.conf.d and /mnt/rc.conf.d and automatically >> have >> them appended to form /etc/rc.conf upon every boot. If you have >> an old >> keydisk, you will need to rename rc.conf to rc.conf.d/main.conf (or >> something like it). >> >> Hmmmm, I'm confused. >> >> Lonnie >> > > Lonnie, > > I think we have talked about this here before, but just in case... > > As if AstLinux already wasn't totally confusing :), rc.conf.d has > been > created. Try to stay with me here, I'll try to explain it. > > Upon startup, /etc/rc will look in /stat/etc/rc.conf.d and > /mnt/kd/rc.conf.d for files ending in ".conf". Any files that it > finds > are copied to "/tmp/etc/rc.conf.d". They are then, in typical sort > order, concatenated together and saved as /tmp/etc/rc.conf, which is > then sourced by all of the other startup scripts just like rc.conf > always was. > > What? Why do this? > > Config file updates. Eventually, when we create new variables, we can > add them like this: > > /stat/etc/rc.conf.d/astlinux-0.4.3.conf > /stat/etc/rc.conf.d/astlinux-0.4.4.conf > /stat/etc/rc.conf.d/astlinux-0.4.5.conf > > /etc/rc basically does this: > > cat /stat/etc/rc.conf.d/*.conf > /tmp/etc/rc.conf > > That way, if we need to override a default variable from a previous > release we really can. Also, we can add variables without having to > overwrite your config file (and they are easier to find out about in a > shorter file). > > Now, what if you already have an rc.conf? I suggest that you filter > out any commented lines and save it in /mnt/kd/rc.conf.d/local.conf or > something. That way, it will always override any of the astlinux* > config files when copied to /tmp/etc/rc.conf.d. > > Now, here is the tricky part - what values are used from what > file, and > how do you save them? Obviously, in this scenario /tmp/etc/rc.conf is > saved in RAM, and if you edit it directly your changes will not be > saved > across reboots. You will most likely need to copy the variable and > the > value that you want into your local.conf in order for it to be saved. > > I should point out that for now, if you have /mnt/kd/rc.conf, it will > still use that like it always did. However, if you have ANY rc.conf.d > directories, your system could get really confusing really fast... > While it will work, I strongly advise against have both /mnt/kd/ > rc.conf > (and /stat/etc/rc.conf) AND any rc.conf.d's. > > This is brand new, and I'm totally open to suggestions. What do > you think? > > -- > Kristian Kielhofner > _______________________________________________ > Astlinux-users mailing list > [email protected] > http://lists.kriscompanies.com/mailman/listinfo/astlinux-users > > Donations to support AstLinux are graciously accepted via PayPal to > [EMAIL PROTECTED] > _______________________________________________ Astlinux-users mailing list [email protected] http://lists.kriscompanies.com/mailman/listinfo/astlinux-users Donations to support AstLinux are graciously accepted via PayPal to [EMAIL PROTECTED]
