We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d8a192 commit c4988dbCopy full SHA for c4988db
usr/sbin/autologinchange
@@ -427,10 +427,13 @@ fi
427
428
## Ensure that lightdm doesn't have a multi-seat configuration, we can't
429
## safely manage those
430
+## TODO: consider cases with leading spaces
431
+## TODO: ignore comments
432
if grep --quiet --recrusive --ignore-case -- '^\[Seat:[^*]' /etc/lightdm; then
433
echo "ERROR: Multi-seat lightdm configuration detected, cannot proceed!" >&2
434
exit 1
435
fi
436
+
437
readarray -t autologin_users_lightdm < <(
438
grep --quiet --ignore-case -- '^autologin-user=' /etc/lightdm \
439
| filter_out_sysmaint_maybe \
0 commit comments