Use systype variable for rc_sys call
This commit is contained in:
parent
a4038e1171
commit
f5cf1136e7
@ -752,6 +752,7 @@ main(int argc, char **argv)
|
|||||||
{
|
{
|
||||||
const char *bootlevel = NULL;
|
const char *bootlevel = NULL;
|
||||||
char *newlevel = NULL;
|
char *newlevel = NULL;
|
||||||
|
const char *systype = NULL;
|
||||||
static RC_STRINGLIST *hotplugged_services;
|
static RC_STRINGLIST *hotplugged_services;
|
||||||
static RC_STRINGLIST *stop_services;
|
static RC_STRINGLIST *stop_services;
|
||||||
static RC_STRINGLIST *start_services;
|
static RC_STRINGLIST *start_services;
|
||||||
@ -845,9 +846,9 @@ main(int argc, char **argv)
|
|||||||
eerrorx("%s: %s", applet, strerror(errno));
|
eerrorx("%s: %s", applet, strerror(errno));
|
||||||
/* NOTREACHED */
|
/* NOTREACHED */
|
||||||
case 'S':
|
case 'S':
|
||||||
bootlevel = rc_sys();
|
systype = rc_sys();
|
||||||
if (bootlevel)
|
if (systype)
|
||||||
printf("%s\n", bootlevel);
|
printf("%s\n", systype);
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
/* NOTREACHED */
|
/* NOTREACHED */
|
||||||
case_RC_COMMON_GETOPT
|
case_RC_COMMON_GETOPT
|
||||||
|
Loading…
Reference in New Issue
Block a user