deployment.sh: to inform user about time it took to execute deployment script

From: Michael Prokop <mprokop@sipwise.com>
ksolomko/vlan
Michael Prokop 14 years ago
parent 92fce76e66
commit 4e20b525c0

@ -21,6 +21,8 @@ set -e
export LC_ALL=C
export LANG=C
start_seconds=$(cut -d . -f 1 /proc/uptime)
# defaults
TARGET=/mnt
PRO_EDITION=false
@ -923,6 +925,9 @@ to boot from hard disk by default or
to boot from USB storage by default."
fi
[ -n "$start_seconds" ] && SECONDS="$[$(cut -d . -f 1 /proc/uptime)-$start_seconds]" || SECONDS="unknown"
echo "Successfully finished deployment process [$(date) - running ${SECONDS} seconds]"
echo "Do you want to [r]eboot or [h]alt the system now? (Press any other key to cancel.)"
unset a
read a

Loading…
Cancel
Save