Replace user for autologin

This commit is contained in:
xdrm-brackets 2017-01-22 16:01:51 +01:00
parent 8cb6677b75
commit 405dfe8afb
1 changed files with 4 additions and 1 deletions

View File

@ -242,7 +242,10 @@ step8(){
# (2) Link autologin to tty service # # (2) Link autologin to tty service #
echo " (.) Link autologin script to tty's default"; echo " (.) Link autologin script to tty's default";
sudo ln -fs /etc/systemd/system/autologin@.service /mnt/etc/systemd/system/getty.target.wants/getty@tty1.service; sudo cat /etc/systemd/system/autologin@.service \
| sed 's/ pi / sats-user /' \
| sudo tee /etc/systemd/system/autologin2@.service > /dev/null;
sudo ln -fs /etc/systemd/system/autologin2@.service /mnt/etc/systemd/system/getty.target.wants/getty@tty1.service;
echo "<<< done"; echo "<<< done";