Changeset 8953f24 for bootscripts


Ignore:
Timestamp:
Sep 24, 2006, 12:22:14 AM (18 years ago)
Author:
Jim Gifford <clfs@…>
Branches:
clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
Children:
576135a
Parents:
040521bc
Message:

Readded Bootlog to bootscripts

Location:
bootscripts
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • bootscripts/Changelog

    r040521bc r8953f24  
     1jim - September 24, 2006
     2        * Changed LFS to CLFS
     3        * Added Logging Feature back to the bootscripts
     4
    15jim - September 2, 2006
    26        * Add a check to see if the interface is already disabled
    3 
    4 jim - September 2, 2006
    57        * Add a check to see if the interface is already setup
    68
  • bootscripts/Makefile

    r040521bc r8953f24  
    7575        ln -sf ../init.d/localnet    ${EXTDIR}/rc.d/rcsysinit.d/S80localnet
    7676        ln -sf ../init.d/sysctl      ${EXTDIR}/rc.d/rcsysinit.d/S90sysctl
     77        if [ ! -f ${EXTDIR}/sysconfig/bootscripts ]; then install -m ${CONFMODE} lfs/sysconfig/bootscripts ${EXTDIR}/sysconfig/bootscripts; fi
    7778        if [ ! -f ${EXTDIR}/sysconfig/console     ]; then install -m ${CONFMODE} lfs/sysconfig/console     ${EXTDIR}/sysconfig/; fi
    7879        if [ ! -f ${EXTDIR}/sysconfig/createfiles ]; then install -m ${CONFMODE} lfs/sysconfig/createfiles ${EXTDIR}/sysconfig/; fi
     
    132133        ln -sf ../init.d/paneld      ${EXTDIR}/rc.d/rc5.d/S99paneld
    133134        ln -sf ../init.d/paneld      ${EXTDIR}/rc.d/rc6.d/K01paneld
    134         if [ ! -f ${EXTDIR}/sysconfig/lcd          ]; then install -m ${CONFMODE} lfs/sysconfig/lcd-raq2          ${EXTDIR}/sysconfig/lcd; fi
     135        if [ ! -f ${EXTDIR}/sysconfig/lcd          ]; then install -m ${CONFMODE} lfs/sysconfig/lcd-raq2   ${EXTDIR}/sysconfig/lcd; fi
    135136
    136137install-raq3:
     
    143144        ln -sf ../init.d/setlcd      ${EXTDIR}/rc.d/rc5.d/S99setlcd
    144145        ln -sf ../init.d/setlcd      ${EXTDIR}/rc.d/rc6.d/K01setlcd
    145         if [ ! -f ${EXTDIR}/sysconfig/lcd          ]; then install -m ${CONFMODE} lfs/sysconfig/lcd-raq3          ${EXTDIR}/sysconfig/lcd; fi
     146        if [ ! -f ${EXTDIR}/sysconfig/lcd          ]; then install -m ${CONFMODE} lfs/sysconfig/lcd-raq3   ${EXTDIR}/sysconfig/lcd; fi
    146147
    147148install-lcd:
    148         if [ ! -f ${EXTDIR}/sysconfig/lcd          ]; then install -m ${CONFMODE} lfs/sysconfig/lcd              ${EXTDIR}/sysconfig/lcd; fi
     149        if [ ! -f ${EXTDIR}/sysconfig/lcd          ]; then install -m ${CONFMODE} lfs/sysconfig/lcd        ${EXTDIR}/sysconfig/lcd; fi
    149150
    150151.PHONY: all create-dirs create-service-dir install install-consolelog \
  • bootscripts/lfs/init.d/functions

    r040521bc r8953f24  
    128128        # Reset STRING_LENGTH for next message
    129129        STRING_LENGTH="0"
     130        if [ "$LOGGING" ]; then
     131                boot_log "${BOOTMESG}${@}"
     132        fi
    130133}
    131134
    132135boot_log()
    133136{
    134         # Left in for backwards compatibility
    135         echo -n ""
     137        if [ "$LOGGING" ]; then
     138                /bin/logger -p local2.info -t bootlog "${@}"
     139        else
     140                return 0
     141        fi
    136142}
    137143
     
    197203        boot_mesg -n "If you're able to track this"
    198204        boot_mesg -n " error down to a bug in one of the files provided by"
    199         boot_mesg -n " the LFS book, please be so kind to inform us at"
    200         boot_mesg " lfs-dev@linuxfromscratch.org.\n"
     205        boot_mesg -n " the CLFS book, please be so kind to inform us at"
     206        boot_mesg " clfs-dev@cross-lfs.org.\n"
    201207        boot_mesg_flush
    202208        if [ "$INTERACTIVE" ]; then
     
    452458}
    453459
    454 # This will ensure compatibility with previous LFS Bootscripts
     460# This will ensure compatibility with previous CLFS Bootscripts
    455461getpids()
    456462{
     
    494500        local nicelevel="10"
    495501
    496 # This will ensure compatibility with previous LFS Bootscripts
     502# This will ensure compatibility with previous CLFS Bootscripts
    497503        if [ -n "${PIDFILE}" ]; then
    498504                pidfile="${PIDFILE}"
     
    586592        pidlist=""
    587593
    588 # This will ensure compatibility with previous LFS Bootscripts
     594# This will ensure compatibility with previous CLFS Bootscripts
    589595        if [ -n "${PIDFILE}" ]; then
    590596                pidfile="${PIDFILE}"
  • bootscripts/lfs/sysconfig/bootscripts

    r040521bc r8953f24  
    22# Begin /etc/sysconfig/bootscripts
    33#
    4 # Description : LCD Screen Control
     4# Description : Bootscripts Config System
    55#
    66# Authors     :
     
    1717INTERACTIVE=y
    1818
     19# Enable/disable Logging of bootup
     20# Enable        - LOGGING=y
     21# Disable       - LOGGING=
     22LOGGING=y
     23
    1924# End /etc/sysconfig/bootscripts
Note: See TracChangeset for help on using the changeset viewer.