add back deprecation warnings lost during refactoring

This commit is contained in:
William Hubbs 2016-01-22 12:46:29 -06:00
parent e277ae57ef
commit 47dd5e37cb
2 changed files with 6 additions and 0 deletions

View File

@ -1121,6 +1121,10 @@ int main(int argc, char **argv)
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
applet = basename_c(argv[0]);
if (strcmp(applet, "runscript") == 0)
ewarnv("runscript is deprecated, please use openrc-run instead.");
if (stat(argv[1], &stbuf) != 0) { if (stat(argv[1], &stbuf) != 0) {
fprintf(stderr, "openrc-run `%s': %s\n", fprintf(stderr, "openrc-run `%s': %s\n",
argv[1], strerror(errno)); argv[1], strerror(errno));

View File

@ -830,6 +830,8 @@ int main(int argc, char **argv)
} }
} }
if (strcmp(applet, "rc") == 0)
ewarnv("rc is deprecated, please use openrc instead.");
newlevel = argv[optind++]; newlevel = argv[optind++];
/* To make life easier, we only have the shutdown runlevel as /* To make life easier, we only have the shutdown runlevel as
* nothing really needs to know that we're rebooting. * nothing really needs to know that we're rebooting.