dev: automated commit - 2025-07-17 14:03:35
This commit is contained in:
parent
b60e2c8e13
commit
387d523c9f
8 changed files with 10 additions and 11 deletions
34
runs/config
34
runs/config
|
|
@ -1,34 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
# NAME: Configure autologin
|
||||
# REQUIRES: sudo
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
# Source common functions
|
||||
source "$(dirname "$0")/../common.sh" || {
|
||||
echo "[ERROR] Could not source common.sh" >&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
configure_autologin() {
|
||||
log_info "Configuring autologin"
|
||||
|
||||
sudo mkdir -p /etc/systemd/system/getty@tty1.service.d
|
||||
sudo tee /etc/systemd/system/getty@tty1.service.d/override.conf >/dev/null <<EOF
|
||||
[Service]
|
||||
ExecStart=
|
||||
ExecStart=-/usr/bin/agetty --autologin forbi --noclear %I \$TERM
|
||||
EOF
|
||||
}
|
||||
|
||||
main() {
|
||||
init_script
|
||||
|
||||
configure_autologin
|
||||
|
||||
log_info "Autologin configured successfully"
|
||||
|
||||
finish_script 0
|
||||
}
|
||||
|
||||
main "$@"
|
||||
Loading…
Add table
Add a link
Reference in a new issue