add back deprecation warnings lost during refactoring
This commit is contained in:
parent
e277ae57ef
commit
47dd5e37cb
@ -1121,6 +1121,10 @@ int main(int argc, char **argv)
|
||||
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) {
|
||||
fprintf(stderr, "openrc-run `%s': %s\n",
|
||||
argv[1], strerror(errno));
|
||||
|
@ -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++];
|
||||
/* To make life easier, we only have the shutdown runlevel as
|
||||
* nothing really needs to know that we're rebooting.
|
||||
|
Loading…
Reference in New Issue
Block a user