Wachalarm-Monitor/home/report_status.sh
2022-12-27 11:01:27 +01:00

13 lines
321 B
Bash

#!/bin/bash
if [ -f /boot/wachalarm_einstellungen.txt ]; then
source /boot/wachalarm_einstellungen.txt
fi
#Standby-Script ausfuehren
if [[ "$report_enable" == *"1"* ]]; then
xmldata=$(sudo lshw -xml)
curl -H "Content-Type: application/xml" -H "Accept: application/xml" -d "$xmldata" -X POST $report_url
fi