summaryrefslogtreecommitdiff
path: root/scripts/live-bottom/42disable_apparmor
diff options
context:
space:
mode:
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