summaryrefslogtreecommitdiff
path: root/package/autologin/src/autologin.c
diff options
context:
space:
mode:
Diffstat (limited to 'package/autologin/src/autologin.c')
-rw-r--r--package/autologin/src/autologin.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/package/autologin/src/autologin.c b/package/autologin/src/autologin.c
new file mode 100644
index 0000000..14c7eeb
--- /dev/null
+++ b/package/autologin/src/autologin.c
@@ -0,0 +1,10 @@
+// This file is part of the OpenADK project. OpenADK is copyrighted
+// material, please see the LICENCE file in the top-level directory.
+
+#include <unistd.h>
+#include <stdio.h>
+
+int main()
+{
+ return execlp("login\0","login\0","-f\0", "root\0" ,0);
+}