diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-04-25 12:26:16 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-04-25 12:26:16 +0000 |
commit | 126777bc019a54afb4ec51299f2cf9d2841698aa (patch) | |
tree | 97f76e571902ead55ba138f1156a4b4f00b9b779 /move/runlevel_set.c | |
parent | f1f67448efc714873378dfeb8279fae68054a90a (diff) | |
download | drakx-126777bc019a54afb4ec51299f2cf9d2841698aa.tar drakx-126777bc019a54afb4ec51299f2cf9d2841698aa.tar.gz drakx-126777bc019a54afb4ec51299f2cf9d2841698aa.tar.bz2 drakx-126777bc019a54afb4ec51299f2cf9d2841698aa.tar.xz drakx-126777bc019a54afb4ec51299f2cf9d2841698aa.zip |
re-sync after the big svn loss
Diffstat (limited to 'move/runlevel_set.c')
-rw-r--r-- | move/runlevel_set.c | 25 |
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; -} |