aboutsummaryrefslogtreecommitdiffstats
path: root/main/ifupdown/busybox-compat.patch
blob: 706b5040060dcb2b2be247e5423799a2cf445992 (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
39
40
--- a/main.c	2019-01-28 18:21:37.000000000 +0100
+++ b/main.c	2019-06-01 19:22:23.224959630 +0200
@@ -94,8 +94,8 @@
 		"\t--no-loopback          don't act specially on the loopback device\n");
 
 	if (!(cmds == iface_list) && !(cmds == iface_query))
-		printf(	"\t--force                force de/configuration\n"
-			"\t--ignore-errors        ignore errors\n");
+    printf("\t-f,--force\t\t\tforce de/configuration\n"
+			"\t--ignore-errors\t\t\tignore errors\n");
 
 	if ((cmds == iface_list) || (cmds == iface_query))
 		printf(	"\t--list                 list all matching known interfaces\n"
@@ -439,7 +439,7 @@
 		{"no-mappings", no_argument, NULL, 1},
 		{"no-scripts", no_argument, NULL, 4},
 		{"no-loopback", no_argument, NULL, 5},
-		{"force", no_argument, NULL, 2},
+		{"force", no_argument, NULL, 'f'},
 		{"ignore-errors", no_argument, NULL, 7},
 		{"option", required_argument, NULL, 'o'},
 		{"list", no_argument, NULL, 'l'},
@@ -450,7 +450,7 @@
 	};
 
 	for (;;) {
-		int c = getopt_long(*argc, *argv, "X:s:i:o:hVvnal", long_opts, NULL);
+		int c = getopt_long(*argc, *argv, "X:s:i:o:hVvnalf", long_opts, NULL);
 
 		if (c == EOF)
 			break;
@@ -526,7 +526,7 @@
 			run_mappings = false;
 			break;
 
-		case 2: /* --force */
+		case 'f': /* --force */
 			if ((cmds == iface_list) || (cmds == iface_query))
 				usage();
 			force = true;