fix regexp on lightdm autologin

add refind package in live archive
parent 5b09b6d8
......@@ -93,6 +93,5 @@ if [ -x "$(which updatedb 2>/dev/null)" ]; then
updatedb
fi
sed -i -r -e "s|^#.*autologin-user=.*\$|autologin-user=user|" \
-e "s|^#.*autologin-user-timeout=.*\$|autologin-user-timeout=0|" \
/etc/lightdm/lightdm.conf
sed -i -e "s/^#.*autologin-user=.*\$/autologin-user=user/g" /etc/lightdm/lightdm.conf
sed -i -e "s/^#.*autologin-user-timeout=.*\$/autologin-user-timeout=0/g" /etc/lightdm/lightdm.conf
......@@ -3,7 +3,6 @@
set -e
# Disable lightdm autologin
in-target sh -c 'sed -i -e "s/^autologin-user=.*\$/#autologin-user=user/g" /etc/lightdm/lightdm.conf'
in-target sh -c 'sed -i -r -e "s|^autologin-user=.*\$|#autologin-user=|" \
-e "s|^autologin-user-timeout=.*\$|#autologin-user-timeout=0|" \
/etc/lightdm/lightdm.conf'
in-target sh -c 'sed -i -e "s/^autologin-user-timeout=.*\$/#autologin-user-timeout=0/g" /etc/lightdm/lightdm.conf'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment