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";