Annotation of /alx-src/trunk/tinyalxconfig-ng/functions/config_driverkits.sh
Parent Directory | Revision Log
Revision 537 -
(hide annotations)
(download)
(as text)
Mon Jan 26 17:16:32 2009 UTC (15 years, 3 months ago) by niro
File MIME type: application/x-sh
File size: 1218 byte(s)
Mon Jan 26 17:16:32 2009 UTC (15 years, 3 months ago) by niro
File MIME type: application/x-sh
File size: 1218 byte(s)
-fixed header
1 | niro | 537 | # $Id$ |
2 | niro | 489 | # 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 | niro | 514 | |
28 | if [[ -z $(magequery -n xf86-input-keyboard-alx) ]] | ||
29 | then | ||
30 | echo -e ${COLMAGENTA}"Installing driver kit for 'keyboard' ..."${COLDEFAULT} | ||
31 | mage install xf86-input-keyboard-alx &> /dev/null | ||
32 | mage clean &> /dev/null | ||
33 | fi | ||
34 | |||
35 | if [[ -z $(magequery -n xf86-input-mouse-alx) ]] | ||
36 | then | ||
37 | echo -e ${COLMAGENTA}"Installing driver kit for 'mouse' ..."${COLDEFAULT} | ||
38 | mage install xf86-input-mouse-alx &> /dev/null | ||
39 | mage clean &> /dev/null | ||
40 | fi | ||
41 | niro | 489 | } |