From 405dfe8afb92c3a444806b76b9803007baeaa95a Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Sun, 22 Jan 2017 16:01:51 +0100 Subject: [PATCH] Replace user for autologin --- clone/clone | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/clone/clone b/clone/clone index 94f77c3..889d2e7 100755 --- a/clone/clone +++ b/clone/clone @@ -242,7 +242,10 @@ step8(){ # (2) Link autologin to tty service # 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";