15-initsetup: warn if /etc/runlevel.conf does not exist
authorMichael Prokop <mika@grml.org>
Tue, 26 May 2009 08:42:05 +0000 (10:42 +0200)
committerMichael Prokop <mika@grml.org>
Tue, 26 May 2009 08:42:05 +0000 (10:42 +0200)
etc/grml/fai/config/scripts/GRMLBASE/15-initsetup

index 72bd771..a2f2417 100755 (executable)
@@ -9,6 +9,12 @@
 set -u
 set -e
 
+if ! [ -r /etc/runlevel.conf ] ; then
+   echo 'Warning: /etc/runlevel.conf does not exist...'
+   echo '... assuming we do not have file-rc, skipping 15-initsetup'
+   exit 0
+fi
+
 # keep a backup of the original runlevel.conf file for reference
 # but only save it as /etc/runlevel.conf.original if it's not the
 # according livecd version, this should prevent from overriding