Skip to content
Permalink
Browse files

Disable TTY build if not TTY found

  • Loading branch information...
RobbieF committed Aug 18, 2019
1 parent 98f929d commit 244d16a3b9ecb9e945726abcae03c246c541071d
Showing with 12 additions and 0 deletions.
  1. +6 −0 build/010-tty
  2. +6 −0 build/011-tty
@@ -5,6 +5,12 @@ echo $0 > /var/www/html/userfiles/nems-build.cur

apt install -y dialog

systemtty=$(ls /etc/systemd/system/getty*)
if [[ $systemtty == '' ]]; then
echo "This platform does not have a TTY"
exit
fi

# Disable TTY1
if [[ -d /etc/systemd/system/getty@tty1.service.d ]]; then
rm -rf /etc/systemd/system/getty@tty1.service.d
@@ -1,6 +1,12 @@
#!/bin/bash
echo $0 > /var/www/html/userfiles/nems-build.cur

systemtty=$(ls /etc/systemd/system/getty*)
if [[ $systemtty == '' ]]; then
echo "This platform does not have a TTY"
exit
fi

# Perform some additional TTY setup without manipulating the splash (010-tty)

if [[ ! -f /etc/rc.local ]]; then

0 comments on commit 244d16a

Please sign in to comment.
You can’t perform that action at this time.