Created
January 29, 2016 09:19
-
-
Save draganHR/ae91d88d0d2394e13ac2 to your computer and use it in GitHub Desktop.
systemd custom login
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# /usr/bin/ttyentrypoint | |
error_exit() { | |
echo "[ERROR] $1" | |
exit | |
} | |
exec /bin/bash -c 'reset; echo "Do stuff..."; sleep 10;' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/systemd/system/[email protected]/override.conf | |
[Service] | |
Type=idle | |
ExecStart= | |
ExecStart=-/sbin/agetty --autologin root --noclear %I 38400 linux -l /usr/bin/ttyentrypoint |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment