From f5cea69706547b51fcc701e381f2eac7b979d1a3 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Sun, 22 Jan 2017 19:04:15 +0100 Subject: [PATCH] autologin method 3 --- clone/clone | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/clone/clone b/clone/clone index c6a6908..fbff10d 100755 --- a/clone/clone +++ b/clone/clone @@ -243,13 +243,15 @@ step8(){ # (2) Link autologin to tty service # echo " (.) Link autologin script to tty's default"; - sudo cat /mnt/etc/systemd/system/autologin@.service \ - | sed 's/ pi / sats-user /' \ - | 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; + #sudo cat /mnt/etc/systemd/system/autologin@.service \ + # | sed 's/ pi / sats-user /' \ + # | 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; + sudo mkdir -pv /mnt/etc/systemd/system/getty@tty1.service.d; + echo -e "[Service]\nExecStart=\nExecStart=-/sbin/agetty --autologin sats-user --noclear I 38400 linux" | sudo tee /mnt/etc/systemd/systen/getty@tty1.service.d/autologin.conf > /dev/null; echo "<<< done";