Skip to content

Commit

Permalink
Prevent too many reboots
Browse files Browse the repository at this point in the history
  • Loading branch information
papampi committed Feb 25, 2019
1 parent 0663edf commit 0a6dd0a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions 7reboot
Expand Up @@ -2,6 +2,12 @@
export NVOC="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source ${NVOC}/1bash

# Prevent too many reboots
if (( REBOOT_TIMEOUT_IN_MINUTES < 60 ))
then
REBOOT_TIMEOUT_IN_MINUTES=60
fi

TIMEIN=$REBOOT_TIMEOUT_IN_MINUTES
TIMEOUT=$(($TIMEIN * 60))

Expand Down

0 comments on commit 0a6dd0a

Please sign in to comment.