tmp autologin then replace original

This commit is contained in:
xdrm-brackets 2017-01-22 18:43:41 +01:00
parent 8ca2083914
commit 54aabd2fe4
1 changed files with 4 additions and 2 deletions

View File

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