summaryrefslogtreecommitdiff
path: root/src/rc/runscript.c
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2013-12-30 16:54:04 +0100
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2013-12-30 16:54:04 +0100
commitcf468ad0fd5426c2625626eb1e8dac2c223210e7 (patch)
tree2f4041d57c1dc70311872880fc5cc39c1c387dd7 /src/rc/runscript.c
parent37a57b1a4004ab89424d8881d0b33b59709e375a (diff)
parent3470eda3f5cea437a6de132b1ead3f27effd3902 (diff)
downloadopenrc-master-embtk.tar.gz
openrc-master-embtk.tar.bz2
openrc-master-embtk.tar.xz
Merge branch 'master' into openrc-master-embtkopenrc-embtk-0.13openrc-master-embtk
Diffstat (limited to 'src/rc/runscript.c')
-rw-r--r--src/rc/runscript.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/rc/runscript.c b/src/rc/runscript.c
index e5cb62e..981e606 100644
--- a/src/rc/runscript.c
+++ b/src/rc/runscript.c
@@ -1116,7 +1116,7 @@ static const char *const longopts_help[] = {
#include "_usage.c"
int
-runscript(int argc, char **argv)
+openrc_run(int argc, char **argv)
{
bool doneone = false;
int retval, opt, depoptions = RC_DEP_TRACE;
@@ -1130,12 +1130,12 @@ runscript(int argc, char **argv)
/* Show help if insufficient args */
if (argc < 2 || !exists(argv[1])) {
- fprintf(stderr, "runscript should not be run directly\n");
+ fprintf(stderr, "openrc-run should not be run directly\n");
exit(EXIT_FAILURE);
}
if (stat(argv[1], &stbuf) != 0) {
- fprintf(stderr, "runscript `%s': %s\n",
+ fprintf(stderr, "openrc-run `%s': %s\n",
argv[1], strerror(errno));
exit(EXIT_FAILURE);
}
@@ -1420,3 +1420,10 @@ runscript(int argc, char **argv)
return retval;
}
+
+int
+runscript(int argc, char **argv)
+{
+ ewarn("runscript is deprecated; please use openrc-run instead.");
+ return (openrc_run(argc, argv));
+}