source: bootscripts/contrib/lfs-bootscripts-raq2-9.patch @ 163a6701

clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since 163a6701 was 163a6701, checked in by Jim Gifford <clfs@…>, 18 years ago

r720@server (orig r718): jim | 2005-11-18 08:06:26 -0800
Added bootscripts to cross-lfs svn

  • Property mode set to 100644
File size: 20.0 KB
  • bootscripts

    Submitted By: Jim Gifford (patches at jg555 dot com)
    Date: 2005-07-01
    Initial Package Version: 3.2.2
    Origin: Jim Gifford
    Upstream Status: in contrib
    Description: Allows bootscripts to use LCD Screen on RaQ2
    
    diff -Naur bootscripts.orig/Makefile bootscripts/Makefile
    old new  
    2828        install -m ${MODE} lfs/init.d/halt          ${EXTDIR}/rc.d/init.d/
    2929        install -m ${MODE} lfs/init.d/console       ${EXTDIR}/rc.d/init.d/
    3030        install -m ${MODE} lfs/init.d/hotplug       ${EXTDIR}/rc.d/init.d/
     31        install -m ${MODE} lfs/init.d/paneld        ${EXTDIR}/rc.d/init.d/
    3132        install -m ${MODE} lfs/init.d/localnet      ${EXTDIR}/rc.d/init.d/
    3233        install -m ${MODE} lfs/init.d/modules       ${EXTDIR}/rc.d/init.d/
    3334        install -m ${MODE} lfs/init.d/mountfs       ${EXTDIR}/rc.d/init.d/
     
    4243        install -m ${MODE} lfs/init.d/sysctl        ${EXTDIR}/rc.d/init.d/
    4344        install -m ${MODE} lfs/init.d/template      ${EXTDIR}/rc.d/init.d/
    4445        install -m ${MODE} lfs/init.d/udev          ${EXTDIR}/rc.d/init.d/
     46        ln -sf ../init.d/paneld      ${EXTDIR}/rc.d/rc1.d/K01paneld
    4547        ln -sf ../init.d/network     ${EXTDIR}/rc.d/rc0.d/K80network
    46         ln -sf ../init.d/sysklogd   ${EXTDIR}/rc.d/rc0.d/K90sysklogd
     48        ln -sf ../init.d/sysklogd    ${EXTDIR}/rc.d/rc0.d/K90sysklogd
    4749        ln -sf ../init.d/hotplug     ${EXTDIR}/rc.d/rc0.d/S50hotplug
    4850        ln -sf ../init.d/sendsignals ${EXTDIR}/rc.d/rc0.d/S60sendsignals
    4951        ln -sf ../init.d/mountfs     ${EXTDIR}/rc.d/rc0.d/S70mountfs
    5052        ln -sf ../init.d/swap        ${EXTDIR}/rc.d/rc0.d/S80swap
    5153        ln -sf ../init.d/localnet    ${EXTDIR}/rc.d/rc0.d/S90localnet
    5254        ln -sf ../init.d/halt        ${EXTDIR}/rc.d/rc0.d/S99halt
     55        ln -sf ../init.d/paneld      ${EXTDIR}/rc.d/rc1.d/S99paneld
    5356        ln -sf ../init.d/network     ${EXTDIR}/rc.d/rc1.d/K80network
    54         ln -sf ../init.d/sysklogd   ${EXTDIR}/rc.d/rc1.d/K90sysklogd
     57        ln -sf ../init.d/sysklogd    ${EXTDIR}/rc.d/rc1.d/K90sysklogd
     58        ln -sf ../init.d/paneld      ${EXTDIR}/rc.d/rc2.d/S99paneld
    5559        ln -sf ../init.d/network     ${EXTDIR}/rc.d/rc2.d/K80network
    56         ln -sf ../init.d/sysklogd   ${EXTDIR}/rc.d/rc2.d/K90sysklogd
    57         ln -sf ../init.d/sysklogd   ${EXTDIR}/rc.d/rc3.d/S10sysklogd
     60        ln -sf ../init.d/sysklogd    ${EXTDIR}/rc.d/rc2.d/K90sysklogd
     61        ln -sf ../init.d/sysklogd    ${EXTDIR}/rc.d/rc3.d/S10sysklogd
     62        ln -sf ../init.d/paneld      ${EXTDIR}/rc.d/rc3.d/S99paneld
    5863        ln -sf ../init.d/network     ${EXTDIR}/rc.d/rc3.d/S20network
    59         ln -sf ../init.d/sysklogd   ${EXTDIR}/rc.d/rc4.d/S10sysklogd
     64        ln -sf ../init.d/sysklogd    ${EXTDIR}/rc.d/rc4.d/S10sysklogd
     65        ln -sf ../init.d/paneld      ${EXTDIR}/rc.d/rc4.d/S99paneld
    6066        ln -sf ../init.d/network     ${EXTDIR}/rc.d/rc4.d/S20network
    61         ln -sf ../init.d/sysklogd   ${EXTDIR}/rc.d/rc5.d/S10sysklogd
     67        ln -sf ../init.d/sysklogd    ${EXTDIR}/rc.d/rc5.d/S10sysklogd
     68        ln -sf ../init.d/paneld      ${EXTDIR}/rc.d/rc5.d/S99paneld
    6269        ln -sf ../init.d/network     ${EXTDIR}/rc.d/rc5.d/S20network
     70        ln -sf ../init.d/paneld      ${EXTDIR}/rc.d/rc6.d/K01paneld
    6371        ln -sf ../init.d/network     ${EXTDIR}/rc.d/rc6.d/K80network
    64         ln -sf ../init.d/sysklogd   ${EXTDIR}/rc.d/rc6.d/K90sysklogd
     72        ln -sf ../init.d/sysklogd    ${EXTDIR}/rc.d/rc6.d/K90sysklogd
    6573        ln -sf ../init.d/hotplug     ${EXTDIR}/rc.d/rc6.d/S50hotplug
    6674        ln -sf ../init.d/sendsignals ${EXTDIR}/rc.d/rc6.d/S60sendsignals
    6775        ln -sf ../init.d/mountfs     ${EXTDIR}/rc.d/rc6.d/S70mountfs
  • lfs/init.d/checkfs

    diff -Naur bootscripts.orig/lfs/init.d/checkfs bootscripts/lfs/init.d/checkfs
    old new  
    3333                if [ -f /fastboot ]; then
    3434                        boot_mesg -n "/fastboot found, will not perform" ${INFO}
    3535                        boot_mesg " file system checks as requested."
     36                        putlcd "Fast boot" "requested"
    3637                        echo_ok
    3738                        exit 0
    3839                fi
    3940
    4041                boot_mesg "Mounting root file system in read-only mode..."
     42                putlcd "Mounting / in" "read-only mode"
    4143                mount -n -o remount,ro / >/dev/null
    4244                evaluate_retval
    4345
     
    4850                        boot_mesg -n " in read-only mode.\n\nAfter you"
    4951                        boot_mesg -n " press Enter, this system will be"
    5052                        boot_mesg -n " halted and powered off."
    51                         boot_mesg -n "\n\nPress enter to continue..." ${INFO}
    5253                        boot_mesg "" ${NORMAL}
    53                         read ENTER
     54                        putlcd "FileSystem Error" "Halting System"
     55                        sleep 10
    5456                        /etc/rc.d/init.d/halt stop
    5557                fi
    5658
    5759                if [ -f /forcefsck ]; then
    5860                        boot_mesg -n "/forcefsck found, forcing file" ${INFO}
    5961                        boot_mesg " system checks as requested."
     62                        putlcd "Forcing file" "system check"
    6063                        echo_ok
    6164                        options="-f"
    6265                else
     
    6467                fi
    6568
    6669                boot_mesg "Checking file systems..."
     70                putlcd "Checking file"  "systems..."
    6771                # Note: -a option used to be -p; but this fails e.g.
    6872                # on fsck.minix
    6973                fsck ${options} -a -A -C -T 2>/dev/null
     
    9094                        boot_mesg -n " errors require this system to be"
    9195                        boot_mesg -n " rebooted.\n\nAfter you press enter,"
    9296                        boot_mesg -n " this system will be rebooted"
    93                         boot_mesg -n "\n\nPress Enter to continue..." ${INFO}
    9497                        boot_mesg "" ${NORMAL}
    95                         read ENTER
     98                        putlcd "Errors corrected" "Rebooting"
     99                        sleep 5
    96100                        reboot -f
    97101                fi
    98102
     
    107111                        boot_mesg -n " System Administrator.\n\nAfter you"
    108112                        boot_mesg -n " press Enter, this system will be"
    109113                        boot_mesg -n " halted and powered off."
    110                         boot_mesg -n "\n\nPress Enter to continue..." ${INFO}
    111114                        boot_mesg "" ${NORMAL}
    112                         read ENTER
     115                        putlcd "FileSystem Error" "Halting System"
     116                        sleep 10
    113117                        /etc/rc.d/init.d/halt stop
    114118                fi
    115119
  • lfs/init.d/cleanfs

    diff -Naur bootscripts.orig/lfs/init.d/cleanfs bootscripts/lfs/init.d/cleanfs
    old new  
    7272case "${1}" in
    7373        start)
    7474                boot_mesg -n "Cleaning file systems:" ${INFO}
     75                putlcd "Cleaning file" "systems:"
    7576
    7677                boot_mesg -n " /tmp" ${NORMAL}
     78                putlcd "Cleaning:" "/tmp"
    7779                cd /tmp &&
    7880                find . -xdev -mindepth 1 ! -name lost+found \
    7981                        -delete || failed=1
    8082
    8183                boot_mesg -n " /var/lock" ${NORMAL}
     84                putlcd "Cleaning:" "/var/lock"
    8285                cd /var/lock &&
    8386                find . -type f ! -newer /proc -exec rm -f {} \; || failed=1
    8487
    8588                boot_mesg " /var/run" ${NORMAL}
     89                putlcd "Cleaning:" "/var/run"
    8690                cd /var/run &&
    8791                find . ! -type d ! -name utmp ! -newer /proc \
    8892                        -exec rm -f {} \; || failed=1
     
    97101
    98102                if egrep -qv '^(#|$)' /etc/sysconfig/createfiles 2>/dev/null; then
    99103                        boot_mesg "Creating files and directories..."
     104                        putlcd "Creating files" "and directories"
    100105                        create_files
    101106                        evaluate_retval
    102107                fi
  • lfs/init.d/console

    diff -Naur bootscripts.orig/lfs/init.d/console bootscripts/lfs/init.d/console
    old new  
    2525        start)
    2626                if [ -n "${KEYMAP}" ]; then
    2727                        boot_mesg "Loading keymap: ${KEYMAP}..."
     28                        putlcd "Loading keymap:" "${KEYMAP}"
    2829                        loadkeys ${KEYMAP} &>/dev/null
    2930                        evaluate_retval
    3031                fi
    3132
    3233                if [ -n "${KEYMAP_CORRECTIONS}" ]; then
    3334                        boot_mesg "Loading keymap corrections: ${KEYMAP_CORRECTIONS}..."
     35                        putlcd "Loading keymap" "corrections"
    3436                        loadkeys ${KEYMAP_CORRECTIONS} &>/dev/null
    3537                        evaluate_retval
    3638                fi
    3739
    3840                if [ -n "${FONT}" ]; then
    3941                        boot_mesg "Setting screen font to ${FONT}..."
     42                        putlcd "Setting font" "to $FONT"
    4043                        setfont $FONT &>/dev/null
    4144                        evaluate_retval
    4245                fi
  • lfs/init.d/functions

    diff -Naur bootscripts.orig/lfs/init.d/functions bootscripts/lfs/init.d/functions
    old new  
    263263        boot_mesg -n " the LFS book, please be so kind to inform us at"
    264264        boot_mesg " lfs-dev@linuxfromscratch.org.\n"
    265265        boot_mesg_flush
    266         boot_mesg -n "Press Enter to continue..." ${INFO}
     266        putlcd "BootScript Error" "view bootlog"
     267        sleep 20
    267268        boot_mesg "" ${NORMAL}
    268269        read ENTER
    269270}
  • lfs/init.d/hotplug

    diff -Naur bootscripts.orig/lfs/init.d/hotplug bootscripts/lfs/init.d/hotplug
    old new  
    1818case "${1}" in
    1919        start|restart)
    2020                boot_mesg "Loading modules for system devices..."
     21                putlcd "Loading modules" "for devices"
    2122                for rc in /etc/hotplug/*.rc
    2223                do
    2324                        ${rc} ${1}
  • lfs/init.d/localnet

    diff -Naur bootscripts.orig/lfs/init.d/localnet bootscripts/lfs/init.d/localnet
    old new  
    1919case "${1}" in
    2020        start)
    2121                boot_mesg "Bringing up the loopback interface..."
     22                putlcd "Loopback:" "Up"
    2223                ip addr add 127.0.0.1/8 label lo dev lo
    2324                ip link set lo up
    2425                evaluate_retval
    2526
    2627                boot_mesg "Setting hostname to ${HOSTNAME}..."
     28                putlcd "Hostname:" "${HOSTNAME}"
    2729                hostname ${HOSTNAME}
    2830                evaluate_retval
    2931                ;;
    3032
    3133        stop)
    3234                boot_mesg "Bringing down the loopback interface..."
     35                putlcd "Loopback:" "Down"
    3336                ip link set lo down
    3437                evaluate_retval
    3538                ;;
  • lfs/init.d/modules

    diff -Naur bootscripts.orig/lfs/init.d/modules bootscripts/lfs/init.d/modules
    old new  
    6060                                        # otherwise take note.
    6161                                        if [ ${?} -eq 0 ]; then
    6262                                                boot_mesg -n " ${module}" ${NORMAL}
     63                                                putlcd "Module:" "${module}"
    6364                                        else
    6465                                                failedmod="${failedmod} ${module}"
    6566                                        fi
  • lfs/init.d/mountfs

    diff -Naur bootscripts.orig/lfs/init.d/mountfs bootscripts/lfs/init.d/mountfs
    old new  
    1818case "${1}" in
    1919        start)
    2020                boot_mesg "Remounting root file system in read-write mode..."
     21                putlcd "Remounting:" "/"
    2122                mount -n -o remount,rw / &>/dev/null
    2223                evaluate_retval
    2324
     
    2526                rm -f /fastboot /forcefsck
    2627
    2728                boot_mesg "Recording existing mounts in /etc/mtab..."
     29                putlcd "Recording mounts" "in /etc/mtab"
    2830                > /etc/mtab
    2931                mount -f / || failed=1
    3032                mount -f /proc || failed=1
     
    3537                # This will mount all filesystems that do not have _netdev in
    3638                # their option list.  _netdev denotes a network filesystem.
    3739                boot_mesg "Mounting remaining file systems..."
     40                putlcd "Mounting:" "file systems"
    3841                mount -a -O no_netdev &>/dev/null
    3942                evaluate_retval
    4043                ;;
    4144
    4245        stop)
    4346                boot_mesg "Unmounting all other currently mounted file systems..."
     47                putlcd "Unmounting:" "file systems"
    4448                umount -a -d -r &>/dev/null
    4549                evaluate_retval
    4650                ;;
  • lfs/init.d/paneld

    diff -Naur bootscripts.orig/lfs/init.d/paneld bootscripts/lfs/init.d/paneld
    old new  
     1#!/bin/sh
     2########################################################################
     3# Begin $rc_base/init.d/paneld
     4#
     5# Description : Show Messages on the LCD Panel
     6#
     7# Author      : Jim Gifford - jim@linuxfromscratch.org
     8#
     9# Version     : 00.00
     10#
     11# Notes       :
     12#
     13########################################################################
     14
     15. /etc/sysconfig/rc
     16. $rc_functions
     17
     18case "$1" in
     19        start)
     20                boot_mesg "Setting up LCD Panel"
     21                ip addr show dev eth0 > /dev/null 2>&1
     22                if [ "$?" = "0" ]; then
     23                        IFACE1_IP="`ip addr show dev eth0 | grep inet | cut -d / -f 1 | cut -d t  -f 2 | cut -d' ' -f 2 `"
     24                        IFACE1="$IFACE1_IP"
     25                fi
     26                ip addr show dev eth1 > /dev/null 2>&1
     27                if [ "$?" = "0" ]; then
     28                        IFACE2_IP="`ip addr show dev eth1 | grep inet | cut -d / -f 1 | cut -d t  -f 2 | cut -d' ' -f 2 `"
     29                        IFACE2="$IFACE2_IP"
     30                fi
     31                COMMON="Hold S & E Menu"
     32                if [ "$IFACE2" = "" ]; then
     33                        loadproc paneld -d "Lan1 $IFACE1" "$COMMON"
     34                else
     35                        loadproc paneld -d "Lan1 $IFACE1" "Lan2 $IFACE2" "$COMMON"
     36                fi
     37
     38        ;;
     39
     40        stop)
     41                boot_mesg "Clearing LCD Panel..."
     42                putlcd "Clearing" "LCD Panel"
     43                killproc paneld
     44                ;;
     45
     46        restart)
     47                ${0} stop
     48                sleep 1
     49                ${0} start
     50                ;;
     51
     52        status)
     53                statusproc paneld
     54                ;;
     55
     56        *)
     57                echo "Usage: {start|stop|restart|status}"
     58                exit 1
     59                ;;
     60esac
     61
     62# End $rc_base/init.d/paneld
     63
  • lfs/init.d/rc

    diff -Naur bootscripts.orig/lfs/init.d/rc bootscripts/lfs/init.d/rc
    old new  
    3333
    3434if [ ! -d ${rc_base}/rc${runlevel}.d ]; then
    3535        boot_mesg "${rc_base}/rc${runlevel}.d does not exist." ${WARNING}
     36        putlcd "${rc_base}/rc${runlevel}.d" "does not exist."
    3637        boot_mesg_flush
    3738        exit 1
    3839fi
     
    5657                                boot_mesg -n " not started in the previous"
    5758                                boot_mesg -n " runlevel (${previous})."
    5859                                boot_mesg "" ${NORMAL}
     60                                putlcd "BootScript Error" "view bootlog"
     61                                sleep 20
    5962                                boot_mesg_flush
    6063                                continue
    6164                        fi
     
    9295        esac
    9396        error_value=${?}
    9497
    95         if [ "${error_value}" != "0" ]; then
     98        if [ "${error_value}" != "0" ]; then
    9699                print_error_msg
    97100        fi
    98101done
  • lfs/init.d/reboot

    diff -Naur bootscripts.orig/lfs/init.d/reboot bootscripts/lfs/init.d/reboot
    old new  
    1717
    1818case "${1}" in
    1919        stop)
    20                 boot_mesg "Restarting system..."
    2120                reboot -d -f -i
    2221                ;;
    2322
  • lfs/init.d/sendsignals

    diff -Naur bootscripts.orig/lfs/init.d/sendsignals bootscripts/lfs/init.d/sendsignals
    old new  
    1818case "${1}" in
    1919        stop)
    2020                boot_mesg "Sending all processes the TERM signal..."
     21                putlcd "Sending:" "TERM signal"
    2122                killall5 -15
    2223                error_value=${?}
    2324
     
    3031                fi
    3132
    3233                boot_mesg "Sending all processes the KILL signal..."
     34                putlcd "Sending:" "KILL signal"
    3335                killall5 -9
    3436                error_value=${?}
    3537
  • lfs/init.d/setclock

    diff -Naur bootscripts.orig/lfs/init.d/setclock bootscripts/lfs/init.d/setclock
    old new  
    3232case ${1} in
    3333        start)
    3434                boot_mesg "Setting system clock..."
     35                putlcd "Setting:" "system clock"
    3536                hwclock --hctosys ${CLOCKPARAMS} &>/dev/null
    3637                evaluate_retval
    3738                ;;
    3839
    3940        stop)
    4041                boot_mesg "Setting hardware clock..."
     42                putlcd "Setting:" "hardware clock"
    4143                hwclock --systohc ${CLOCKPARAMS} &>/dev/null
    4244                evaluate_retval
    4345                ;;
  • lfs/init.d/swap

    diff -Naur bootscripts.orig/lfs/init.d/swap bootscripts/lfs/init.d/swap
    old new  
    1818case "${1}" in
    1919        start)
    2020                boot_mesg "Activating all swap files/partitions..."
     21                putlcd "Activating:" "swap"
    2122                swapon -a
    2223                evaluate_retval
    2324                ;;
    2425
    2526        stop)
    2627                boot_mesg "Deactivating all swap files/partitions..."
     28                putlcd "Deactivating:" "swap"
    2729                swapoff -a
    2830                evaluate_retval
    2931                ;;
  • lfs/init.d/sysctl

    diff -Naur bootscripts.orig/lfs/init.d/sysctl bootscripts/lfs/init.d/sysctl
    old new  
    2121        start)
    2222                if [ -f "/etc/sysctl.conf" ]; then
    2323                        boot_mesg "Setting kernel runtime parameters..."
     24                        putlcd "Utilizing:" "sysctl"
    2425                        sysctl -q -p
    2526                        evaluate_retval
    2627                fi
  • lfs/init.d/sysklogd

    diff -Naur bootscripts.orig/lfs/init.d/sysklogd bootscripts/lfs/init.d/sysklogd
    old new  
    1818case "${1}" in
    1919        start)
    2020                boot_mesg "Starting system log daemon..."
     21                putlcd "Starting:" "system log"
    2122                loadproc syslogd -m 0
    2223
    2324                boot_mesg "Starting kernel log daemon..."
     25                putlcd "Starting:" "kernel log"
    2426                loadproc klogd
    2527                ;;
    2628
    2729        stop)
    2830                boot_mesg "Stopping kernel log daemon..."
     31                putlcd "Stopping:" "system log"
    2932                killproc klogd
    3033
    3134                boot_mesg "Stopping system log daemon..."
     35                putlcd "Stopping:" "kernel log"
    3236                killproc syslogd
    3337                ;;
    3438
  • lfs/init.d/udev

    diff -Naur bootscripts.orig/lfs/init.d/udev bootscripts/lfs/init.d/udev
    old new  
    3939                        boot_mesg -n " will be halted and powered off."
    4040                        boot_mesg -n "\n\nPress Enter to continue..." ${INFO}
    4141                        boot_mesg "" ${NORMAL}
    42                         read ENTER
     42                        putlcd "BootScript Error" "view bootlog"
     43                        sleep 20
    4344                        /etc/rc.d/init.d/halt stop
    4445                fi
    4546
     
    5758                        boot_mesg -n " will be halted and powered off."
    5859                        boot_mesg -n "\n\nPress Enter to continue..." ${INFO}
    5960                        boot_mesg "" ${NORMAL}
    60                         read ENTER
     61                        putlcd "BootScript Error" "view bootlog"
     62                        sleep 20
    6163                        /etc/rc.d/init.d/halt stop
    6264                fi
    6365
  • lfs/sysconfig/network-devices/ifdown

    diff -Naur bootscripts.orig/lfs/sysconfig/network-devices/ifdown bootscripts/lfs/sysconfig/network-devices/ifdown
    old new  
    6969                                IFCONFIG=${file} ${network_devices}/services/${SERVICE} ${1} down
    7070                        else
    7171                                boot_mesg "Interface ${1} doesn't exist." ${WARNING}
     72                                putlcd "Interface ${1}" "doesn't exist."
    7273                                echo_warning
    7374                        fi
    7475                else
     
    8687        if [ -n "${link_status}" ]; then
    8788                if echo "${link_status}" | grep -q UP; then
    8889                        boot_mesg "Bringing down the ${1} interface..."
     90                        putlcd "Bringing down" "${1} interface"
    8991                        ip link set ${1} down
    9092                        evaluate_retval
    9193                fi
  • lfs/sysconfig/network-devices/ifup

    diff -Naur bootscripts.orig/lfs/sysconfig/network-devices/ifup bootscripts/lfs/sysconfig/network-devices/ifup
    old new  
    3131fi
    3232
    3333boot_mesg "Bringing up the ${1} interface..."
     34putlcd "Bringing up" "${1} interface"
    3435boot_mesg_flush
    3536
    3637# Process each configruation file
     
    7172                                        fi
    7273                                else
    7374                                        boot_mesg "Interface ${1} doesn't exist." ${WARNING}
     75                                        putlcd "Interface ${1}" "doesn't exist."
    7476                                        echo_warning
    7577                                        continue
    7678                                fi
  • lfs/sysconfig/network-devices/services/ipv4-static

    diff -Naur bootscripts.orig/lfs/sysconfig/network-devices/services/ipv4-static bootscripts/lfs/sysconfig/network-devices/services/ipv4-static
    old new  
    5050case "${2}" in
    5151        up)
    5252                boot_mesg "Adding IPv4 address ${IP} to the ${1} interface..."
     53                putlcd "Setting" "${1} IP - ${IP}"
    5354                ip addr add ${args} dev ${1}
    5455                evaluate_retval
    5556       
     
    5960                                echo_warning
    6061                        else
    6162                                boot_mesg "Setting up default gateway..."
     63                                putlcd "Setting up" "default gateway"
    6264                                ip route add default via ${GATEWAY} dev ${1}
    6365                                evaluate_retval
    6466                         fi
     
    6870        down)
    6971                if [ -n "${GATEWAY}" ]; then
    7072                        boot_mesg "Removing default gateway..."
     73                        putlcd "Removing" "default gateway"
    7174                        ip route del default
    7275                        evaluate_retval
    7376                fi
    7477       
    7578                boot_mesg "Removing IPv4 address ${IP} from the ${1} interface..."
     79                putlcd "Unsetting" "${1} IP - ${IP}"
    7680                ip addr del ${args} dev ${1}
    7781                evaluate_retval
    7882        ;;
  • lfs/sysconfig/network-devices/services/ipv4-static-route

    diff -Naur bootscripts.orig/lfs/sysconfig/network-devices/services/ipv4-static-route bootscripts/lfs/sysconfig/network-devices/services/ipv4-static-route
    old new  
    7474case "${2}" in
    7575        up)
    7676                boot_mesg "Adding '${desc}' route to the ${1} interface..."
     77                putlcd "Adding route" "${desc}"
    7778                ip route add ${args} dev ${1}
    7879                evaluate_retval
    7980        ;;
    8081       
    8182        down)
    8283                boot_mesg "Removing '${desc}' route from the ${1} interface..."
     84                putlcd "Removing route" "${desc}"
    8385                ip route del ${args} dev ${1}
    8486                evaluate_retval
    8587        ;;
Note: See TracBrowser for help on using the repository browser.