[Pkg-sysvinit-devel] Bug#339955: TODO

Thomas Hood jdthood at yahoo.co.uk
Fri Nov 25 00:00:08 UTC 2005


Before /etc/init.d/rc can source .sh scripts, all we have to do is get
various maintainers to eliminate all these exit commands.

/etc/rcS.d$ grep exit *.sh
S01glibc.sh:exit_check () {
S01glibc.sh:    exit 1
S01glibc.sh:        exit_check
S01glibc.sh:        exit_check
S01glibc.sh:            exit_check
S01glibc.sh:            exit_check
S01glibc.sh:            exit_check
S01glibc.sh:            exit_check
S01glibc.sh:            exit_check
S01glibc.sh:            exit_check
S01glibc.sh:        exit_check
S01glibc.sh:exit 0
S05initrd-tools.sh:[ "$KEEPINITRD" = yes ] && exit
S05initrd-tools.sh:command -v blockdev > /dev/null 2>&1 || exit 0
S05initrd-tools.sh:     mount -n /proc || exit
S05initrd-tools.sh:grep -q '^[^ ]* /initrd ' /proc/mounts || exit 0
S05initrd-tools.sh:     umount /initrd/dev || exit
S05initrd-tools.sh:umount /initrd || exit
S05initrd-tools.sh:     exit 1
S05keymap.sh:command -v loadkeys >/dev/null 2>&1 || exit 0
S05keymap.sh:           [ $CONSOLE_TYPE = "serial" ] && exit 0
S05keymap.sh:   exit 1
S10checkroot.sh:        # NOTE: "failure" is defined as exiting with a return code of
S10checkroot.sh:        exit 3
S10checkroot.sh:        exit 3
S10checkroot.sh:: exit 0
S22hwclockfirst.sh:[ ! -x /sbin/hwclock ] && exit 0
S22hwclockfirst.sh:                     exit 1
S22hwclockfirst.sh:       *)    log_failure_msg "Unknown UTC setting: \"$UTC\""; exit 1 ;;
S22hwclockfirst.sh:       *)    log_failure_msg "unknown BADYEAR setting: \"$BADYEAR\""; exit 1 ;;
S22hwclockfirst.sh:             exit 1
S30checkfs.sh:  exit 3
S30checkfs.sh:  exit 3
S30checkfs.sh:: exit 0
S30procps.sh:# Check for existance of the default file and exit if not there,
S30procps.sh:[ -r /etc/default/rcS ] || exit 0
S30procps.sh:which sysctl > /dev/null || exit 0
S30procps.sh:                       exit 0
S30procps.sh:               exit 1
S35mountall.sh: exit 3
S35mountall.sh: exit 3
S35mountall.sh:: exit 0
S40hostname.sh: exit 3
S40hostname.sh: exit 3
S45mountnfs.sh: exit 3
S45mountnfs.sh: exit 3
S45mountnfs.sh:: exit 0
S48console-screen.sh:[ -x "${SETFONT}" ] || exit 0
S48console-screen.sh:    CONSOLE_TYPE=`fgconsole 2>/dev/null` || exit 0
S48console-screen.sh:    [ $VT = "no" ] && exit 0
S50hwclock.sh:[ ! -x /sbin/hwclock ] && exit 0
S50hwclock.sh:                  exit 1
S50hwclock.sh:       *) log_failure_msg "Unknown UTC setting: \"$UTC\""; exit 1 ;;
S50hwclock.sh:       *) log_failure_msg "unknown BADYEAR setting: \"$BADYEAR\""; exit 1 ;;
S50hwclock.sh:          exit 1
S55bootmisc.sh: exit 3
S55bootmisc.sh: exit 3
S55bootmisc.sh:: exit 0




More information about the Pkg-sysvinit-devel mailing list