mirror of
https://github.com/EnergyMech/energymech.git
synced 2025-12-29 16:14:43 +00:00
rand command, beginning netcfg, consolidated some .c files
This commit is contained in:
11
src/main.c
11
src/main.c
@@ -952,6 +952,17 @@ int main(int argc, char **argv, char **envp)
|
||||
debug_on_exit = TRUE;
|
||||
break;
|
||||
#endif /* DEBUG */
|
||||
case 'e': // run a single command before exiting
|
||||
startup = 3;
|
||||
++argv;
|
||||
if (*argv)
|
||||
{
|
||||
//void on_msg(char *from, char *to, char *rest)
|
||||
//on_msg();
|
||||
}
|
||||
else
|
||||
to_file(1,"error: Missing argument for -e <command string>\n");
|
||||
_exit(0);
|
||||
case 't':
|
||||
startup = 666;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user