Make all shell scripts using /bin/bash instead /bin/sh to be able to FAI's environment.
[grml-live.git] / etc / grml / fai / config / scripts / GRMLBASE / 15-initsetup
index 381c988..e4b28f0 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 # Filename:      /etc/grml/fai/config/scripts/GRMLBASE/15-initsetup
 # Purpose:       configure init system for the live-system
 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
@@ -9,7 +9,7 @@
 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...'