VirtualBox

Ignore:
Timestamp:
Jul 3, 2015 12:34:24 PM (9 years ago)
Author:
vboxsync
Message:

Installer/linux: rework routines.sh for cleaner init script handling.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/linux/run-inst.sh

    r56299 r56777  
    151151    for i in $UNINSTALL_SCRIPTS; do
    152152        stop_init_script "$i"
    153         cleanup_init "$i" 1>&2 2>> "$LOGFILE"
     153        cleanup_init_script "$i" 1>&2 2>> "$LOGFILE"
    154154        test -x "./$i" && "./$i" cleanup 1>&2 2>> "$LOGFILE"
     155        delrunlevel "$i"
    155156        remove_init_script "$i"
    156157    done
     
    419420  if test -r "$i"; then
    420421    install_init_script "$i" "`basename "$i"`"
     422    addrunlevel "`basename "$i"`"
    421423    test -n "$DO_SETUP" && setup_init_script "`basename "$i"`" 1>&2
    422424    start_init_script "`basename "$i"`"
     
    459461    if test -r "\$i"; then
    460462        stop_init_script "\`basename "\$i"\`"
    461         test -z "\$NO_CLEANUP" && cleanup_init "\`basename "\$i"\`" 2>> "\$LOGFILE"
     463        test -z "\$NO_CLEANUP" && cleanup_init_script "\`basename "\$i"\`" 2>> "\$LOGFILE"
     464        delrunlevel "\`basename "\$i"\`"
    462465        remove_init_script "\`basename "\$i"\`"
    463466    fi
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette