diff options
author | dir <dir@ableton.com> | 2018-01-02 18:10:24 +0100 |
---|---|---|
committer | dir <dir@ableton.com> | 2018-08-13 17:54:03 +0200 |
commit | e9a80817647b5ac556519822251abd0346b6d468 (patch) | |
tree | 95464aabbd0a023604794d6116a90add4389b2f4 /package/autologin/src | |
parent | 07c3b1bf959087d37b7746189d93b929500855eb (diff) |
Add simple autologin program to be started by getty
@upstream
Diffstat (limited to 'package/autologin/src')
-rw-r--r-- | package/autologin/src/autologin.c | 10 |
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 000000000..14c7eeb56 --- /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); +} |