From 545106f8db3e9e40d454a8713e713b0741739b23 Mon Sep 17 00:00:00 2001 From: Glenn L McGrath Date: Mon, 11 Nov 2002 06:21:00 +0000 Subject: 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. --- networking/ifupdown.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'networking') 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); } -- cgit v1.1