I've been reworking the bootscripts again.  I hope to have something 
available by the weekend.  Here is where I am right now.

Bootscript changes

Addded interactive capability
Append /run/var/bootlog to /var/log/boot.log at the end of boot sequence
/etc/init.d is a symlink to /etc/rc.d/init.d

rc file now runs `source /etc/sysconfig/rc.site` if present
   rc uses /bin/bash
   rc.site may override variables set by /etc/init.d/rc
   Allows for interactive boot (if IPROMPT="yes")
   Allows for setting /fastboot when doing reboot (init 6) if FASTBOOT 
is set (skips fsck)
   Skips waiting for user responses for errors if HEADLESS is set
   Skips cleaning /tmp if SKIPTMPCLEAN is set

The settings in clock, console, and network can be optionally placed in
rc.site and the separate files dropped.  If present, the separate files
override rc.site.

ifup/ifdown are now in /sbin
ifup/ifdown will properly add/remove multiple IP addresses when requested.

/lib/lsb is a symlink to /etc/services with files:
   init-functions
   ipv4-static
   ipv4-static-route

All scripts ihave been rewritten to use lsb library functions log_*_msg,
start_daemon, killproc, pidofproc.

   log* functions write to /run/var/bootlog with timestamp

   There are a few supplementary functions in init-functions:
    log_success_msg2 (no timestamp)
    log_failure_msg2 (no timestamp)
    log_info_msg2    (no timestamp)
    evaluate_retval  (finish user/log message)
    wait_for_user    ( if ! HEADLESS, read)

TODO
   Write help into ifup/ifdown
   Write man pages for ifup/ifdown
   Update the LFS Book to reflect changes
   Testing
   Testing
   Testing

A lot of this has been taken from DJ's work, so many thanks to him.

   -- Bruce

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to