VirtualBox

Changeset 25139 in vbox for trunk/src/VBox/Additions/linux


Ignore:
Timestamp:
Dec 1, 2009 8:46:34 PM (15 years ago)
Author:
vboxsync
Message:

Additions/linux/installer: another 64bit fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/installer/vboxadd.sh

    r25038 r25139  
    3939BUILDVBOXVIDEO=`/bin/ls /usr/src/vboxvideo*/build_in_tmp 2>/dev/null|cut -d' ' -f1`
    4040LOG="/var/log/vboxadd-install.log"
     41
     42# Check architecture
     43cpu=`uname -m`;
     44case "$cpu" in
     45  i[3456789]86|x86)
     46    cpu="x86"
     47    lib_path="/usr/lib"
     48    ;;
     49  x86_64|amd64)
     50    cpu="amd64"
     51    if test -d "/usr/lib64"; then
     52      lib_path="/usr/lib64"
     53    else
     54      lib_path="/usr/lib"
     55    fi
     56    ;;
     57esac
    4158
    4259if [ -f /etc/arch-release ]; then
     
    378395
    379396    # Put mount.vboxsf in the right place
    380     ln -sf /usr/lib/$PACKAGE/mount.vboxsf /sbin
     397    ln -sf "$lib_path/$PACKAGE/mount.vboxsf" /sbin
    381398
    382399    succ_msg
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