15-initsetup: improve check for empty GRML_NAME variable to make it compatible with...
authorMichael Prokop <mika@grml.org>
Fri, 9 Jul 2010 12:32:55 +0000 (14:32 +0200)
committerMichael Prokop <mika@grml.org>
Fri, 9 Jul 2010 12:32:55 +0000 (14:32 +0200)
Signed-off-by: Michael Prokop <mika@grml.org>
etc/grml/fai/config/scripts/GRMLBASE/15-initsetup

index 381c988..72483ea 100755 (executable)
@@ -9,7 +9,7 @@
 set -u
 set -e
 
 set -u
 set -e
 
-[ -z "$GRML_NAME" ] && GRML_NAME=grml
+GRML_NAME="${GRML_NAME:-grml}"
 
 if ! [ -r $target/etc/runlevel.conf ] ; then
    echo 'Warning: /etc/runlevel.conf does not exist...'
 
 if ! [ -r $target/etc/runlevel.conf ] ; then
    echo 'Warning: /etc/runlevel.conf does not exist...'