dotfiles/scripts/setup/setup-systemd-autologin
2025-09-09 00:23:03 -06:00

9 lines
217 B
Bash
Executable file

#!/bin/sh
_config_file="$XDG_CONFIG_HOME"/systemd/system/getty@tty1.service.d
if [ -d "$_config_file" ]; then
sudo cp -rf "$_config_file" /etc/systemd/system/
else
echo 'Error "$XDG_CONFIG_HOME" not defined'
fi