| 32 |
modprobe -a $mod 1>/dev/null 2>&1 |
modprobe -a $mod 1>/dev/null 2>&1 |
| 33 |
done |
done |
| 34 |
|
|
| 35 |
#### SMITH |
|
| 36 |
case $DISTRIBUTION in |
if [ -e /etc/init.d/discover ]; then |
| 37 |
debian) |
# let discover do most of the job |
| 38 |
# let discover do most of the job |
/etc/init.d/discover start |
| 39 |
/etc/init.d/discover start ;; |
fi |
| 40 |
"") |
|
| 41 |
# let discover do most of the job |
if [ `which kudzu` ];then |
| 42 |
/etc/init.d/discover start ;; |
kudzu -q |
| 43 |
centos3) |
fi |
|
kudzu -q ;; |
|
|
*) |
|
|
# what can I do ? |
|
|
esac |
|
| 44 |
|
|
| 45 |
# now we can mount the usb file system |
# now we can mount the usb file system |
| 46 |
mount -t usbfs usbfs /proc/bus/usb |
mount -t usbfs usbfs /proc/bus/usb |
| 51 |
|
|
| 52 |
# try to detect graphics card |
# try to detect graphics card |
| 53 |
# the variable videodrv may be used to generate the XF86config file |
# the variable videodrv may be used to generate the XF86config file |
| 54 |
#### SMITH |
|
| 55 |
case $DISTRIBUTION in |
if [ `which discover` ]; then |
|
debian) |
|
| 56 |
if discover --version | grep "discover \(version \)*1\." ; then |
if discover --version | grep "discover \(version \)*1\." ; then |
| 57 |
videodrv=$(discover --xdriver video 2> /dev/null) |
videodrv=$(discover --xdriver video 2> /dev/null) |
| 58 |
else |
else |
| 59 |
videodrv=$(discover --data-path=xfree86/server/device/driver display) |
videodrv=$(discover --data-path=xfree86/server/device/driver display) |
| 60 |
fi |
fi |
| 61 |
|
|
| 62 |
[ -n "$videodrv" ] && echo "videodrv=$videodrv" >> $LOGDIR/additional.var |
[ -n "$videodrv" ] && echo "videodrv=$videodrv" >> $LOGDIR/additional.var |
| 63 |
echo "Video card detected: $videodrv" ;; |
echo "Video card detected: $videodrv" ;; |
| 64 |
esac |
fi |
| 65 |
|
|
| 66 |
set_disk_info # calculate number of available disks |
set_disk_info # calculate number of available disks |
| 67 |
save_dmesg # save new boot messages (from loading modules) |
save_dmesg # save new boot messages (from loading modules) |