File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -266,15 +266,16 @@ EOF
266266}
267267
268268get_autologin_status () {
269- local service=$1 status
269+ local service=" $1 "
270+ local status=" OFF"
270271
271- if [[ -n " $( systemctl list-units --no-legend " $i " .service) " ]]
272+ if [[ -n " $( systemctl list-units --no-legend " $service " .service) " ]]
272273 then
273- if ! grep -q -e " disabled" -e " not-found" <( systemctl is-enabled " $i " )
274+ if ! grep -q -e " disabled" -e " not-found" <( systemctl is-enabled " $service " )
274275 then
275- case " $i " in
276+ case " $service " in
276277 serial-getty@ttyAML0|serial-getty@ttyFIQ0|getty@tty1)
277- if grep -q -e " --autologin" " /etc/systemd/system/$i .service.d/override.conf"
278+ if grep -q -e " --autologin" " /etc/systemd/system/$service .service.d/override.conf"
278279 then
279280 status=" ON"
280281 else
You can’t perform that action at this time.
0 commit comments