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:
parent
64cdef2c18
commit
80c32de8b4
1 changed files with 10 additions and 0 deletions
|
@ -8,6 +8,16 @@
|
||||||
source _common.sh
|
source _common.sh
|
||||||
source /usr/share/yunohost/helpers
|
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
|
# INSTALL DEPENDENCIES
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue