- Timestamp:
- Jan 29, 2007 7:38:26 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/installer/vboxadd.sh
r352 r423 169 169 } 170 170 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 173 180 test -z "$maj" && { 174 181 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 || { 179 186 rmmod $modname 180 fail "Cannot create device $dev with major $maj "187 fail "Cannot create device $dev with major $maj and minor $min" 181 188 } 182 189 fi
Note:
See TracChangeset
for help on using the changeset viewer.