Changeset 66387 in vbox for trunk/src/VBox/Additions/linux
- Timestamp:
- Mar 31, 2017 6:33:26 PM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 114336
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/installer/install.sh.in
r64788 r66387 17 17 # 18 18 19 # This is a stub installation script to be included in VirtualBox Makeself20 # installers which removes any previous installations of the package, unpacks21 # the package into the filesystem (by default under /opt) and starts the real22 # installation script.23 #24 19 PATH=$PATH:/bin:/sbin:/usr/sbin 25 20 … … 28 23 PACKAGE_NAME="VirtualBox Guest Additions" 29 24 UNINSTALL="uninstall.sh" 25 PUBLIC_UNINSTALL_HOOK="/usr/sbin/vbox-uninstall-guest-additions" 30 26 ROUTINES="routines.sh" 31 27 INSTALLATION_VER="_VERSION_" … … 300 296 301 297 # uninstall any previous installation 298 # If the currently installed Additions have provided an uninstallation hook, try 299 # that first. 300 if test -x "${PUBLIC_UNINSTALL_HOOK}"; then 301 "${PUBLIC_UNINSTALL_HOOK}" 1>&2 || 302 abort "Failed to remove existing installation. Aborting..." 303 fi 304 302 305 INSTALL_DIR="" 303 306 uninstalled=0 … … 529 532 echo "$INSTALLATION_DIR/" >> "$CONFIG_DIR/$CONFIG_FILES" 530 533 534 cat > "${PUBLIC_UNINSTALL_HOOK}" << EOF 535 #!/bin/sh 536 # This executable provides a well-known way to uninstall VirtualBox Guest 537 # Additions in order to re-install them from a different source. A common case 538 # is uninstalling distribution-provide Additions to install the version provided 539 # by VirtualBox. Distributions should put the right command in here to do the 540 # removal, e.g. "dnf remove VirtualBox-guest-additions". Leaving kernel modules 541 # provided by the distribution kernel package in place is acceptable if the 542 # location does not clash with the VirtualBox-provided module location (misc). 543 $INSTALLATION_DIR/$UNINSTALL 544 EOF 545 chmod 0755 "${PUBLIC_UNINSTALL_HOOK}" 546 echo "$PUBLIC_UNINSTALL_HOOK" >> "$CONFIG_DIR/$CONFIG_FILES" 547 531 548 # Test for a problem with old Mesa versions which stopped our 3D libraries 532 549 # from working. Known to affect Debian 7.11, probably OL/RHEL 5.
Note:
See TracChangeset
for help on using the changeset viewer.