/[pkg-src]/trunk/initscripts-alx/patches/initscripts-0.3.4-r10-alx-hwsetup-only-supported-netcards.patch |
Annotation of /trunk/initscripts-alx/patches/initscripts-0.3.4-r10-alx-hwsetup-only-supported-netcards.patch
Parent Directory | Revision Log
Revision 1180 -
(hide annotations)
(download)
Fri Oct 15 11:07:34 2010 UTC (13 years, 11 months ago) by niro
File size: 828 byte(s)
Fri Oct 15 11:07:34 2010 UTC (13 years, 11 months ago) by niro
File size: 828 byte(s)
-new patches
1 | niro | 1180 | --- magellan-initscripts/etc/rc.d/init.d/hwdetect 2005-08-31 23:46:24.000000000 +0200 |
2 | +++ magellan-initscripts-alx/etc/rc.d/init.d/hwdetect 2010-10-15 13:02:05.000000000 +0200 | ||
3 | @@ -12,6 +12,20 @@ | ||
4 | #%before: | ||
5 | #%after: | ||
6 | |||
7 | +UNSUPPORTED_NETCARD_DRIVERS="ath9k ath5k" | ||
8 | + | ||
9 | +remove_unsupported_netcard_drivers() | ||
10 | +{ | ||
11 | + local config="/etc/sysconfig/hwsetup/knoppix" | ||
12 | + local driver | ||
13 | + | ||
14 | + # filter unsupported devices | ||
15 | + for driver in ${UNSUPPORTED_NETCARD_DRIVERS} | ||
16 | + do | ||
17 | + sed -i "/${driver}/d" ${config} | ||
18 | + done | ||
19 | +} | ||
20 | + | ||
21 | write_x11_config() { | ||
22 | local xserver | ||
23 | local xfconfig | ||
24 | @@ -393,6 +407,9 @@ | ||
25 | echo "lp" >> /etc/modules.autoload.d/kernel-$(kernel_major_version) | ||
26 | fi | ||
27 | |||
28 | + # fix unsupported netcard drivers from knoppix config | ||
29 | + remove_unsupported_netcard_drivers | ||
30 | + | ||
31 | # get what hwsetup has found | ||
32 | if [ -f /etc/sysconfig/hwsetup/knoppix ] | ||
33 | then |