changed autologin
This commit is contained in:
@@ -32,6 +32,8 @@ wget -L "https://raw.githubusercontent.com/miT-nib-hcI/PiVideo/main/start.sh"
|
|||||||
wget -L "https://raw.githubusercontent.com/miT-nib-hcI/PiVideo/main/stop.sh"
|
wget -L "https://raw.githubusercontent.com/miT-nib-hcI/PiVideo/main/stop.sh"
|
||||||
wget -L "https://raw.githubusercontent.com/miT-nib-hcI/PiVideo/main/reload.sh"
|
wget -L "https://raw.githubusercontent.com/miT-nib-hcI/PiVideo/main/reload.sh"
|
||||||
|
|
||||||
|
chmod 755 *.sh
|
||||||
|
|
||||||
echo -e "${GREEN}======== Holle Videos========${NOCOLOR}"
|
echo -e "${GREEN}======== Holle Videos========${NOCOLOR}"
|
||||||
|
|
||||||
cd videos/
|
cd videos/
|
||||||
@@ -42,24 +44,12 @@ cd ..
|
|||||||
|
|
||||||
echo -e "${GREEN}======== Erestele Systemd Service ========${NOCOLOR}"
|
echo -e "${GREEN}======== Erestele Systemd Service ========${NOCOLOR}"
|
||||||
|
|
||||||
AUTOLOGIN_SERVICE_CONTENT="[Unit]
|
AUTOLOGIN_SERVICE_CONTENT="[Service]
|
||||||
Description=Automatic Console Login
|
ExecStart=
|
||||||
After=rc-local.service plymouth-quit-wait.service
|
ExecStart=-/sbin/agetty --autologin $CURRENT_USER --noclear tty1 linux
|
||||||
After=systemd-user-sessions.service
|
|
||||||
After=network.target
|
|
||||||
After=network-online.target
|
|
||||||
Wants=network-online.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStart=-/sbin/agetty --autologin $CURRENT_USER --noclear %I \$TERM
|
|
||||||
Type=idle
|
|
||||||
Restart=always
|
|
||||||
RestartSec=0
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
"
|
"
|
||||||
|
|
||||||
|
|
||||||
SERVICE_CONTENT="[Unit]
|
SERVICE_CONTENT="[Unit]
|
||||||
Description=Video Control Script
|
Description=Video Control Script
|
||||||
After=network.target
|
After=network.target
|
||||||
|
|||||||
Reference in New Issue
Block a user