Skip to content
Snippets Groups Projects
Commit 73485f83 authored by Eric Vidal's avatar Eric Vidal :speech_balloon:
Browse files

allow to create automatically a scandir for boot proccess at start command

parent 2eb8b597
No related branches found
No related tags found
No related merge requests found
......@@ -193,7 +193,7 @@ int ssexec_scandir_signal(int argc, char const *const *argv, ssexec_t *info)
int r ;
unsigned int timeout = 0, notif = 0, sig = 0, container = 0 ;
unsigned int timeout = 0, notif = 0, sig = 0, container = 0, boot = 0 ;
char const *newenv[MAXENV+1] ;
char const *const *genv = 0 ;
......@@ -239,6 +239,12 @@ int ssexec_scandir_signal(int argc, char const *const *argv, ssexec_t *info)
break ;
case 'b' :
boot = 1 ;
break ;
case 'B' :
container = 1 ;
......@@ -294,7 +300,7 @@ int ssexec_scandir_signal(int argc, char const *const *argv, ssexec_t *info)
if (!r) {
unsigned int m = 0 ;
int nargc = 3 + (container ? 1 : 0) ;
int nargc = 3 + (container ? 1 : 0) + (boot ? 1 : 0) ;
char const *newargv[nargc] ;
newargv[m++] = "create" ;
......@@ -302,6 +308,9 @@ int ssexec_scandir_signal(int argc, char const *const *argv, ssexec_t *info)
if (container)
newargv[m++] = "-B" ;
if (boot)
newargv[m++] = "-b" ;
newargv[m++] = "create" ;
newargv[m] = 0 ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment