summaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorGlenn L McGrath2002-11-11 06:21:00 +0000
committerGlenn L McGrath2002-11-11 06:21:00 +0000
commit545106f8db3e9e40d454a8713e713b0741739b23 (patch)
treec5a1aa31cac00d7bd5bcfa466374ff746764f3f2 /networking
parent8f0722a53b9a88c0b4e60b79e4362d0f31c32c54 (diff)
downloadbusybox-545106f8db3e9e40d454a8713e713b0741739b23.zip
busybox-545106f8db3e9e40d454a8713e713b0741739b23.tar.gz
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.
Diffstat (limited to 'networking')
-rw-r--r--networking/ifupdown.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/networking/ifupdown.c b/networking/ifupdown.c
index dda530a..8df2e7f 100644
--- a/networking/ifupdown.c
+++ b/networking/ifupdown.c
@@ -1017,10 +1017,10 @@ static int doit(char *str)
return (1);
}
-static int execute_all(interface_defn *ifd, execfn *exec, char *opt)
+static int execute_all(interface_defn *ifd, execfn *exec, const char *opt)
{
int i;
- char buf[100];
+// char buf[100];
for (i = 0; i < ifd->n_options; i++) {
if (strcmp(ifd->option[i].name, opt) == 0) {
@@ -1030,8 +1030,9 @@ static int execute_all(interface_defn *ifd, execfn *exec, char *opt)
}
}
- sprintf(buf, "run-parts /etc/network/if-%s.d", opt);
- (*exec) (buf);
+ runparts("/etc/network/if-"opt".d");
+// sprintf(buf, "run-parts /etc/network/if-%s.d", opt);
+// (*exec) (buf);
return (1);
}