X-Git-Url: https://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=remaster%2Fgrml-live-remaster;h=92ef074787923fea190bc082637be41d344ad7a7;hp=456dbab2f557e3f7283061d4e6981715067c1129;hb=f56cc0dac55553cae20708f122a247af787e8af5;hpb=f5b2bf83a696e5e9d625e867abd5a688ea56d5b2 diff --git a/remaster/grml-live-remaster b/remaster/grml-live-remaster index 456dbab..92ef074 100755 --- a/remaster/grml-live-remaster +++ b/remaster/grml-live-remaster @@ -21,14 +21,25 @@ fi set -e # exit on any error -VERSION='0.0.2' +VERSION='0.0.3' GRML_LIVE_EDITOR=${VISUAL:-${EDITOR:-vi}} # source core functions {{{ +if ! [ -r /etc/grml/lsb-functions ] || ! [ -r /etc/grml/script-functions ] ; then + echo "Error: could not read /etc/grml/lsb-functions and/or /etc/grml/script-functions." >&2 + echo "Error: $0 can run only in Grml live session. Exiting." >&2 + exit 1 +fi + . /etc/grml/lsb-functions . /etc/grml/script-functions # }}} +if ! isgrmlcd ; then + echo "Error: $0 can run only in Grml live session. Exiting." >&2 + exit 1 +fi + # make sure we have what we need {{{ check4progs mkisofs stat || exit 1