diff --git a/clone/clone b/clone/clone index 10f2e88..c6a6908 100755 --- a/clone/clone +++ b/clone/clone @@ -245,8 +245,10 @@ step8(){ echo " (.) Link autologin script to tty's default"; sudo cat /mnt/etc/systemd/system/autologin@.service \ | sed 's/ pi / sats-user /' \ - | sudo tee /mnt/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; + | tee ./tmp/autologin@.service > /dev/null; + 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";