234 |
# no driver is selected - don't load if explicit_only is 1 |
# no driver is selected - don't load if explicit_only is 1 |
235 |
[ "$explicit_only" = "1" ] && return 1 |
[ "$explicit_only" = "1" ] && return 1 |
236 |
|
|
237 |
# implicit load allowed; still don't load if no xorg.conf (i.e. live cd) |
# implicit load allowed; only load if there is evidence that this is |
238 |
[ -e "/etc/X11/xorg.conf" ] |
# not a live cd or similar with automatic configuration occurring later |
239 |
|
# in the boot process (which might configure a driver conflicting with |
240 |
|
# the implicit driver, e.g. a proprietary one) |
241 |
|
# TODO: Could this be replaced with a more robust check? |
242 |
|
[ -e "/etc/X11/xorg.conf" ] || [ -e "/etc/sysconfig/harddrake2/kernels" ] || |
243 |
|
[ -e "/etc/sysconfig/harddrake2/xorg" ] || [ -e "/boot/grub/menu.lst" ] |
244 |
} |
} |
245 |
|
|
246 |
# Load the driver for the specified modalias, if configured. |
# Load the driver for the specified modalias, if configured. |