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.

This commit is contained in:
Glenn L McGrath
2002-11-11 06:21:00 +00:00
parent 8f0722a53b
commit 545106f8db
8 changed files with 2945 additions and 196 deletions

View File

@@ -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);
}