From 54aabd2fe4d52906aeb22df90b0b25a003a86e1b Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Sun, 22 Jan 2017 18:43:41 +0100 Subject: [PATCH] tmp autologin then replace original --- clone/clone | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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";