summaryrefslogtreecommitdiff
path: root/debian/init.d
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-09-23 14:46:24 +0200
committerDaniel Baumann <daniel@debian.org>2007-09-23 14:46:24 +0200
commita4f706a4bfe34ed6064c79d5ad7b3295fb0431cd (patch)
tree3d86573eacddaaa9d90931007227f3853beab849 /debian/init.d
parentc8e8ee4983b9bffa74138712eae61c94c34b2845 (diff)
downloadlive-boot-a4f706a4bfe34ed6064c79d5ad7b3295fb0431cd.tar.gz
live-boot-a4f706a4bfe34ed6064c79d5ad7b3295fb0431cd.zip
Adding casper 1.63+debian-3.
Diffstat (limited to 'debian/init.d')
-rw-r--r--debian/init.d5
1 files changed, 5 insertions, 0 deletions
diff --git a/debian/init.d b/debian/init.d
index bed1b89..424c024 100644
--- a/debian/init.d
+++ b/debian/init.d
@@ -1,5 +1,10 @@
#! /bin/sh
+# check for netboot
+if grep -qs netboot /proc/cmdline || grep -qsi root=/dev/nfs /proc/cmdline || grep -qsi root=/dev/cifs /proc/cmdline ; then
+ exit 0
+fi
+
grep -qs boot=casper /proc/cmdline || exit 0
# Try to cache everything we're likely to need after ejecting. This