# ChangeLog for Gentoo Linux System Intialization ("rc") scripts 
# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
# Written by Daniel Robbins (drobbins@gentoo.org)

* rc-scripts 1.4.2.5 (09 Dec 2002)

  08 Dec 2002; Martin Schlemmer <azarah@gentoo.org>:

    Add another sync to /etc/init.d/halt.sh, closing bug 8173.

    Add smmsp uid and gid.  Closes bug #8952.

  04 Dec 2002; Martin Schlemmer <azarah@gentoo.org>:

    Setup colums, etc up properly for serial consoles in /sbin/functions.sh.
    Closes bug #11557, thanks to Erik Scrafford <erik@scrafford.org>.

    Add headers similar to that of portage-2.0.45 and up to the
    generated profile files (/etc/{profile,csh}.env).  Updated
    src/awk/genenviron.awk for this.

  01 Dec 2002; Martin Schlemmer <azarah@gentoo.org>:

    Fix typeo in /etc/devfsd.conf, closing bug #11424, thanks to the
    sharp eye of Techie2000 <Linux@mochamail.com>.

    Rename /sbin/update-modules to /sbin/modules-update, closing
    bug #11445.

    Nano moved from /usr/bin/nano to /bin/nano.  Fix this in
    /etc/env.d/00basic, bug #10916.

  27 Nov 2002; Martin Schlemmer <azarah@gentoo.org>:

    Add more improvements to clustering code.  This is from
    Olivier Crete <crete@cerca.umontreal.ca>, bug #4151.

  26 Nov 2002; Martin Schlemmer <azarah@gentoo.org>:

    Change default 'net' dependency behaviour to be more suited
    for notebook users.  Basically if at least one net.* service
    beside net.lo start successfully, the 'net' dependency is
    considered up.  Server admin can set RC_NET_STRICT_CHECKING="yes"
    in /etc/conf.d/rc to change this back to the old default.
    This is the start to address bug #2706.

* rc-scripts 1.4.2.4 (26 Nov 2002)

  26 Nov 2002; Martin Schlemmer <azarah@gentoo.org>:

    Initial merge of bits for Adelie Linux for SSI clusters.  More
    info at:

      http://www.cerca.umontreal.ca/hpc/en/projects/adelie/index.html

  25 Nov 2002; Martin Schlemmer <azarah@gentoo.org>:

    One liner fix to src/awk/cachedepends.awk to once again fix
    bug #7803.

  18 Nov 2002; Martin Schlemmer <azarah@gentoo.org>:

    Add 'alias char-major-89    i2c-dev' to /etc/modules.d/aliases.
    This should close bug #10891.

