summaryrefslogtreecommitdiff
path: root/src/scripts/12patch.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-09-23 10:04:36 +0200
committerDaniel Baumann <daniel@debian.org>2007-09-23 10:04:36 +0200
commitb7d07a269e4a2d1bac730e177bc6826a7cd450d5 (patch)
tree62003f7571c98e4dab5e1ed2628e98164b98a914 /src/scripts/12patch.sh
parent03c8a20c280c6888b4d274a3095013064b94e99b (diff)
downloadlive-build-b7d07a269e4a2d1bac730e177bc6826a7cd450d5.zip
live-build-b7d07a269e4a2d1bac730e177bc6826a7cd450d5.tar.gz
Adding live-package 0.99.14-1.
Diffstat (limited to 'src/scripts/12patch.sh')
-rw-r--r--src/scripts/12patch.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/scripts/12patch.sh b/src/scripts/12patch.sh
index 7f07241..326ba4a 100644
--- a/src/scripts/12patch.sh
+++ b/src/scripts/12patch.sh
@@ -35,7 +35,7 @@ Patch_runlevel ()
case "${1}" in
apply)
# Create init policy
- echo > "${LIVE_CHROOT}"/usr/sbin/policy-rc.d <<EOF
+ cat > "${LIVE_CHROOT}"/usr/sbin/policy-rc.d <<EOF
#!/bin/sh
exit 101
@@ -73,6 +73,14 @@ Patch_network ()
echo "Acquire::http::Proxy \"${LIVE_PROXY_HTTP}\";" >> "${LIVE_CHROOT}"/etc/apt/apt.conf
fi
+ # Configure recommends
+ if [ "${LIVE_RECOMMENDS}" = "yes" ]
+ then
+ echo "Aptitude::Recommends-Important \"true\";" >> "${LIVE_CHROOT}"/etc/apt/apt.conf
+ else
+ echo "Aptitude::Recommends-Important \"false\";" >> "${LIVE_CHROOT}"/etc/apt/apt.conf
+ fi
+
# Save host lookup table
if [ -f "${LIVE_CHROOT}"/etc/hosts ]
then