15-initsetup: warn if /etc/runlevel.conf does not exist
[grml-live.git] / 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