Contents of /alx-src/trunk/tinyalxconfig-ng/functions/config_driverkits.sh
Parent Directory | Revision Log
Revision 514 -
(show annotations)
(download)
(as text)
Thu Jun 19 12:36:13 2008 UTC (15 years, 10 months ago) by niro
File MIME type: application/x-sh
File size: 1334 byte(s)
Thu Jun 19 12:36:13 2008 UTC (15 years, 10 months ago) by niro
File MIME type: application/x-sh
File size: 1334 byte(s)
-install missing mouse and keyboard drivers too
1 | # $Header: /home/cvsd/alx-cvs/alx-src/tinyalxconfig-ng/functions/config_driverkits.sh,v 1.2 2008-06-19 12:36:13 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 | |
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 | } |