# Exit if system was not booted by live-boot
grep -qs boot=live /proc/cmdline || exit 0
-# Exit if the system was booted from an ISO image rather than a physical CD
-grep -qs find_iso= /proc/cmdline && exit 0
-
# Read configuration variable file if it is present
[ -r /etc/live.conf ] && . /etc/live.conf
if [ -z ${QUICKREBOOT} ]
then
+
+ # Exit if the system was booted from an ISO image rather than a physical CD
+ grep -qs find_iso= /proc/cmdline && return 0
# TODO: i18n
BOOT_DEVICE="$(get_boot_device)"