This commit is contained in:
陆柯 2021-06-19 10:10:35 +08:00
parent 7f0bf14e13
commit e86ff29047
2 changed files with 15 additions and 2 deletions

11
config-debian-xfce.sh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/bash
read -p "Enable autologin as user? >>> " UserName
if [ $UserName ]
then
sed -i "s/^.*autologin-user=.*$/autologin-user=$UserName/g" /etc/lightdm/lightdm.conf
sed -i "s/^.*autologin-user-timeout=.*$/autologin-user-timeout=0/g" /etc/lightdm/lightdm.conf
else
echo 'Nothing changed.'
fi

View File

@ -1,5 +1,7 @@
echo "Usage: setup.sh [NewUser]"
echo "Example: setup.sh alice"
#!/bin/bash
echo "Usage: this.sh [NewUser]"
echo "Example: this.sh alice"
if [ v$1 != v ]
then