Magellan Linux

Contents of /trunk/hwsetup/patches/hwsetup-1.0-14-magellan_sysconfig_path.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 144 - (show annotations) (download)
Tue May 8 20:06:05 2007 UTC (17 years, 6 months ago) by niro
File size: 2226 byte(s)
-import

1 --- hwsetup-1.0/hwsetup.c 2003-06-02 19:01:28.000000000 +0000
2 +++ hwsetup.c 2004-03-23 20:05:22.000000000 +0000
3 @@ -421,7 +421,7 @@
4 int writeconfig(char *name,struct device *d,int verbose)
5 {
6 FILE *f,*k;
7 - const char *kconfig="/etc/sysconfig/knoppix";
8 + const char *kconfig="/etc/sysconfig/hwsetup/knoppix";
9 unlink(name);
10 if((f=fopen(name,"w"))==NULL)
11 { /* Read-only filesystem on /etc ?! */
12 @@ -521,7 +521,7 @@
13 { mouse=0; usbmouse=d; /* this to work */
14 load_mod(d->driver,verbose); }
15 if(!mouse)
16 - writeconfig("/etc/sysconfig/mouse",d,verbose);
17 + writeconfig("/etc/sysconfig/hwsetup/mouse",d,verbose);
18 link_dev(d,"mouse",mouse++,verbose);
19 break;
20 case CLASS_CDROM: if(d->bus==BUS_USB) load_mod(d->driver,verbose);
21 @@ -530,14 +530,14 @@
22 link_dev(d,"modem", modem++,verbose); break;
23 case CLASS_SCANNER: if(d->bus==BUS_USB) load_mod(d->driver,verbose);
24 link_dev(d,"scanner",scanner++,verbose); break;
25 - case CLASS_VIDEO: writeconfig("/etc/sysconfig/xserver",d,verbose);
26 + case CLASS_VIDEO: writeconfig("/etc/sysconfig/hwsetup/xserver",d,verbose);
27 break;
28 case CLASS_AUDIO: if(skip&SKIP_AUDIO) break;
29 - writeconfig("/etc/sysconfig/sound",d,verbose);
30 + writeconfig("/etc/sysconfig/hwsetup/sound",d,verbose);
31 load_mod(d->driver,verbose); break;
32 - case CLASS_NETWORK: writeconfig("/etc/sysconfig/netcard",d,verbose);
33 + case CLASS_NETWORK: writeconfig("/etc/sysconfig/hwsetup/netcard",d,verbose);
34 load_mod(d->driver,verbose); break;
35 - case CLASS_FLOPPY: writeconfig("/etc/sysconfig/floppy",d,verbose);
36 + case CLASS_FLOPPY: writeconfig("/etc/sysconfig/hwsetup/floppy",d,verbose);
37 load_mod(d->driver,verbose); break;
38 case CLASS_KEYBOARD:if(d->bus==BUS_USB) load_mod(d->driver,verbose);
39 break;