summaryrefslogtreecommitdiffstats
path: root/testing/ifupdown/ifupdown-busybox-compat.patch
blob: 10d4ceeaabe95314caaa2c04a89c4de25ab8bf38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
--- ifupdown-0.6.10.orig/main.c
+++ ifupdown-0.6.10/main.c
@@ -61,7 +61,7 @@
 	printf("\t\t\t\t(note that this option doesn't disable mappings)\n");
 	printf("\t-v, --verbose\t\tprint out what would happen before doing it\n");
 	printf("\t--no-mappings\t\tdon't run any mappings\n");
-	printf("\t--force\t\t\tforce de/configuration\n");
+	printf("\t-f, --force\t\t\tforce de/configuration\n");
 	exit(0);
 }
 #line 3573 "ifupdown.nw"
@@ -345,7 +345,7 @@
 	{"exclude",     required_argument, NULL, 'e'},
 	{"no-act",      no_argument,       NULL, 'n'},
 	{"no-mappings", no_argument,       NULL,  1 },
-	{"force",       no_argument,       NULL,  2 },
+	{"force",       no_argument,       NULL, 'f'},
 	{0,0,0,0}
 };
 #line 3173 "ifupdown.nw"
@@ -415,7 +415,7 @@
 #line 3235 "ifupdown.nw"
 for(;;) {
 	int c;
-	c = getopt_long(argc, argv, "e:s:i:hVvna", long_opts, NULL);
+	c = getopt_long(argc, argv, "e:s:i:hVvnaf", long_opts, NULL);
 	if (c == EOF) break;
 
 	switch(c) {
@@ -445,7 +445,7 @@
 	run_mappings = 0;
 	break;
 #line 3283 "ifupdown.nw"
-case 2:
+case 'f':
 	force = 1;
 	break;
 #line 3288 "ifupdown.nw"