Added the utility scripts

This commit is contained in:
Michel-FK
2020-05-30 09:22:50 +02:00
parent 04d2c698b6
commit 09dc20c6e7
28 changed files with 927 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
#!/bin/sh
if [ "${#}" != "1" ]; then
echo "Usage: $0 seconds_before_shutdown"
exit 1
fi
nb_secs_to_wait=$1
# Wait $nb_secs_to_wait seconds to catch signal USR2
# If the signal is caught, then it means a process canceled this shutdown
sleep ${nbl_secs_to_wait}
# Too late to cancel: init shutdown
shutdown_funkey