1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/watchdog_ynh.git synced 2024-06-22 05:42:53 +02:00

add ardware watchdog device presence check

This commit is contained in:
OniriCorpe 2024-02-21 04:40:45 +01:00
parent 64cdef2c18
commit 80c32de8b4

View file

@ -8,6 +8,16 @@
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# WATCHDOG DEVICE CHECK
#=================================================
ynh_script_progression --message="Checking the hardware watchdog device presence..."
if [ ! -f /dev/watchdog ]; then
ynh_die --message="Your server doesn't seem to have a '/dev/watchdog' device, this certainly means that it has no hardware watchdog device. However, this package is only relevant if such a device exists, we're sorry."
fi
#=================================================
# INSTALL DEPENDENCIES
#=================================================