#!/bin/bash

########################################
#
# Prüfen, welches Display angeschlossen ist
#
########################################


GDS="$( lsusb | grep "1427:0905" | awk '{print $6}' )"

# Nur aktiv wenn GDS-Setup installiert wurde
if [ ! -f "/home/snowtv/bin/.gds_installed" ]; then
	echo "nogds"
	exit 0
fi

if [ "$GDS" == "1427:0905" ]; then
	systemctl enable snmpd
	systemctl enable sagds
	#crontab /home/snowtv/bin/cfg_files/cron_gds
	echo "gds"
elif [ "$GDS" != "1427:0905" ]; then
	systemctl disable snmpd
	systemctl disable sagds
	#crontab /home/snowtv/bin/cfg_files/cron_def
	echo "nogds"
else
	echo "na"
fi
