Skip to content

Commit

Permalink
Integrate INSTALL_VNC
Browse files Browse the repository at this point in the history
Fixes #14
  • Loading branch information
rmens committed Oct 25, 2024
1 parent 614bc50 commit 65924d1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ EOF
# Greet the user
echo -e "${GREEN}⎎ Raspberry Pi Tekst TV Set-up${NC}\n\n"
ask_user "DO_UPDATES" "y" "Do you want to perform all OS updates? (y/n)" "y/n"
ask_user "INSTALL_VNC" "y" "Do you want to install VNC for remote control of this device? (y/n)" "y/n"

# Set system timezone
set_timezone Europe/Amsterdam
Expand Down Expand Up @@ -138,8 +139,13 @@ if [ -z "$DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ]; then
fi
EOF

# Boot to terminal, no login
sudo raspi-config nonint do_boot_behaviour B2
sudo raspi-config nonint do_vnc 0

# Check if the $INSTALL_VNC variable is set to 'y'
if [ "$INSTALL_VNC" == "y" ]; then
sudo raspi-config nonint do_vnc 0
fi

# Clean up unnecessary packages
echo -e "${BLUE}►► Cleaning up unnecessary packages...${NC}"
Expand Down

0 comments on commit 65924d1

Please sign in to comment.