VirtualBox

Changeset 423 in vbox for trunk/src


Ignore:
Timestamp:
Jan 29, 2007 7:38:26 PM (18 years ago)
Author:
vboxsync
Message:

Made sure that the Linux kernel modules get the right major and minor numbers on systems without udev

File:
1 edited

Legend:

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

    r352 r423  
    169169    }
    170170    if [ ! -c $dev ]; then
    171         maj=`sed -n 's;\([0-9]\+\) vboxadd;\1;p' /proc/devices`
    172         test -z "$maj" && maj=`sed -n 's;\([0-9]\+\) vboxadd;\1;p' /proc/misc`
     171        maj=`sed -n 's;\([0-9]\+\) vboxdrv;\1;p' /proc/devices`
     172        if [ ! -z "$maj" ]; then
     173            min=0
     174        else
     175            min=`sed -n 's;\([0-9]\+\) vboxdrv;\1;p' /proc/misc`
     176            if [ ! -z "$min" ]; then
     177                maj=10
     178            fi
     179        fi
    173180        test -z "$maj" && {
    174181            rmmod $modname
    175             fail "Cannot locate device major"
    176         }
    177 
    178         mknod -m 0664 $dev c $maj 0 || {
     182            fail "Cannot locate the VirtualBox device"
     183        }
     184
     185        mknod -m 0664 $dev c $maj $min || {
    179186            rmmod $modname
    180             fail "Cannot create device $dev with major $maj"
     187            fail "Cannot create device $dev with major $maj and minor $min"
    181188        }
    182189    fi
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