usr/bin/watchdog aktualisiert
This commit is contained in:
@@ -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 '";')
|
||||||
@@ -20,3 +17,5 @@ else
|
|||||||
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.
|
||||||
Reference in New Issue
Block a user