/[baselayout]/trunk/src/runscript.c
Gentoo

Contents of /trunk/src/runscript.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 345 - (show annotations) (download) (as text)
Sun Apr 6 16:28:27 2003 UTC (16 years ago) by azarah
File MIME type: text/x-csrc
File size: 595 byte(s)
various fixes; moved .c files to src

1 /*
2 * Copyright 1999-2003 Gentoo Technologies, Inc.
3 * Distributed under the terms of the GNU General Public License v2
4 * $Header$
5 */
6
7
8 #include <stdio.h>
9 #include <stdlib.h>
10 #include <unistd.h>
11 #include <sys/types.h>
12 #include <wait.h>
13
14 int main(int argc, char **argv) {
15 char *myargs[32];
16 int new = 1;
17 myargs[0] = "runscript";
18
19 /* if (argc < 3)
20 exit(1);
21 */
22 while (argv[new] != 0) {
23 myargs[new] = argv[new];
24 new++;
25 }
26 myargs[new] = (char *) 0;
27 if (argc < 3) {
28 execv("/sbin/rc-help.sh",myargs);
29 exit(1);
30 }
31 if (execv("/sbin/runscript.sh",myargs) < 0)
32 exit(1);
33
34 return 0;
35 }
36

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.20