summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-09-23 15:11:48 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 17:31:05 +0100
commita598c3922f95ebe965b4089e989679fca5f84933 (patch)
tree1cb0249d989af5870c5f8b2762a2abea5f1136e4 /scripts
parent95a72c82ab85be5e582b7ac21239165bce21e179 (diff)
downloadlive-boot-a598c3922f95ebe965b4089e989679fca5f84933.tar.gz
live-boot-a598c3922f95ebe965b4089e989679fca5f84933.zip
Adjusting to live-initramfs.
Diffstat (limited to 'scripts')
-rwxr-xr-x[-rw-r--r--]scripts/live-bottom/42disable_cups_apparmor37
1 files changed, 23 insertions, 14 deletions
diff --git a/scripts/live-bottom/42disable_cups_apparmor b/scripts/live-bottom/42disable_cups_apparmor
index 4a53444..588214e 100644..100755
--- a/scripts/live-bottom/42disable_cups_apparmor
+++ b/scripts/live-bottom/42disable_cups_apparmor
@@ -1,29 +1,38 @@
#!/bin/sh
-# workaround for AppArmor bug #131976
-PREREQ=""
-DESCRIPTION="Disabling AppArmor profile for Cups..."
+#set -e
-. /scripts/casper-functions
+# initramfs-tools header
+
+PREREQ=""
prereqs()
{
- echo "$PREREQ"
+ echo "${PREREQ}"
}
-case $1 in
-# get pre-requisites
-prereqs)
- prereqs
- exit 0
- ;;
+case "${1}" in
+ prereqs)
+ prereqs
+ exit 0
+ ;;
esac
-log_begin_msg "$DESCRIPTION"
+# live-initramfs header
+
+. /scripts/live-functions
+
+log_begin_msg "Disabling AppArmor profile for Cups..."
+
+# live-initramfs script
+
+# workaround for AppArmor bug #131976
PROFILE=/root/etc/apparmor.d/usr.sbin.cupsd
-if [ -e "$PROFILE" ]; then
- sed -i '/{/ s/{/flags=(complain) {/' $PROFILE
+
+if [ -e "$PROFILE" ]
+then
+ sed -i '/{/ s/{/flags=(complain) {/' $PROFILE
fi
log_end_msg