diff --git a/config-debian-xfce.sh b/config-debian-xfce.sh new file mode 100755 index 0000000..e96d238 --- /dev/null +++ b/config-debian-xfce.sh @@ -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 + diff --git a/config-debian.sh b/config-debian.sh index 87e9bc0..176a2f1 100755 --- a/config-debian.sh +++ b/config-debian.sh @@ -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