Add option to use built-in run-parts instead of /bin/run-parts

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
This commit is contained in:
Claudio Matsuoka committed 2008-03-15 10:34:05 -03:00
1 parent 6371f82fea
commit 434ec4c533
6 files changed
+19 -7

No files matched your search

+4
View File
@@ -189,7 +189,11 @@ int main()
touch("/etc/resolvconf/run/enable-updates");
chdir("/etc/resolvconf/run/interface");
#ifdef BUILTIN_RUNPARTS
run_parts("/etc/resolvconf/update.d", "-i", NULL);
#else
system("/bin/run-parts --arg=-i /etc/resolvconf/update.d");
#endif
chdir("/");
touch("/etc/network/run/ifstate");