From 9dd38dbc15ef070492e019bbabedd88564c3ef8d Mon Sep 17 00:00:00 2001 From: Tim Eertmoed Date: Wed, 16 Oct 2024 11:11:32 +0200 Subject: [PATCH] usr/bin/watchdog aktualisiert --- usr/bin/watchdog | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/usr/bin/watchdog b/usr/bin/watchdog index cdd268f..23e3522 100644 --- a/usr/bin/watchdog +++ b/usr/bin/watchdog @@ -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 watchdog=$(sudo cat /var/lib/dhcp/* | grep -a "option watchdog" | tail -1 | \ 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 done fi -sudo systemctl restart watchdog \ No newline at end of file +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. \ No newline at end of file