tmp autologin then replace original
This commit is contained in:
parent
8ca2083914
commit
54aabd2fe4
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue