Setup pf-ui to NOT echo characters to the tty device

This commit is contained in:
KemoNine 2020-08-28 21:28:31 -04:00
parent a92d742d86
commit e98cad2871

View file

@ -17,6 +17,14 @@ DL_URL=$(curl https://git.kemonine.info/api/v1/repos/PiFrame/piframe-go/releases
wget $DL_URL -O /usr/local/bin/pf-ui
chmod a+x /usr/local/bin/pf-ui
# Setup wrapper script for pf-ui so no chracters are echo'd to the tty
cat > /usr/local/bin/pf-ui.sh <<EOF
#!/bin/bash
/usr/bin/stty -echo
/usr/local/bin/pf-ui
EOF
chmod a+x /usr/local/bin/pf-ui.sh
# Setup systemd service for UI
cat > /etc/systemd/system/pf-ui.service <<EOF
[Unit]
@ -25,7 +33,7 @@ After=getty.target
[Service]
User=root
ExecStart=/usr/local/bin/pf-ui
ExecStart=/usr/local/bin/pf-ui.sh
Restart=always
TTYPath=/dev/tty1
StandardInput=tty