Magellan Linux

Contents of /alx-src/trunk/tinyalxconfig-ng/functions/config_driverkits.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 489 - (show annotations) (download) (as text)
Sun Jun 8 10:05:01 2008 UTC (15 years, 10 months ago) by niro
File MIME type: application/x-sh
File size: 901 byte(s)
-added config_driverkits()

1 # $Header: /home/cvsd/alx-cvs/alx-src/tinyalxconfig-ng/functions/config_driverkits.sh,v 1.1 2008-06-08 10:02:24 niro Exp $
2 # installs neccessary driverkits at boot-time
3
4 config_driverkits()
5 {
6 evaluate_table_xml cfg_graphic
7
8 # get real driver name ?? needed anymore?
9 case ${cfg_graphic_module} in
10 i810|i710) cfg_graphic_module=intel ;;
11 via) cfg_graphic_module=openchrome ;;
12 ati|radeon) cfg_graphic_module=ati ;;
13 esac
14
15 if [[ -z $(magequery -n xf86-video-${cfg_graphic_module}-alx) ]]
16 then
17 echo -e ${COLMAGENTA}"Uninstalling old driver kits ..."${COLDEFAULT}
18 list=$(magequery -i | grep xf86-video)
19 for driver in ${list}
20 do
21 mage uninstall $(basename ${driver%-*-*}) &> /dev/null
22 done
23 echo -e ${COLMAGENTA}"Installing driver kit for '${cfg_graphic_module}' ..."${COLDEFAULT}
24 mage install xf86-video-${cfg_graphic_module}-alx &> /dev/null
25 mage clean &> /dev/null
26 fi
27 }