17 lines
378 B
Bash
17 lines
378 B
Bash
#!/bin/bash
|
|
|
|
# Einstellungen einlesen
|
|
if [ -f /boot/wachalarm_einstellungen.txt ]; then
|
|
source /boot/wachalarm_einstellungen.txt
|
|
fi
|
|
|
|
echo "$screen_type";
|
|
|
|
if [[ $screen_type == *"m"* ]]; then
|
|
echo "display off";
|
|
sudo vcgencmd display_power 0 > /dev/null
|
|
elif [[ $screen_type == *"t"* ]]; then
|
|
echo "hdmi off";
|
|
echo 'standby 0' | cec-client -s > /dev/null
|
|
fi
|