diff options
author | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2002-11-11 06:21:00 +0000 |
---|---|---|
committer | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2002-11-11 06:21:00 +0000 |
commit | 5a951e0f39d1cb4302490f38245fc0564815a9a7 (patch) | |
tree | c5a1aa31cac00d7bd5bcfa466374ff746764f3f2 /networking | |
parent | 1ea2348cede280ccd3d3f788ae40a1653b34fdf9 (diff) | |
download | busybox-w32-5a951e0f39d1cb4302490f38245fc0564815a9a7.tar.gz busybox-w32-5a951e0f39d1cb4302490f38245fc0564815a9a7.tar.bz2 busybox-w32-5a951e0f39d1cb4302490f38245fc0564815a9a7.zip |
Move awk from textutils to editors. Cleanup run-parts, saves 200 bytes, moves the guts of run_parts to libbb to be used by ifupdown.
git-svn-id: svn://busybox.net/trunk/busybox@5909 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'networking')
-rw-r--r-- | networking/ifupdown.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/networking/ifupdown.c b/networking/ifupdown.c index dda530a99..8df2e7f5d 100644 --- a/networking/ifupdown.c +++ b/networking/ifupdown.c | |||
@@ -1017,10 +1017,10 @@ static int doit(char *str) | |||
1017 | return (1); | 1017 | return (1); |
1018 | } | 1018 | } |
1019 | 1019 | ||
1020 | static int execute_all(interface_defn *ifd, execfn *exec, char *opt) | 1020 | static int execute_all(interface_defn *ifd, execfn *exec, const char *opt) |
1021 | { | 1021 | { |
1022 | int i; | 1022 | int i; |
1023 | char buf[100]; | 1023 | // char buf[100]; |
1024 | 1024 | ||
1025 | for (i = 0; i < ifd->n_options; i++) { | 1025 | for (i = 0; i < ifd->n_options; i++) { |
1026 | if (strcmp(ifd->option[i].name, opt) == 0) { | 1026 | if (strcmp(ifd->option[i].name, opt) == 0) { |
@@ -1030,8 +1030,9 @@ static int execute_all(interface_defn *ifd, execfn *exec, char *opt) | |||
1030 | } | 1030 | } |
1031 | } | 1031 | } |
1032 | 1032 | ||
1033 | sprintf(buf, "run-parts /etc/network/if-%s.d", opt); | 1033 | runparts("/etc/network/if-"opt".d"); |
1034 | (*exec) (buf); | 1034 | // sprintf(buf, "run-parts /etc/network/if-%s.d", opt); |
1035 | // (*exec) (buf); | ||
1035 | 1036 | ||
1036 | return (1); | 1037 | return (1); |
1037 | } | 1038 | } |