Fix small harmless bug - variable WAIT without default value.

This commit is contained in:
Slawomir Wojciech Wojtczak (vermaden) 2015-02-05 16:48:38 +01:00
parent 347796a242
commit d4fec94dc0
1 changed files with 2 additions and 1 deletions

View File

@ -123,7 +123,7 @@ EOF
if [ "${1}" = "--version" ]
then
echo "automount 1.5.1 2014/08/06"
echo "automount 1.5.3 2015/02/05"
exit 0
fi
@ -243,6 +243,7 @@ __wait_for_boot() {
local BOOTTIME=$( sysctl -n kern.boottime | awk -F',' '{print $1}' | awk '{print $NF }' )
local CURRTIME=$( date +%s )
local UPTIME=$(( ${CURRTIME} - ${BOOTTIME} ))
WAIT=0
while [ ${UPTIME} -lt ${BOOTDELAY} ]
do
sleep 1