Changeset 62831 in vbox for trunk/src/VBox/Additions/linux/installer
- Timestamp:
- Aug 1, 2016 4:31:17 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 109427
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/installer/install.sh.in
r62830 r62831 25 25 26 26 # Note: These variable names must *not* clash with variables in $CONFIG_DIR/$CONFIG! 27 PACKAGE=" _PACKAGE_"28 PACKAGE_NAME=" _PACKAGE_NAME_"27 PACKAGE="VBoxGuestAdditions" 28 PACKAGE_NAME="VirtualBox Guest Additions" 29 29 UNINSTALL="uninstall.sh" 30 30 ROUTINES="routines.sh" … … 34 34 BUILD_TYPE="_BUILDTYPE_" 35 35 USERNAME="_USERNAME_" 36 UNINSTALL_SCRIPTS=" _UNINSTALL_SCRIPTS_"36 UNINSTALL_SCRIPTS="vboxadd-x11 vboxvfs vboxadd-timesync vboxadd-service vboxadd" 37 37 38 38 INSTALLATION_DIR="/opt/$PACKAGE-$INSTALLATION_VER" … … 126 126 if ! test "$1" = "force" ; then 127 127 cat 1>&2 << EOF 128 You appear to have a version of the _PACKAGE_ software128 You appear to have a version of the VirtualBox Guest Additions 129 129 on your system which was installed from a different source or using a 130 130 different type of installer. If you installed it from a package from your … … 153 153 remove_init_script "$i" 2>> "${LOGFILE}" 154 154 done 155 for i in "/opt/$PACKAGE-"*/init/*; do 156 test -z "$NO_CLEANUP" && grep -q '^# *cleanup_script *$' "${i}" && "${i}" cleanup 1>&2 2>> "$LOGFILE" 155 for i in "/opt/$PACKAGE-"*/init; do 156 for j in $UNINSTALL_SCRIPTS; do 157 script="${i}/${j}" 158 test -x "${script}" && test -z "$NO_CLEANUP" && 159 grep -q '^# *cleanup_script *$' "${script}" && 160 "${script}" cleanup 1>&2 2>> "$LOGFILE" 161 done 157 162 done 158 163 … … 416 421 417 422 # Install, set up and start init scripts 418 for i in "$INSTALLATION_DIR/init/"*; do 423 for i in "$INSTALLATION_DIR/init/vboxadd" "$INSTALLATION_DIR/init/vboxadd-service" \ 424 "$INSTALLATION_DIR/init/vboxadd-x11"; do 419 425 if test -r "$i"; then 420 426 install_init_script "$i" "`basename "$i"`" 2>> "${LOGFILE}" … … 463 469 464 470 # Stop and clean up all services 465 for i in "$INSTALLATION_DIR/init/"*; do 471 for i in "$INSTALLATION_DIR/init/vboxadd-x11" "$INSTALLATION_DIR/init/vboxadd-service" \ 472 "$INSTALLATION_DIR/init/vboxadd"; do 466 473 if test -r "\$i"; then 467 474 stop_init_script "\`basename "\$i"\`" 2>> "${LOGFILE}"
Note:
See TracChangeset
for help on using the changeset viewer.