diff options
-rw-r--r-- | networking/ifupdown.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/networking/ifupdown.c b/networking/ifupdown.c index 5c24451ba..b0bc0d70f 100644 --- a/networking/ifupdown.c +++ b/networking/ifupdown.c | |||
@@ -21,7 +21,7 @@ | |||
21 | //usage: "[-an"IF_FEATURE_IFUPDOWN_MAPPING("m")"vf] [-i FILE] IFACE..." | 21 | //usage: "[-an"IF_FEATURE_IFUPDOWN_MAPPING("m")"vf] [-i FILE] IFACE..." |
22 | //usage:#define ifup_full_usage "\n\n" | 22 | //usage:#define ifup_full_usage "\n\n" |
23 | //usage: " -a De/configure all interfaces automatically" | 23 | //usage: " -a De/configure all interfaces automatically" |
24 | //usage: "\n -i FILE Use FILE for interface definitions" | 24 | //usage: "\n -i FILE Use FILE instead of /etc/network/interfaces" |
25 | //usage: "\n -n Print out what would happen, but don't do it" | 25 | //usage: "\n -n Print out what would happen, but don't do it" |
26 | //usage: IF_FEATURE_IFUPDOWN_MAPPING( | 26 | //usage: IF_FEATURE_IFUPDOWN_MAPPING( |
27 | //usage: "\n (note: doesn't disable mappings)" | 27 | //usage: "\n (note: doesn't disable mappings)" |
@@ -1069,6 +1069,11 @@ static int execute_all(struct interface_defn_t *ifd, const char *opt) | |||
1069 | } | 1069 | } |
1070 | } | 1070 | } |
1071 | 1071 | ||
1072 | /* Tested on Debian Squeeze: "standard" ifup runs this without | ||
1073 | * checking that directory exists. If it doesn't, run-parts | ||
1074 | * complains, and this message _is_ annoyingly visible. | ||
1075 | * Don't "fix" this (unless newer Debian does). | ||
1076 | */ | ||
1072 | buf = xasprintf("run-parts /etc/network/if-%s.d", opt); | 1077 | buf = xasprintf("run-parts /etc/network/if-%s.d", opt); |
1073 | /* heh, we don't bother free'ing it */ | 1078 | /* heh, we don't bother free'ing it */ |
1074 | return doit(buf); | 1079 | return doit(buf); |