summaryrefslogtreecommitdiffstats
path: root/move/runlevel_set.c
diff options
context:
space:
mode:
authorMystery Man <unknown@mandriva.org>2004-06-15 16:50:22 +0000
committerMystery Man <unknown@mandriva.org>2004-06-15 16:50:22 +0000
commit8ea9beca90c410e12593fedfb6e741dbdf8795d0 (patch)
tree544a377d0ea57462110009fbbbfd14473390e2a1 /move/runlevel_set.c
parentb5dc638815c772056e07cd013f5b1674900456d5 (diff)
downloaddrakx-8ea9beca90c410e12593fedfb6e741dbdf8795d0.tar
drakx-8ea9beca90c410e12593fedfb6e741dbdf8795d0.tar.gz
drakx-8ea9beca90c410e12593fedfb6e741dbdf8795d0.tar.bz2
drakx-8ea9beca90c410e12593fedfb6e741dbdf8795d0.tar.xz
drakx-8ea9beca90c410e12593fedfb6e741dbdf8795d0.zip
This commit was manufactured by cvs2svn to create branch 'mandrakesoft'.topic/mandrakesoft
Diffstat (limited to 'move/runlevel_set.c')
-rw-r--r--move/runlevel_set.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/move/runlevel_set.c b/move/runlevel_set.c
deleted file mode 100644
index 94f7b5933..000000000
--- a/move/runlevel_set.c
+++ /dev/null
@@ -1,25 +0,0 @@
-#include <stdlib.h>
-#include <unistd.h>
-#include <stdio.h>
-#include <string.h>
-#include <utmp.h>
-
-int main(int argc, char **argv)
-{
- struct utmp utmp;
-
- if (argc <= 1) {
- fprintf(stderr, "need an argument\n");
- return 1;
- }
-
- memset(&utmp, 0, sizeof(utmp));
- utmp.ut_type = RUN_LVL;
- utmp.ut_pid = argv[1][0];
-
- setutent();
- pututline(&utmp);
- endutent();
-
- return 0;
-}