-if [ ! -d /etc/grml -o ! -d /live ]; then
- echo "Error: $0 has to be run from a Grml live session. Exiting."
- exit 1
+# 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