mirror of
https://github.com/troglobit/finit.git
synced 2026-10-14 10:19:36 +00:00
Add /lib/finit/sample.conf for initctl create
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
544180aa0b
commit
2bfede2cfe
4 files changed
+53
-3
No files matched your search
+4
-1
@@ -263,7 +263,10 @@ static int do_edit(char *arg, int creat)
|
||||
return serv_list("available");
|
||||
}
|
||||
|
||||
/* XXX: fill with template/commented-out examples */
|
||||
#ifdef SAMPLE_CONF
|
||||
/* Try copying file, it may have been removed by sysop */
|
||||
copyfile(SAMPLE_CONF, fn, 0, 0);
|
||||
#endif
|
||||
} else if (creat)
|
||||
warnx("the file %s already exists, falling back to edit.", fn);
|
||||
|
||||
|
||||
Reference in new issue
Block a user