projects
/
grml-live-grml.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
5824294
)
15-initsetup: warn if /etc/runlevel.conf does not exist
author
Michael Prokop
<mika@grml.org>
Tue, 26 May 2009 08:42:05 +0000
(10:42 +0200)
committer
Michael Prokop
<mika@grml.org>
Tue, 26 May 2009 08:42:05 +0000
(10:42 +0200)
etc/grml/fai/config/scripts/GRMLBASE/15-initsetup
patch
|
blob
|
history
diff --git
a/etc/grml/fai/config/scripts/GRMLBASE/15-initsetup
b/etc/grml/fai/config/scripts/GRMLBASE/15-initsetup
index
72bd771
..
a2f2417
100755
(executable)
--- a/
etc/grml/fai/config/scripts/GRMLBASE/15-initsetup
+++ b/
etc/grml/fai/config/scripts/GRMLBASE/15-initsetup
@@
-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