VirtualBox

Changeset 17950 in vbox


Ignore:
Timestamp:
Mar 16, 2009 4:13:09 PM (16 years ago)
Author:
vboxsync
Message:

Additions/Linux/installer: fix /dev/vboxuser device creation without udev

File:
1 edited

Legend:

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

    r17948 r17950  
    206206    fi
    207207    if [ ! -c $userdev ]; then
    208         maj=0
     208        maj=10
    209209        min=`sed -n 's;\([0-9]\+\) vboxuser;\1;p' /proc/misc`
    210210        if [ ! -z "$min" ]; then
    211             maj=10
    212         fi
    213         test ! -z "$maj" && mknod -m 0666 $userdev c $maj $min || {
    214             rm -f $dev 2>/dev/null
    215             rmmod vboxadd 2>/dev/null
    216             fail "Cannot create device $userdev with major $maj and minor $min"
    217         }
     211            mknod -m 0666 $userdev c $maj $min || {
     212                rm -f $dev 2>/dev/null
     213                rmmod vboxadd 2>/dev/null
     214                fail "Cannot create device $userdev with major $maj and minor $min"
     215            }
     216        fi
    218217    fi
    219218    chown $owner:$group $dev 2>/dev/null || {
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