X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=debian%2Flive-boot.init;h=bb079ee94c7f293dbfe670930aaba48e5b68a0eb;hb=aa63de5569e7b25017d35a293e29a3f7ddd0c737;hp=298295d2729d039f51120adeec9c233053d5460e;hpb=6fc8f78d026b31f4f4a3ee6507d726ddc37adbc8;p=live-boot-grml.git diff --git a/debian/live-boot.init b/debian/live-boot.init index 298295d..bb079ee 100644 --- a/debian/live-boot.init +++ b/debian/live-boot.init @@ -25,9 +25,6 @@ DO_SNAPSHOT=/sbin/live-snapshot # 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 @@ -153,6 +150,9 @@ do_stop () 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)"