summaryrefslogtreecommitdiff
path: root/debian/init.d
diff options
context:
space:
mode:
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