Change persistant network rules to work with atheros/hostapd without removing the blue0 rule

change hostapd initskript for other cards than atheros
This commit is contained in:
Arne Fitzenreiter
2008-08-12 20:41:44 +02:00
parent 4fa6ee5519
commit 5f785e716c
2 changed files with 27 additions and 11 deletions

View File

@@ -504,7 +504,7 @@ int create_udev(void)
for (i = 0 ; i < 4 ; i++)
{
if (strcmp(knics[i].macaddr, "")) {
fprintf(fp,"ACTION==\"add\", SUBSYSTEM==\"net\", SYSFS{address}==\"%s\", NAME=\"%s0\" # %s\n", knics[i].macaddr, lcolourcard[i], knics[i].description);
fprintf(fp,"ACTION==\"add\", SUBSYSTEM==\"net\", SYSFS{type}==\"1\", SYSFS{address}==\"%s\", NAME=\"%s0\" # %s\n", knics[i].macaddr, lcolourcard[i], knics[i].description);
}
}
fclose(fp);