1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
--- lessdisks-0.5.3cvs.20040906.orig/xbase/X-lessdisks
+++ lessdisks-0.5.3cvs.20040906/xbase/X-lessdisks
@@ -40,6 +40,15 @@
fi
if [ -n "$xf86config" ]; then
+ # load kernel modules when needed
+ x_drivers=$(grep Driver $xf86config | awk '{print $2}' | tr "\"" " ")
+ for drv in $x_drivers; do
+ case $drv in
+ # FIXME: other modules/drivers to load?
+ i810) modprobe agpgart ;;
+ esac
+ done
+
# add value to configuration file
# FIXME replace x_config_file if already present, rather than simply appending
echo "x_config_file=$(basename $xf86config)" >> $rw/etc/config
@@ -51,13 +60,4 @@
echo "xserver=$xserver" >> $rw/etc/config
fi
-# load kernel modules when needed
-x_drivers=$(grep Driver $xf86config | awk '{print $2}' | tr "\"" " ")
-for drv in $x_drivers; do
- case $drv in
- # FIXME: other modules/drivers to load?
- i810) modprobe agpgart ;;
- esac
-done
-
exec $xserver $xf86config $@
|