usr/bin/watchdog aktualisiert

This commit is contained in:
2024-10-16 11:11:32 +02:00
parent fb8ff04041
commit 9dd38dbc15

View File

@@ -1,6 +1,3 @@
# Version 1.0:
# Created 2024 by Tim Eertmoed, Christian Hampp @ WiS IT-Solutions GmbH, Germany to work on Raspian as custom pxe init script.
#!/bin/bash #!/bin/bash
watchdog=$(sudo cat /var/lib/dhcp/* | grep -a "option watchdog" | tail -1 | \ watchdog=$(sudo cat /var/lib/dhcp/* | grep -a "option watchdog" | tail -1 | \
awk '{for (i=3; i<=NF; i++) printf "%s ", $i}' | tr -d '";') awk '{for (i=3; i<=NF; i++) printf "%s ", $i}' | tr -d '";')
@@ -19,4 +16,6 @@ else
echo "ping = $ip" | sudo tee -a "$config_file" > /dev/null echo "ping = $ip" | sudo tee -a "$config_file" > /dev/null
done done
fi fi
sudo systemctl restart watchdog sudo systemctl restart watchdog
# Version 1.0:
# Created 2024 by Tim Eertmoed, Christian Hampp @ WiS IT-Solutions GmbH, Germany to work on Raspian as custom pxe init script.