Added --version flag to init and updated manual page.

This commit is contained in:
Jesse Smith
2018-06-22 17:04:47 -03:00
parent 2a61e2b029
commit 4438de4e50
3 changed files with 17 additions and 0 deletions

View File

@@ -3000,6 +3000,12 @@ int main(int argc, char **argv)
else
p = argv[0];
if ( (argc == 2) && (! strcmp(argv[1], "--version") ) )
{
printf("SysV init version: %s\n\n", VERSION);
exit(0);
}
/* Common umask */
umask(umask(077) | 022);