VirtualBox

Changeset 44185 in vbox for trunk/src


Ignore:
Timestamp:
Dec 19, 2012 8:06:38 PM (12 years ago)
Author:
vboxsync
Message:

solaris driver installer hacking. needs testing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/solaris/vboxconfig.sh

    r43962 r44185  
    581581    if test -f "$DIR_CONF/vboxdrv.conf"; then
    582582        if test -n "_HARDENED_"; then
    583             add_driver "$MOD_VBOXDRV" "$DESC_VBOXDRV" "$FATALOP" "not-$NULLOP" "'* 0600 root sys'"
    584         else
    585             add_driver "$MOD_VBOXDRV" "$DESC_VBOXDRV" "$FATALOP" "not-$NULLOP" "'* 0666 root sys'"
     583            add_driver "$MOD_VBOXDRV" "$DESC_VBOXDRV" "$FATALOP" "not-$NULLOP" "'* 0600 root sys','vboxdrvu 0666 root sys'"
     584        else
     585            add_driver "$MOD_VBOXDRV" "$DESC_VBOXDRV" "$FATALOP" "not-$NULLOP" "'* 0666 root sys','vboxdrvu 0666 root sys'"
    586586        fi
    587587        load_module "drv/$MOD_VBOXDRV" "$DESC_VBOXDRV" "$FATALOP"
     
    593593    # Add vboxdrv to devlink.tab
    594594    if test -f "$PKG_INSTALL_ROOT/etc/devlink.tab"; then
    595         sed -e '/name=vboxdrv/d' "$PKG_INSTALL_ROOT/etc/devlink.tab" > "$PKG_INSTALL_ROOT/etc/devlink.vbox"
     595        sed -e '/name=vboxdrv/d' -e '/name=vboxdrvu/d' "$PKG_INSTALL_ROOT/etc/devlink.tab" > "$PKG_INSTALL_ROOT/etc/devlink.vbox"
    596596        echo "type=ddi_pseudo;name=vboxdrv      \D" >> "$PKG_INSTALL_ROOT/etc/devlink.vbox"
     597        echo "type=ddi_pseudo;name=vboxdrvu     \D" >> "$PKG_INSTALL_ROOT/etc/devlink.vbox"
    597598        mv -f "$PKG_INSTALL_ROOT/etc/devlink.vbox" "$PKG_INSTALL_ROOT/etc/devlink.tab"
    598599    else
     
    604605    if test "$REMOTEINST" -eq 0; then
    605606        /usr/sbin/devfsadm -i "$MOD_VBOXDRV"
    606         if test $? -ne 0 || test ! -h "/dev/vboxdrv"; then
     607        if test $? -ne 0 || test ! -h "/dev/vboxdrv" || test ! -h "/dev/vboxdrvu" ; then
    607608            errorprint "Failed to create device link for $MOD_VBOXDRV."
    608609            exit 1
     
    726727    if test -h "$PKG_INSTALL_ROOT/dev/vboxdrv" || test -f "$PKG_INSTALL_ROOT/dev/vboxdrv"; then
    727728        rm -f "$PKG_INSTALL_ROOT/dev/vboxdrv"
     729    fi
     730    if test -h "$PKG_INSTALL_ROOT/dev/vboxdrvu" || test -f "$PKG_INSTALL_ROOT/dev/vboxdrvu"; then
     731        rm -f "$PKG_INSTALL_ROOT/dev/vboxdrvu"
    728732    fi
    729733    if test -h "$PKG_INSTALL_ROOT/dev/vboxusbmon" || test -f "$PKG_INSTALL_ROOT/dev/vboxusbmon"; then
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