summaryrefslogtreecommitdiff
path: root/scripts/live-bottom/42disable_apparmor
diff options
context:
space:
mode:
authorChris Lamb <chris@chris-lamb.co.uk>2008-08-08 05:25:06 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 17:48:01 +0100
commit11f6195097148e7b5738ffe29dc16061b2cfd770 (patch)
tree0a1eb58c280bc8445d388df9db596054aff5085f /scripts/live-bottom/42disable_apparmor
parentcd1f0fd6b0973f46b522aa0d400f7c4eaaaafa49 (diff)
downloadlive-boot-11f6195097148e7b5738ffe29dc16061b2cfd770.tar.gz
live-boot-11f6195097148e7b5738ffe29dc16061b2cfd770.zip
Silence a number of annoying and distracting bootup messages.
Diffstat (limited to 'scripts/live-bottom/42disable_apparmor')
-rwxr-xr-xscripts/live-bottom/42disable_apparmor5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/live-bottom/42disable_apparmor b/scripts/live-bottom/42disable_apparmor
index fd49aa9..f87cab4 100755
--- a/scripts/live-bottom/42disable_apparmor
+++ b/scripts/live-bottom/42disable_apparmor
@@ -31,6 +31,9 @@ log_begin_msg "Disabling AppArmor (does not work with stacked file systems)"
# live-initramfs script
-chroot /root update-rc.d -f apparmor remove
+if [ -x /root/etc/init.d/apparmor ]
+then
+ chroot /root update-rc.d -f apparmor remove
+fi
log_end_msg