autologin method 3
This commit is contained in:
parent
54aabd2fe4
commit
f5cea69706
14
clone/clone
14
clone/clone
|
@ -243,13 +243,15 @@ step8(){
|
||||||
|
|
||||||
# (2) Link autologin to tty service #
|
# (2) Link autologin to tty service #
|
||||||
echo " (.) Link autologin script to tty's default";
|
echo " (.) Link autologin script to tty's default";
|
||||||
sudo cat /mnt/etc/systemd/system/autologin@.service \
|
#sudo cat /mnt/etc/systemd/system/autologin@.service \
|
||||||
| sed 's/ pi / sats-user /' \
|
# | sed 's/ pi / sats-user /' \
|
||||||
| tee ./tmp/autologin@.service > /dev/null;
|
# | tee ./tmp/autologin@.service > /dev/null;
|
||||||
sudo cp ./tmp/autologin@.service /mnt/etc/systemd/system/autologin@.service;
|
#sudo cp ./tmp/autologin@.service /mnt/etc/systemd/system/autologin@.service;
|
||||||
rm ./tmp/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 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";
|
echo "<<< done";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue