Added Edit command

Command Edit <CONF>  opens file /etc/finit.d/available/<CONF>.conf in
the editor referenced by Linux environment variable $EDITOR
If $EDITOR is not set it will try to open emacs and if emacs is not
found it will try to open the file in vim.

Signed-off-by: Andreas Egeberg <andreas.egeberg@gmail.com>
This commit is contained in:
Andreas Egeberg authored and Andreas Egeberg committed 2021-02-26 10:28:21 +01:00
1 parent fc82f0242c
commit 60d0ca1075
3 files changed
+35 -1

No files matched your search

+1
View File
@@ -28,6 +28,7 @@ int serv_list (char *arg);
int serv_enable (char *arg);
int serv_disable (char *arg);
int serv_touch (char *arg);
int serv_edit (char *arg);
#endif /* FINIT_SERV_H_ */