rc: remove calls to rc_sys_v2 and rc_sys_v1
These separate calls are no longer needed since we do not warn about falling back to automatic detection.
This commit is contained in:
parent
3c602e7422
commit
04db6c3d39
12
src/rc/rc.c
12
src/rc/rc.c
@ -826,15 +826,9 @@ main(int argc, char **argv)
|
|||||||
eerrorx("%s: %s", applet, strerror(errno));
|
eerrorx("%s: %s", applet, strerror(errno));
|
||||||
/* NOTREACHED */
|
/* NOTREACHED */
|
||||||
case 'S':
|
case 'S':
|
||||||
if (rc_conf_value("rc_sys")) {
|
bootlevel = rc_sys();
|
||||||
bootlevel = rc_sys_v2();
|
if (bootlevel)
|
||||||
if (bootlevel)
|
printf("%s\n", bootlevel);
|
||||||
printf("%s\n", bootlevel);
|
|
||||||
} else {
|
|
||||||
bootlevel = rc_sys_v1();
|
|
||||||
if (bootlevel)
|
|
||||||
printf("%s\n", bootlevel);
|
|
||||||
}
|
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
/* NOTREACHED */
|
/* NOTREACHED */
|
||||||
case_RC_COMMON_GETOPT
|
case_RC_COMMON_GETOPT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user