commit: 47dd5e37cbf372df3ee0fad2c87226dce5b51587 Author: William Hubbs <w.d.hubbs <AT> gmail <DOT> com> AuthorDate: Fri Jan 22 18:46:29 2016 +0000 Commit: William Hubbs <williamh <AT> gentoo <DOT> org> CommitDate: Fri Jan 22 18:46:29 2016 +0000 URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=47dd5e37
add back deprecation warnings lost during refactoring src/rc/openrc-run.c | 4 ++++ src/rc/rc.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/rc/openrc-run.c b/src/rc/openrc-run.c index 2a4b90d..5e3ba67 100644 --- a/src/rc/openrc-run.c +++ b/src/rc/openrc-run.c @@ -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)); diff --git a/src/rc/rc.c b/src/rc/rc.c index 4efa0cf..11170b4 100644 --- a/src/rc/rc.c +++ b/src/rc/rc.c @@ -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.