diff options
Diffstat (limited to 'src/scripts/12patch.sh')
-rw-r--r-- | src/scripts/12patch.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/scripts/12patch.sh b/src/scripts/12patch.sh index 7f072412f..326ba4ac3 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 |