summaryrefslogtreecommitdiffstats
path: root/urunlevel/my_linux/rcS.c
diff options
context:
space:
mode:
Diffstat (limited to 'urunlevel/my_linux/rcS.c')
-rw-r--r--urunlevel/my_linux/rcS.c47
1 files changed, 47 insertions, 0 deletions
diff --git a/urunlevel/my_linux/rcS.c b/urunlevel/my_linux/rcS.c
new file mode 100644
index 0000000..6d1f64f
--- /dev/null
+++ b/urunlevel/my_linux/rcS.c
@@ -0,0 +1,47 @@
1/*
2 * Mini rcS implementation for busybox.
3 *
4 * Copyright (C) 2004 by David Seikel won_fang@yahoo.com.au
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
19 * 02111-1307 USA
20 *
21 */
22
23#include <unistd.h>
24
25#include "busybox.h"
26#include "lib_init_d.h"
27#include "my_linux.h"
28
29
30int rcS_main(int argc, char **argv)
31{
32 doit(FORK | QUIET, "gpm -m /dev/input/mice -t exps2 -M -m /dev/ttyS0 -t ms");
33
34// doit(FORK | QUIET, "/usr/sbin/crond");
35// if (errno == 0)
36// {
37// bb_printf("Starting cron.\n");
38// doit(0, "sort /etc/crontab | uniq > /tmp/crontab 2> /dev/null");
39// copy_file("/tmp/crontab", "/etc/crontab", FILEUTILS_FORCE | FILEUTILS_PRESERVE_STATUS);
40// doit(0, "/usr/sbin/crontab /etc/crontab 2> /dev/null");
41// doit(0, "crontab -l");
42// }
43
44 bb_printf("\n\nALT-<Left/Right> allows you to view other virtual terminals.\n");
45
46 return EXIT_SUCCESS;
47}