set -e
+if [ ! -e /usr/sbin/update-initramfs.initramfs-tools ]
+then
+ echo "E: /usr/sbin/update-initramfs.initramfs-tools - command not found"
+ echo "E: On Debian based systems, update-initramfs from initramfs-tools"
+ echo "E: can be installed with:"
+ echo "E: apt-get install initramfs-tools"
+
+ exit 1
+fi
+
if grep -qs "boot=live" /proc/cmdline
then
if grep -qs "\/live\/image" /proc/mounts
set -e
+if [ ! -e /usr/bin/uptime.procps ]
+then
+ echo "E: /usr/bin/uptime.procps - command not found"
+ echo "E: On Debian based systems, uptime from procps"
+ echo "E: can be installed with:"
+ echo "E: apt-get install procps"
+
+ exit 1
+fi
+
_UPTIME="$(/usr/bin/uptime.procps)"
_DATE_HOST="$(date +%s)"