* rc-scripts 1.4.2.3 (18 Nov 2002)

  18 Nov 2002; Martin Schlemmer <azarah@gentoo.org>:

    Add some more checks to src/awk/*.  Fix error printing for
    /sbin/depscan.sh.

    Link awk module with gcc and not with ld.  This should fix
    problems on sparc and alpha.  Many thanks for this fix to
    Stephan Jones <cretin@gentoo.org>.

    Remove the copyright info from config files, thanks to
    Matthew Kennedy <mkennedy@gentoo.org>.

* rc-scripts 1.4.2.2 (18 Nov 2002)

  18 Nov 2002; Martin Schlemmer <azarah@gentoo.org>:

    Add src/awk/genenviron.awk which is rc-envupdate.sh ported
    to awk.  This is also much faster than its bash version.

    Remove the 'Spider cat fix' from depscan.sh.bash, as it makes
    things even slower on older boxes.  Bug #10548.

    After a bored Vapier decided that he needed to update the
    licenses of things in /etc :P, I did the rest.  Hopefully
    not too many people will nuke thier fstab :/

* rc-scripts 1.4.2.1 (18 Nov 2002)

  18 Nov 2002; Martin Schlemmer <azarah@gentoo.org>:

    Update src/awk/cachedepends.awk to find its own rc-scripts,
    fixing the need for find which broke systems with /usr on
    a different partition.

  17 Nov 2002; Martin Schlemmer <azarah@gentoo.org>:

    Add some extra checks to src/awk/cachedepends.awk and
    src/awk/gendepends.awk.

    Move some of the more generic functions in src/awk/gendepends.awk
    to src/awk/functions.awk.

* rc-scripts 1.4.2 (17 Nov 2002)

  17 Nov 2002; Martin Schlemmer <azarah@gentoo.org>:

    Add initial version of new depscan.sh.  This uses awk scripts
    to do the main work, giving about 10 times speed improvement on
    slower machines.  Updated /sbin/depscan.sh, src/filefuncts.c,
    src/Makefile, src/awk/cachedepends.awk and src/awk/gendepends.awk
    for this.  This should close bug #10548.

* rc-scripts 1.4.1.2 (5 Nov 2002)

  5 Nov 2002; Martin Schlemmer <azarah@gentoo.org>:

    Add UID/GID of 250 for Portage Fakeroot account.

  4 Nov 2002; Martin Schlemmer <azarah@gentoo.org>:

    Change /etc/init.d/clock to depend on localmount again, fixing
    bug #10048.

    Get deps on logger sane again.  I wanted to get the logger started
    as early as possible, but clock for one breaks if /usr is mounted
    on seperate partition.

  29 Oct 2002; Martin Schlemmer <azarah@gentoo.org>:

    Fix return in /etc/init.d/modules to return 0 if /proc/modules
    do not exists.  Closes bug #7738, comment #5.

* rc-scripts 1.4.1.1 (28 Oct 2002)

  28 Oct 2002; Martin Schlemmer <azarah@gentoo.org>:

    Fix /sbin/update-modules not to include backup files.  Closes
    bug #9707.

  26 Oct 2002; Martin Schlemmer <azarah@gentoo.org>:

    Fix update-modules borking if there are directories present
    in /etc/modules.d/.  Closes bug #9632.

  17 Oct 2002; Martin Schlemmer <azarah@gentoo.org>:

    Change deps on /etc/init.d/{clock,hostname,modules} not to
    depend on localmount, but rather on checkroot, as all of them
    just need / to be mounted.  This should fix race conditions
    because of checkfs dependency on modules.  This should close
    bug #9266.

* rc-scripts 1.4.1 (13 Oct 2002)

  13 Oct 2002; Martin Schlemmer <azarah@gentoo.org>:

    Create and fix permissions on /tmp/.{ICE,X11}-unix/.  This
    is additional measures for bug #8281.

  12 Oct 2002; Martin Schlemmer <azarah@gentoo.org>:

    Update /etc/init.d/net.eth0 to fix bug #8626.

    Fix /sbin/rc-update to check return code of "ln".  This should
    close bug #8867.

  29 Sep 2002; Martin Schlemmer <azarah@gentoo.org>:

    Fix indentation in /etc/inputrc.  This should close
    bug #8368.

    Add extended status functionality.  Should close bug #2462.

    Add support for /sbin/rc-update to check if the rc-script
    is executable or not.  Thanks to widersacher@gmx.net, closing
    bug #8326.

  25 Sep 2002; Martin Schlemmer <azarah@gentoo.org>:

    Fix /etc/init.d/bootmisc not to kill pidfiles of running
    daemons.  Improve NGPT support in /sbin/rc a bit.

  23 Sep 2002; Martin Schlemmer <azarah@gentoo.org>:

    Fix my last screwup with /etc/init.d/net.ppp0.  Basically
    forgot to change a few DEVICE's to IFACE ...

  22 Sep 2002; Martin Schlemmer <azarah@gentoo.org>:

    NGPT support.

  17 Sep 2002; Martin Schlemmer <azarah@gentoo.org>:

    Did a small fix to /etc/init.d/net.eth0, thanks to
    naanyaar2000@yahoo.com, bug #7407.

  16 Sep 2002; Martin Schlemmer <azarah@gentoo.org>:

    Add the permission stuff for generic scsi when compiled as
    module, thanks to Bauno <bauno@inwind.it>.

    Add support for /etc/devfs.d/ for additional devfs config
    stuff .. idea from Denys Duchier <Denys.Duchier@ps.uni-sb.de>.

  11 Sep 2002; Martin Schlemmer <azarah@gentoo.org>:

    Fix small type-o from last changes to /etc/init.d/netmount.
    Should resolve bug #7803.

* rc-scripts 1.4.0 (7 Sep 2002)

  7 Sep 2002; Martin Schlemmer <azarah@gentoo.org>:

    Update /etc/init.d/net.eth0 to handle individual broadcast
    and netmask for aliases.  Should close bug #7407.

    Give /var/run/utmp and /var/log/wtmp the proper permissions
    and ownership.  First steps in fixing bug #7630.

    Change Raid stuff again in /etc/init.d/checkfs.

  26 Aug 2002; Donny Davies <woodchip@gentoo.org>:

    Give root a 'root' GECOS in /etc/passwd, was NULL before.

* rc-scripts 1.3.9 (25 Aug 2002)

  25 Aug 2002; Martin Schlemmer <azarah@gentoo.org>:

    Update /sbin/rc to fix some spelling/slang mistakes.  Closes
    bug #6887.

    Move /etc/init.d/net.ppp0 's config to /etc/conf.d/net.ppp0.
    This closes bug #6378.

    Add IPv6 support to /etc/init.d/net.eth0.  Closes bug #6175,
    with many thanks to Asbjorn Sannes <ace@sannes.org>.

  20 Aug 2002; Martin Schlemmer <azarah@gentoo.org>:

    Update /etc/init.d/bootmisc to reset pam_console permissions.
    
    Update /etc/devfsd.conf to have the "pam_console_apply_devfsd.so"
    line for getting devfs to work with pam_console.

  12 Aug 2002; Martin Schlemmer <azarah@gentoo.org>:

    Update /etc/init.d/keymaps to first load the windowkeys.inc then
    the user selected one, fixing bug #6295.

  11 Aug 2002; Martin Schlemmer <azarah@gentoo.org>:

    Change the 'cat' in check_rcscript() to a single 'awk' in
    /sbin/depscan.sh.  This should fix broken pipe issues if the
    loop exists too early.  Resolves bug #5961.

    Fix software RAID startup/shutdown, bug #5310.  Modified
    /etc/init.d/checkfs and /etc/init.d/halt.sh for this.

* rc-scripts 1.3.8 (08 Aug 2002)

   7 Aug 2002; Martin Schlemmer <azarah@gentoo.org>:

    Move the color ls stuff to .bashrc.  Fix bug #5250.

   6 Aug 2002; Dan Armak <danarmak@gentoo.org>:
   
    Correct the comments in rc.conf about the XSESSION variable: it should
    be set to "kde-<version>" not "KDE". Closes bug #5948.

   5 Aug 2002; Martin Schlemmer <azarah@gentoo.org>:

    Fix the 'Usage' line in the help to return the correct options for
    the script (/sbin/runscript.sh).  Resolve bug #6029.

   3 Aug 2002; Donny Davies <woodchip@gentoo.org>:

    Added UPS shutdown support for nut to halt.sh.
    Added nut user/group as uid/gid 84.

  27 Jul 2002; Martin Schlemmer <azarah@gentoo.org>:

    Updated /sbin/rc's way of checking for devfs support (now rather uses
    awk, as it is more accurate).  Closes bug #5458.

    Add the Redhat/Mandrake /forcefsck and /fastboot options to our checkroot
    and checkfs.  Updated /etc/init.d/{checkroot,checkfs,halt.sh} for this.
    Thanks goes to Chris PeBenito (bug #5570).

    Changed most daemons to use /bin/false as shell.  Should close bug #5388.

  27 Jul 2002; Nicholas Jones <carpaski@gentoo.org>:
    
    Added vpopmail user and group as 89:89

  22 Jul 2002; Martin Schlemmer <azarah@gentoo.org>:

    Add the cyrus user to /etc/passwd.  Resolves bug #4100.

    Some bugfixes and speed improvements to /sbin/depscan.sh after
    last changes.

    Replace some cat/grep's in /sbin/rc-envupdate.sh with awk's to
    get some speed improvements.

  21 Jul 2002; Martin Schlemmer <azarah@gentoo.org>:

    Fix LVM support in /etc/init.d/checkfs again, thanks to help from
    Kyle Manna <nitro@gentoo.org>.

    Add software RAID support to /etc/init.d/checkfs, thanks to
    Daniel Ahlberg <aliz@gentoo.org>.

    Update the cache_depend() funtion in /sbin/depscan.sh not to
    quit on any "}", but only on the one matching the first "{". This
    requires wc in /bin, so baselayout should depend on
    >=sys-apps/textutils-2.0.19-r2

    Update /etc/init.d/netmount to try and detect nfs mounts that should be
    mounted automatically on boot.  This requires awk in /bin, so baselayout
    should depend on >=sys-apps/gawk-3.1.0-r3.

* rc-scripts 1.3.7 (17 Jul 2002)

  17 Jul 2002; Martin Schlemmer <azarah@gentoo.org>:

    Add logging functionality to the rc-scripts, thanks to Alexander Holler,
    bug #4037 for the basic idea.  Updated /sbin/functions.sh for this.

  16 Jul 2002; Martin Schlemmer <azarah@gentoo.org>:

    Add additional entries to /etc/services to support cyrus-imapd, thanks
    to Nick Hadaway <raker@gentoo.org>.

    Update /etc/init.d/consolefont to resolve bug #4968.  This fixes a
    problem with non 7bit ascii symbols.

    Updated /etc/init.d/checkfs to detect if lvm is already active.
    This should resolve bug #3613.

  5 Jun 2002; Martin Schlemmer <azarah@gentoo.org>:

    Add "usb" group, gid 85.  Move "sshd" user and group to 22.  Move
    "games" user and group to 35

  3 Jun 2002; Martin Schlemmer <azarah@gentoo.org>:

    Update Copyright displayed at boot, thanks to Sascha Schwabbauer
    (aka cybersystem).  Updated /sbin/rc for this.

  30 Jun 2002; Martin Schlemmer <azarah@gentoo.org>:

    Update /etc/skel/.bashrc to update the window title of X terminals
    that supports it.  Closes bug #4232.

  26 Jun 2002; Martin Schlemmer <azarah@gentoo.org>:

    Add sshd user and group.  Updated /etc/passwd and /etc/group for this.

    Update /etc/inputrc to resolve bug #2599.

  20 Jun 2002; Martin Schlemmer <azarah@gentoo.org>:

    Add /opt/bin to $PATH and $ROOTPATH, closing bug #3603.  Modified
    /etc/env.d/00basic for this.

    Add some new daemon stop and pid detection stuff to /sbin/functions.sh.
    Nothing official, but I spent enouth time on it not to want to loose it :)

    Fixed a bug in /sbin/functions.sh that caused rc-scripts run as cron jobs
    to give output to stderr.  This was caused by a call to "stty", which when
    run without a attatched terminal, have this effect.  Basically just pipe
    stderr to /dev/null.

  5 Jun 2002; Martin Schlemmer <azarah@gentoo.org>:

    Add /usr/local/share/man to $MANPATH (/etc/env.d/00basic), resolving
    bug #3363

  26 May 2002; Martin Schlemmer <azarah@gentoo.org>:

    Update /etc/init.d/netmount not to try and mount NFS filesystems
    if portmap was not started.  This is to stop "hang" problems for
    new users who do not add portmap to the default runlevel.  See
    bug #2555.

    Add the video4linux stuff to /etc/devfsd.conf.  Resolves bug #2015.

  19 May 2002; Martin Schlemmer <azarah@gentoo.org>:

    Move $EDITOR from /etc/profile to /etc/env.d/00basic.

  13 May 2002; Martin Schlemmer <azarah@gentoo.org>:

    Change the homes of user "at" and "cron" in /etc/passwd, as
    they moved to /var/spool/cron...

* rc-scripts 1.3.5 (12 May 2002)

  12 May 2002; Martin Schlemmer <azarah@gentoo.org>:

    Make slight modifications to /sbin/depscan.sh to improve speed (about
    1 second on a celeron 633).

    Finally fix /sbin/runscript.sh to properly handle interdependencies
    between types need/use and before/after on runlevel change.  I can
    actually kick myself for previous implementations, as this fix simplifies
    things a lot, and is almost 30 lines of code less!

    Change /etc/init.d/netmount not to fail if all mounts are not mounted.
    It rather just exit with a warning, as I think most people have like
    me mounts that are to boxes that are not always up.

    Resolve bug #2439 (should not use try with the dd command for ramdisk
    stuff).  Also increase the number of inodes used for the ramdisk to
    fix "out of space" errors.  Updated /sbin/rc for this.

  10 May 2002; Martin Schlemmer <azarah@gentoo.org>:

    Resolve bug #2505 ... /sbin/rc-envupdate.sh should not use
    backup files to generate /etc/profile.env.

    Resolve bug #2489 and #2175.  Modified /etc/init.d/net.eth0
    for this.

  6 May 2002; Martin Schlemmer <azarah@gentoo.org>:

    Fixed /sbin/rc-envupdate.sh to only use the $KDEDIR of the highest
    /etc/env.d/ file.  Same for $QTDIR.

  5 May 2002; Martin Schlemmer <azarah@gentoo.org>:

    Add /etc/DIR_COLORS as it is no longer shipped with fileutils,
    and is needed for some fixes.

  28 April 2002; Martin Schlemmer <azarah@gentoo.org>:

    Update /etc/rc.conf to be more clear and state that you should
    remove consolefont from startup if you do not use it.  Should
    resolve bug #2174.

  26 April 2002; Donny Davies <woodchip@gentoo.org> passwd, group :

    Added user/group apache with uid/gid 81.

  25 April 2002; Martin Schlemmer <azarah@gentoo.org>:
  
    Remove the "-net" from the line setting the default gateway
    in /etc/init.d/net.eth0.  Thanks to Peter W. Michaleas for
    noting this.

  24 April 2002; Donny Davies <woodchip@gentoo.org> rc.conf :

    Remove NFSSERVER from rc.conf since it's now covered in /etc/conf.d/nfs
    which is installed with the nfs-utils package.  Also tidied up some
    really old, leftover junk like the non-supported stuff from rc5.
    Closes #1754.

  23 April 2002; Martin Schlemmer <azarah@gentoo.org>:

    Remove creation of /var/run/utmpx from bootmisc again.  Seems
    other people have wierd problems.

* rc-scripts 1.3.4 (21 April 2002)

  21 April 2002; Martin Schlemmer <azarah@gentoo.org>:

    Add /sbin/rc-envupdate.sh to speedup updating of /etc/profile.env,
    and /etc/csh.env.  Update /etc/init.d/bootmisc to use this.

    Implement the status commandline argument.  Updated /sbin/runscript.sh
    and /sbin/rc-help.sh for this.

    Fix /sbin/depscan.sh to honour NEED and USE overriding BEFORE
    and AFTER.

  12 April 2002; Martin Schlemmer <azarah@gentoo.org>:

    Update /etc/init.d/bootmisc to create /var/run/utmpx. This
    is needed, else /usr/bin/newgrp segfault.

  11 April 2002; Martin Schlemmer <azarah@gentoo.org>:

    Update /etc/skel/.bash_profile to make it tcsh compadible.
    Thanks to Vin Jrvel for this fix.

    Update /etc/profile to also set the PS? variables if $SHELL
    is set to /bin/sh.  This should make prompt colours in
    bootstrap work again.

    Move LVM stuff to checkfs to ensure that they get fscked.
    This resolves bug #1552.

* rc-scripts 1.3.3 (5 April 2002)

  5 April 2002; Martin Schlemmer <azarah@gentoo.org>:

    Move /etc/init.d/{depscan.sh,runscript.sh,functions.sh} to /sbin.
    This is done to try and ensure system integrity.

  1 April 2002; Martin Schlemmer <azarah@gentoo.org>:

    Add quotes to the "export INPUTRC=/etc/inputrc" line to resolve bug #1391.

    Add a error message to /etc/init.d/consolefont, resolving bug #1415.

    Add a bash check to the code that sets the prompt, fixing bug #1078.

* rc-scripts 1.3.2 (24 Mar 2002)

  24 March 2002; Martin Schlemmer <azarah@gentoo.org>:

    Resolve bug #1274.  Updated /etc/init.d/hostname and /etc/init.d/bootmisc
    for this.

    With the "before" and "after" stuff, recursion levels was getting too high,
    and with some cases, things just plain did not work as it should.  Reworked
    things to to lower the levels of recursion and get the order right.  Updated
    /etc/init.d/runscript.sh for this.

    Fixed a problem in /sbin/rc and /etc/init.d/runscript.sh where
    ${svcdir}/softlevel did not always exist, but runscript.sh tried to open it.

    Enhance --quiet support.  Updated /etc/init.d/functions.sh for this.

    Remove /etc/pwdb.conf, as pwdb already install a copy of this.

    Remove /etc/pam.d/{rexec,rlogin,rsh} as pam already install this.

    Added $INPUTRC to /etc/profile, since too many people keep on bugging me,
    and it seems it has fallen now to my discression.

* rc-scripts 1.3.1 (23 Mar 2002)

  23 March 2002; Daniel Robbins <drobbins@gentoo.org>: init.d/net.eth0: fix for
  DHCP lease release from Jim Nutt.
  
  23 March 2002; Daniel Robbins <drobbins@gentoo.org>: rolling a new release
  since there are a lot of important bug fixes in here that are needed.

  23 March 2002; Martin Schlemmer <azarah@gentoo.org>:

    Resolve bug #1292.

    Remove the extra 'depmod -a' in /etc/init.d/modules, thanks to
    Spidler.

  21 March 2002; Martin Schlemmer <azarah@gentoo.org>:

    Update /sbin/rc to fix a 'cat mounts' instead of the correct
    version, 'cat /proc/mounts'.

  19 March 2002; Martin Schlemmer <azarah@gentoo.org>:

    Add initial support for the --quiet flag that suppress output.

  18 March 2002; Martin Schlemmer <azarah@gentoo.org>:

    Remove the 'try' from 'try /etc/init.d/depscan.sh' in /sbin/rc
    as not all errors by depscan.sh is critical.  It should be
    reworked to do better error handeling.

  14 March 2002; Martin Schlemmer <azarah@gentoo.org>:

    Fix the GID and UID of nobody and nogroup in /etc/passwd and
    /etc/group to match those of Debian, FBSD and others.  Thanks
    to those who reported it, and Woodchip for looking up the
    proper values.

    Update /etc/init.d/net.eth0 to properly down DHCP interfaces.
    This resolves bug #1150, thanks to Paul Fleischer.

  11 March 2002; Martin Schlemmer <azarah@gentoo.org>:

    Updated /etc/init.d/functions.sh not to use /usr/bin/basename,
    as some users have /usr on seperate partition which is not
    mounted when depscan.sh is run the first time.

    Updated the checking for more than one service providing the
    same virtual function in /etc/init.d/depscan.sh.  It should
    be working now, and this also fix a problem that when there is no
    service providing a virtual, counter was used uninitialized.

* rc-scripts 1.3.0 (10 March 2002)

  10 March 2002; Martin Schlemmer <azarah@gentoo.org>:
  
    Resolved bug #1021; updated /etc/init.d/consolefont for this.

    Resolved bug #1029; updated /etc/init.d/net.eth0 for this.

    Resolved bug #990; updated /etc/init.d/net.eth0, /etc/init.d/netmount
    and /etc/init.d/localmount for this.

    Lots of form/syntax cleanups, most things should be more
    consistant now.  Fixed fail detection/return values of lots of
    scripts.

    Lots of cleanup/fixes in the three main scripts behind our
    rc-system, /sbin/rc, /etc/init.d/depscan.sh, /etc/init.d/runscript.sh

    Fix a bug regarding a invalid $PATH for portage if /etc/init.d/functions.sh
    is sourced in a ebuild.

    Fix a bug that our rc-script wrapper introduced:  Global variables
    in scripts no longer worked.  Updated /etc/init.d/runscript.sh for
    this.

    Implemented more error checking for the main startup code in /sbin/rc.
    Also fixed try() for mounting /proc (maybe all mount commands).
    The function worked fine in a simulated test, but in real life failed
    to detect a error when mounting /proc (remember to thank Grant for
    his UserMode ebuilds, and Guide).

* rc-scripts 1.2.9 (6 March 2002)

  6 March 2002; Martin Schlemmer <azarah@gentoo.org>:
  
    General form updates and some piping fixes.

    Updated /etc/inittab, /etc/init.d/xdm and /etc/X11/startDM.sh
    to fix a problem where startDM.sh would be respawned repeatedly
    if xdm was not in the default runlevel.

* rc-scripts 1.2.8 (4 March 2002)

  4 March 2002; Martin Schlemmer <azarah@gentoo.org>:
  
    Add /etc/init.d/xdm, /etc/X11/startDM.sh and updated /etc/inittab
    to fix the "dead key" problem we had with xdm/gdm/kdm.  We should
    move them to the xfree ebuild later on when things settles down.

    Added some sanity checks to /sbin/rc, /etc/init.d/runscripts.sh.

    Added a basic $PATH to /etc/init.d/functions.sh to fix a problem
    where we had a invalid $PATH on boot in some cases.

    Updated /etc/init.d/keymap and /etc/init.d/consolefont to work with
    the new sys-apps/kbd package.

* rc-scripts 1.2.7 (3 March 2002)

  3 March 2002; Martin Schlemmer <azarah@gentoo.org>:
  
    Fixed the problem of rc-scripts trying to start/stop a service multiple
    times if it fails to do so.  Updated /etc/init.d/runscript.sh and /sbin/rc
    for this.

    Fixing some variable declarations in /etc/init.d/runscript.sh caused
    /etc/init.d/net.lo to fail on stop ($IFACE was set invalid). Fixed
    this.

    Added caching of the "depend() { need foo; } " lines, and updated
    /etc/init.d/depscan.sh to touch the actual files less.  This should
    speedup dependancy caching a lot, especially on slow machines.

    Updated /etc/passwd to have users with no shell defined, use /bin/false
    for security.

    Update /etc/fstab to mention /dev/shm since we dont mount it anymore.

  1 March 2002; Martin Schlemmer <azarah@gentoo.org>:
  
    Added a wrapper for sourcing the rc-scripts to eliminate syntax errors.
    Thanks to Karl Trygve Kalleberg (aka karltk) for the idea.  Updated
    /etc/init.d/depscan.sh, /etc/init.d/functions.sh and
    /etc/init.d/runscript.sh for this (added wrap_rcscript() function).

    Removed stopping of dependant services that have current service as
    a 'use'dependancy ... should be less confusing now.
    Updated /etc/init.d/runscript.sh for this.

  28 Feb 2002; Martin Schlemmer <azarah@gentoo.org>:
  
    Add /etc/conf.d/local.start and /etc/conf.d/local.stop for adding any misc
    programs to startup.  This should pretty much have /etc/init.d/ static,
    except for baselayout updates, etc.

  27 Feb 2002; Martin Schlemmer <azarah@gentoo.org>:
  
    In some wierd cases, a redundent /dev/.devfsd on a unmounted /dev can cause
    problems.  Fixed this in /sbin/rc.

    Added the patches from Grant Goodyear (aka g2boojum) to enable us to
    use a ramdisk to store the contents of ${svcdir}.  Updated /sbin/rc,
    /etc/init.d/functions.sh and /etc/init.d/checkroot for this.

  26 Feb 2002; Martin Schlemmer <azarah@gentoo.org>:
  
    Fix my brain dead update of the 25th.  It really should keep
    "gentoo=nodevfs" in mind.  Also added 'get_bootparam()' to help in
    retrieving kernel options.  Updated /etc/init.d/functions.sh,
    /etc/init.d/checkroot and /sbin/rc for this.

    Updated /etc/init.d/consolefont to work without devfs as well.

    When rebooting or shutting down, a service should not fail to stop
    if a service it depends on, fails.  Updated /etc/init.d/runscript.sh
    for this.

  25 Feb 2002; Martin Schlemmer <azarah@gentoo.org>:
  
    Added a check if /dev is mounted when creating entries for /etc/mtab.
    This should solve a invalid entry or /dev being mounted even with
    'gentoo=nodevfs' option.  Updated /etc/init.d/checkroot for this.

  17 Feb 2002: Daniel Robbins <drobbins@gentoo.org>: Made "xfs" the default
  filesystem in /etc/fstab (from ReiserFS) and removed "notail" option (it's
  just in a comment now)

  17 Feb 2002: Martin Schlemmer (azarah@gentoo.org):
  
    Mmore fixes to 'after' and 'before', updated /etc/init.d/runscript.sh for
    this.  This should fix services not getting started in the correct order
    in a tight loop,  services getting stopped out of order, and some other
    sanity checks.  Updated rc-script.sh for updated help.
  
  15 Feb 2002: Martin Schlemmer (azarah@gentoo.org):
  
    Update /etc/profile to resolve bug #588.  Reimplemented things a bit,
    and added the 'after' type. 'before' and 'after' will only work currently
    for a change of runlevel.  Updated /etc/init.d/depscan.sh,
    /etc/init.d/runscript.sh and /sbin/rc for this.

  13 Feb 2002: Martin Schlemmer (azarah@gentoo.org):
  
    Add some more entries to /etc/devfsd.conf to make alsa users life
    easier ...  thanks Tod.

  12 Feb 2002: Martin Schlemmer (azarah@gentoo.org):
  
    Some more cleanups to /etc/init.d/depscan.sh and /etc/init.d/runscript.sh.

    Fixed some services not starting again when restarting a service.
    Seems simple is still the best way.

    Fixed some other problems created with feature additions and cleanups.

  11 Feb 2002: Martin Schlemmer (azarah@gentoo.org):
  
    General cleanups to /etc/init.d/depscan.sh and /etc/init.d/runscript.sh.

    Added 'before *' to /etc/init.d/checkroot to make sure it gets
    started first.

    Added 'use *' to /etc/init.d/local to make sure it gets started
    last.

  10 Feb 2002: Martin Schlemmer (azarah@gentoo.org):
  
    Fixed /sbin/rc to stop a service on change of runlevel if it is
    in 'use' by another service.

    Added the 'provide' depend type for creating virtual services.
    Updated /etc/init.d/depscan.sh for this.

    Added the 'before' depend type.  This is more for changing the
    order services start in.  Updated /etc/init.d/depscan.sh and
    /etc/init.d/functions.sh for this.

    Updated /etc/init.d/depscan.sh to work with '*' as argument for
    dependancy types.  This can be used with 'use' and 'before' to
    start a script last or first respectively.

    Added save_options() and get_options() to /etc/init.d/functions.sh
    for saving misc settings between startup/shutdown.  Updated
    /etc/init.d/net.eth0 to use these and properly down virtual
    interfaces.

  6 Feb 2002: Martin Schlemmer (azarah@gentoo.org):
  
    Updated both /etc/init.d/bootmisc and /etc/init.d/keymaps to be quiet
    on no errors.

* rc-scripts 1.2.6 (6 Feb 2002)

  2 Feb 2002: Martin Schlemmer (azarah@gentoo.org):
  
    Updated /etc/net.eth0 to specify the gateway device via the $gateway
    variable (something like gateway="eth0/192.168.0.1").

  2 Feb 2002: Martin Schlemmer (azarah@gentoo.org):
  
    Added rc-script /etc/init.d/numlock, for enabling numlock at boot.

  29 Jan 2002: Martin Schlemmer (azarah@gentoo.org):
  
    Hopefully the last fix to /etc/init.d/netmount to umount cleanly.  This fix
    implements a retry if not successful the first time, and will kill
    processess using the mount.  Also small type-o fix to /etc/init.d/halt.sh.

  27 Jan 2002: Donny Davies (woodchip@gentoo.org): security fix to
  /etc/pam.d/sshd,login,chsh: added pam_shells.so to the stack.
  Fixed /etc/passwd,group for user/group mysql.

  27 Jan 2002: Martin Schlemmer (azarah@gentoo.org): added charset
  map file support to /etc/init.d/consolefont and the setting to
  /etc/rc.conf.

  25 Jan 2002: Martin Schlemmer (azarah@gentoo.org): fixed dircolors
  in skel files to support both versions of dircolors.

  23 Jan 2002: Martin Schlemmer (azarah@gentoo.org): fixed bug
  in the restart stuff of /etc/init.d/runscript.sh that caused
  a restart of a 'net' service not to restart services again
  that depended on it.

* rc-scripts 1.2.5 (20 Jan 2002)

  20 Jan 2002: Martin Schlemmer (azarah@gentoo.org): updated
  /etc/init.d/net.eth0 to 'use' pcmcia.

  8  Jan 2002: Martin Schlemmer (azarah@gentoo.org): added '--sh' to
  the dircolors command in /etc/skel/.bash_profile to handle cases
  where bash do not export $SHELL.

  6  Jan 2002: Martin Schlemmer (azarah@gentoo.org): updated 
  /etc/init.d/runscripts.sh, /etc/init.d/net.eth0, /etc/conf.d/net and
  removed /etc/init.d/net.eth0-dhcp to reflect a new 'bsd-ish' config
  scheme for the net.eth* scripts.

  6  Jan 2002: Donny Davies (woodchip@gentoo.org): Removed email address
  from manpages; no need for that..

  5  Jan 2002: Martin Schlemmer (azarah@gentoo.org): fix type-o in
  /etc/devfsd.conf; had 'dvd' in the cdrw stuff.

* rc-scripts 1.2.4 (30 Dec 2001)

  30 Dec 2001: Daniel Robbins (drobbins@gentoo.org): Changed default umask
  back to 022 as it should be.

  30 Dec 2001; Martin Schlemmer (azarah@gentoo.org): Updated
  /etc/init.d/checkfs to return 0 if the fs was successfully repaired.

  29 Dec 2001; Donny Davies (woodchip@gentoo.org):
    sort -t: -k3,3 -n /etc/passwd,group.  Ahhhh :))

  28 Dec 2001; Martin Schlemmer (azarah@gentoo.org);
  
    Updated /etc/init.d/depscan.sh to store info about missing dependancies
    of type 'need' in ${svcdir}/broken.  Also updated /etc/init.d/runscript.sh
    to use this when starting a script ('need' dependancies is critical for
    startup).  Added the broken() function to /etc/init.d/runscript.sh
    to list the missing dependancies.

    Updated /etc/init.d/runscript.sh for svc_start() to have better error
    checking.

    Updated /etc/init.d/functions.sh with ewend(), which is the same as
    eend(), but print a warning on error, not a error.  Updated
    /etc/init.d/checkroot and /etc/init.d/checkfs to use this function.

  27 Dec 2001; Martin Schlemmer (azarah@gentoo.org);
  
    Update /sbin/runscript.c to run /etc/init.d/rc-help.sh if no arguments
    is passed to a rc-script.
  
    Added /etc/init.d/rc-help.sh, simple script that prints out help for
    the rc-scripts.

  25 Dec 2001; Martin Schlemmer (azarah@gentoo.org);
  
    Update /etc/init.d/shutdown.sh and /etc/init.d/reboot.sh not to force the
    halt and reboot.  This fixes a problem where / was not unmounted properly
    in some cases.

  24 Dec 2001; Martin Schlemmer (azarah@gentoo.org):
  
    Move $svcdir to to /etc/init.d/functions.sh, and update
    /etc/init.d/runscript.sh and /etc/init.d/depscan.sh for this

    Modified /etc/init.d/runscript.sh to also restart the services that
    depend on a service if that service is restarted.  Enhanced the
    restart function to be able to have custom restart() functions in
    rc-scripts.  The custom restart() have to use svc_stop() and
    svc_start() to restart the service.

    Add a pause function to /etc/init.d/runscript.sh.  It will basically
    stop a service without stopping the services that depends on that
    service.

    Add a pause function to /etc/init.d/runscript.sh.  It will basically stop a
    service without stopping the services that depends on that service.

* rc-scripts 1.2.3 (18 Dec 2001)

  16 Dec 2001; Martin Schlemmer (azarah@gentoo.org):
  
    Moved the stuff from /sbin/init (old) to /sbin/rc (basically drop the
    init wrapper we used).

    Some cleanups:  take out the shm resize comment;

                    remove the $wrongmount;

                    remove the mountshm() function and insert it directly
                    where needed;

                    remove the setting of $PATH as /sbin/init already do 
                    this for us.

    Added the if statement to detect if it is the first time the 'boot'
    runlevel is executed (if [ "$RUNLEVEL" = "S" ] && [ "$argv1" = "boot" ]).
    $RUNLEVEL is a env var set by /sbin/init.

    Also added functionality to detect if the kernel have DEVFS support
    compiled in; seems new users thinks devfs is unstable and as they do
    not always read the docs, it does not get compiled in ;/  Should
    make live for us a bit easier.
    
  14 Dec 2001; Martin Schlemmer (azarah@gentoo.org):
  
    Fixed /sbin/rc to kill a cosmetic bug in the part that stops all
    the unneeded services.  

* rc-scripts 1.2.2 (8 Dec 2001)

  10 Dec 2001; Added a localhost entry in /etc/hosts.

  8  Dec 2001; Donny Davies (woodchip@gentoo.org): Added start-stop-daemon.c
  to rc-scripts/sbin source.  Moved rc-scripts/init.d/runscript.c to
  rc-scripts/sbin/runscript.c.  Added manpage for start-stop-daemon.
  Start-stop-daemon is moved here from sysvinit by the way.  There is stuff
  in this ChangeLog that needs to be removed! Like the changes to hosts,
  profile.  /etc/{passwd,group} have minor UID and GID type fixes for
  users ftp, postgres, xfs.  Tweaked tarball.sh to not include CVS
  directories.

  29 Nov 2001; Donny Davies (woodchip@gentoo.org): Added a man directory
  to rc-scripts.  Checked in two manpages there, one for modules.autoload.5
  and one for update-modules.8. These were adapted from Debian. Updated
  tarball.sh to include the new man directory. Updated baselayout to install
  these manpages. Slightly tweak the /etc/modules.autoload comments.

  28 Nov 2001; Martin Schlemmer (azarah@gentoo.org):
  
    Updated /sbin/init to work correctly with the 'gentoo=nodevfs' option,
    and cleaned out old code.

    Updated /etc/init.d/bootmisc with additional lock files to clean.

  27 Nov 2001; Martin Schlemmer (azarah@gentoo.org):
  
    Updated /etc/init.d/depscan.sh for a virtual 'use' depend, called 'logger'
    that can be used for services that needs to have a logger started before
    they are started.  Updated /etc/conf.d/basic with $SYSLOGGER that is used
    to define what loggers the 'logger' depend represent.

  26 Nov 2001; Martin Schlemmer (azarah@gentoo.org):
  
    Updated /etc/passwd and /etc/group with minor fixes to pass pwck
    and grpck.

  25 Nov 2001; Martin Schlemmer (azarah@gentoo.org):
  
    Changed umask in /etc/profile for the user to 077 for security.

    Added a stop() function to /etc/init.d/clock.  Also removed uneeded
    'source /etc/rc.conf' line.

    Updated /etc/init.d/hostname to set the hostname to 'localhost' if
    /etc/hostname is invalid.

    Updated /sbin/init to move the entries in /lib/dev-state to /dev before
    running devfsd, as it did still not save settings properly.  Also removed
    old /dev-state/compat stuff.

  25 Nov 2001; ncsd, the name service cache daemon script, has been removed
  from the default "default" runlevel.  It still exists in the archive so that
  users who want/need it can add it easily.

  25 Nov 2001; Updated the /etc/fstab; removed usbdevfs (explicitly mounted),
  removed notail from the ext2 boot partition, other cleanups.

  25 Nov 2001; Fixed init.d/clock script to work in UTC mode.

  24 Nov 2001; Martin Schlemmer (azarah@gentoo.org):
  
    Added /etc/devfsd.conf and updated /sbin/init to use a new scheme for saving
    /dev permissions.  Also moved /dev-state to /lib/dev-state which is a more
    standard location.

    Fixed a ugly bug in /etc/init.d/depscan.sh.  If a service depended on
    itself, calling depscan.sh or changing runlevels cause a tempory effect
    similar to a 'mini fork bomb'.  Afterwards the depends was broken, and
    changing runlevels did not want to work.

    Updated /etc/init.d/halt.sh to terminate and display message for devfsd.
    More cosmetic than anything else, but cant hurt with the new dev-state
    scheme.

    Updated /sbin/init to set the console log level to 1, so that bootup
    can be much cleaner.  Also updated /etc/init.d/modules not to have
    a logger in it 'use' depends, as it should not be needed anymore.

    Updated /sbin/rc to check if devfsd is still running between runlevel
    changes.

    Updated /etc/init.d/modules to run update-modules.  We want to be sure
    /etc/modules.conf is updated when running depmod -a.

    Change ftp's uid to 21 in /etc/passwd (was the same as bind).  Also
    added a entry for xfs (X Font Server) in /etc/passwd and /etc/group.

    Added /etc/init.d/net.ppp0, /etc/conf.d/net.ppp0 and
    /usr/lib/ppp/chat-default as part of my new pppd scripts.  Also
    updated tarball.sh to handle ppp/chat-default.

    Added /etc/skel/.bash* to make things cleaner.

    Other minor changes.

  17 Nov 2001; Donny Davies (woodchip@gentoo.org): Added /etc/shells file
  to rc-scripts.  Can remove it from sys-libs/shadow at the next release.

* rc-scripts 1.1.8 (15 Nov 2001)

  16 Nov 2001; removed bogus "mountall.test" script.
  
  15 Nov 2001; Martin Schlemmer (azarah@gentoo.org):
  
    Updated init.d/{runscript.sh,depscan.sh}, sbin/rc to the new dep being
    'use' not 'uses', as it fits better with 'need' (not 'needs').  Also
    removed unneeded for loop from init.d/depscan.sh, and other fixes.  Updated
    names of new functions in init.d/runscript.sh to better sounding ones.
    Updated init.d/modules, init.d/netmount to use 'use'.  Lots of other
    fixes/cleanups.
    
    Removed try() out of init.d/runscript.sh (why was this here ?).

  14 Nov 2001; Martin Schlemmer (azarah@gentoo.org): 
  
    Now init.d/bootmisc cleans /tmp.  Also creates /etc/resolv.conf if it
    doesn't exist.

    init.d/hostname:  Added check for a valid /etc/hostname.

    init.d/keymaps:  Added check for valid $KEYMAP.

    init.d/modules:  Added sysklogd, metalog, syslog-ng as 'use' deps.  This
    should solve Woodchip's syslog+glue issue.  We just have to change the
    console loglevel for metalog and syslog-ng (sysklogd already updated) not to
    output info and warnings, etc to the console, then boot will be much cleaner.
    Also the install guide will need changing to add the loggers to 'boot' and
    not 'default' runlevel.

    init.d/mountall.test:  Hopefully updated to the new rc-scripts style.  Is
    this really needed (I cannot see that it is used anywhere ...)?

  13 Nov 2001; Martin Schlemmer (azarah@gentoo.org):
  
    Updated init.d/runscript.sh, init.d/depscan.sh and sbin/rc with a new depend
    called 'uses'.  It basically have the same usage as 'need', except that it
    do not start services that is not in the current and 'boot' runlevels.

    Updated init.d/netmount to use the 'uses' depend.

  11 Nov 2001; Martin Schlemmer (azarah@gentoo.org):
  
    Fixed init.d/runscript.sh not to destroy the 'need' depends in
    /${svcdir}/need.  This caused subsequent starting and stopping of services
    not to start depends.

  7 Nov 2001; Martin Schlemmer (azarah@gentoo.org):
  
    Fixed a problem in sbin/rc where the ${svcdir}/softscripts directory got
    destroyed before stopping running services scheduled to be stopped.  This
    with the fact that $SOFTLEVEL was set too early, caused the services to be
    stopped in the wrong order.

  30 Oct 2001; Martin Schlemmer (azarah@gentoo.org):
  
    Modified init.d/netmount to check if any network filesystems is mounted.

  29 Oct 2001; init.d/netmount: umount -art doesn't seem to work, so I added
  some awk and grep magic to find all remote filesystems and umount them.
  
  29 Oct 2001; Martin Schlemmer (azarah@gentoo.org):
  
    A fix for checkroot (missing "/"); it now actually checks the root
    filesystem.  Also, a localmount cleanliness fix.

* rc-scripts 1.1.7 (18 Oct 2001)

[old changelog format follows]

	*lots of scripts; woodchip
	removed old rc5 scripts from cvs

	*init.d/runscript.sh; agriffis
	Added support for rc.conf and home-grown functions
	
	*init.d/modules;
	Now correctly looks at /etc/modules.autoload

rc-scripts-1.1.6, released 15 Sep 2001
======================================

	*init.d/runscript.sh, others
	Handling of "net" dependencies resolve to all net devices in
	/etc/runlevels/boot and /etc/runlevels/[curr-runlevel].  INTERFACES
	variable in /etc/rc.conf has been removed.
	
	*init.d/runscript.sh
	New "zap" option for manually resetting the state of an initscript
	to stopped.

	*init.d/{samba,sysklogd,sshd}
	Removed from CVS; they live in their respective packages.

rc-scripts-1.1.5, released 02 Sep 2001
====================================

	*sbin/rc-update
	New version of the rc-update command for the new initscripts.  Works
	similarly to the old version, except this one updates our dependency
	cache.

	*init.d/functions.sh
	New and better looking informational message functions (einfo, einfon).
	Brand new message functions (ewarn).

	*sbin/init, init.d/checkroot
	We're going back to a /proc/mounts-based mtab symlink because it's 
	just plain better.  Appropriate changes made.

# vim:expandtab
