| 33 |
done |
done |
| 34 |
|
|
| 35 |
# let discover do most of the job |
# let discover do most of the job |
| 36 |
/etc/init.d/discover start |
[ -x /etc/init.d/discover ] && /etc/init.d/discover start |
| 37 |
|
|
| 38 |
# now we can mount the usb file system |
# now we can mount the usb file system |
| 39 |
mount -t usbfs usbfs /proc/bus/usb |
mount -t usbfs usbfs /proc/bus/usb |
| 44 |
|
|
| 45 |
# try to detect graphics card |
# try to detect graphics card |
| 46 |
# the variable videodrv may be used to generate the XF86config file |
# the variable videodrv may be used to generate the XF86config file |
| 47 |
if discover --version | grep "discover \(version \)*1\." ; then |
[ -x "$(which discover)" ] && { |
| 48 |
videodrv=$(discover --xdriver video 2> /dev/null) |
if discover --version | grep "discover \(version \)*1\." ; then |
| 49 |
else |
videodrv=$(discover --xdriver video 2> /dev/null) |
| 50 |
videodrv=$(discover --data-path=xfree86/server/device/driver display) |
else |
| 51 |
fi |
videodrv=$(discover --data-path=xfree86/server/device/driver display) |
| 52 |
[ -n "$videodrv" ] && echo "videodrv=$videodrv" >> $LOGDIR/additional.var |
fi |
| 53 |
echo "Video card detected: $videodrv" |
[ -n "$videodrv" ] && echo "videodrv=$videodrv" >> $LOGDIR/additional.var |
| 54 |
|
echo "Video card detected: $videodrv" |
| 55 |
|
} |
| 56 |
|
|
| 57 |
set_disk_info # calculate number of available disks |
set_disk_info # calculate number of available disks |
| 58 |
save_dmesg # save new boot messages (from loading modules) |
save_dmesg # save new boot messages (from loading modules) |