Changeset bd1b5be


Ignore:
Timestamp:
05/14/2011 06:46:00 PM (13 years ago)
Author:
DJ Lucas <dj@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
dad97de
Parents:
34a7193
Message:

Added FAILURE_ACTION variable to rc.site

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9526 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

Location:
bootscripts/contrib/lsb-v3
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • bootscripts/contrib/lsb-v3/ChangeLog

    r34a7193 rbd1b5be  
    11ChangeLog
     2
     320110514 - [dj]
     4        * Added FAILURE_ACTION variable to rc.site for use in remote systems
     5          where user input is not appropriate in the event of a failure
    26
    3720110424 - [dj]
  • bootscripts/contrib/lsb-v3/init.d/checkfs

    r34a7193 rbd1b5be  
    3636            echo -e "${FAILURE}halted and powered off.\n"
    3737            echo -e "${INFO}Press enter to continue...${NORMAL}"
    38             read ENTER
     38            $FAILURE_ACTION
    3939            /etc/rc.d/init.d/halt stop
    4040        fi
     
    7272            echo -e "After you press enter, this system will be rebooted.\n"
    7373            echo -e "${INFO}Press Enter to continue...${NORMAL}"
    74             read ENTER
     74            $FAILURE_ACTION
    7575            reboot -f
    7676        elif [ "${error_value}" -gt 3 -a "${error_value}" -lt 16 ]; then
     
    8585            echo -e "${FAILURE}halted and powered off.\n"
    8686            echo -e "${INFO}Press Enter to continue...${NORMAL}"
    87             read ENTER
     87            $FAILURE_ACTION
    8888            /etc/rc.d/init.d/halt stop
    8989        elif [ "${error_value}" -ge 16 ]; then
  • bootscripts/contrib/lsb-v3/init.d/udev

    r34a7193 rbd1b5be  
    3030                        boot_mesg -n "\n\nPress Enter to continue..." ${INFO}
    3131                        boot_mesg "" ${NORMAL}
    32                         read ENTER
     32                        $FAILURE_ACTION
    3333                        /etc/rc.d/init.d/halt stop
    3434                fi
     
    4949                        boot_mesg -n "\n\nPress Enter to continue..." ${INFO}
    5050                        boot_mesg "" ${NORMAL}
    51                         read ENTER
     51                        $FAILURE_ACTION
    5252                        /etc/rc.d/init.d/halt stop
    5353                fi
  • bootscripts/contrib/lsb-v3/sysconfig/rc.site

    r34a7193 rbd1b5be  
    1313# Bootlogging (requires a tempfs mount)
    1414BOOTLOG_ENAB="yes"
     15
     16# Manual input is not appropriate on remote systems. Define what happens when
     17# an error is encountered that interupts the boot/shutdown proceess
     18FAILURE_ACTION="read ENTER"
    1519
    1620# Distro Information
     
    3438# Export varialbles so that they are inherited by the initscripts
    3539export RC_BASE RC_FUNCTIONS NETWORK_DEVICES TEMPFS_MOUNT BOOTLOG_ENAB
     40export FAILURE_ACTION
    3641export DISTRO DISTRO_CONTACT DISTRO_MINI
    3742export BRACKET FAILURE INFO NORMAL SUCCESS WARNING
     
    6570    echo -e "${INFO}Press Enter to continue..."
    6671    echo -e "${NORMAL}"
    67     read ENTER
     72    $FAILURE_ACTION
    6873}
    6974
Note: See TracChangeset for help on using the changeset viewer.