Use $TEMPLATE_DIRECTORY for checking for precense of bsd4grml.
authorMichael Prokop <mika@grml.org>
Thu, 7 Jan 2010 17:13:42 +0000 (18:13 +0100)
committerMichael Prokop <mika@grml.org>
Thu, 7 Jan 2010 17:13:42 +0000 (18:13 +0100)
grml-live

index 39952b7..2fa022a 100755 (executable)
--- a/grml-live
+++ b/grml-live
@@ -657,7 +657,7 @@ if [ "$ARCH" = i386 ] || [ "$ARCH" = amd64 ] ; then
          einfo "Skipping installation boot addons requested via \$NO_ADDONS."
          eend 0
       else
-         if ! [ -d /usr/share/grml-live/templates/boot/addons/bsd4grml ] ; then
+         if ! [ -d "$TEMPLATE_DIRECTORY"/boot/addons/bsd4grml ] ; then
            ewarn "Boot addons not found, skipping therefore. (Consider installing package grml-live-addons)" ; eend 0
          else
            # copy only files so we can handle bsd4grml on its own