diff options
author | Daniel Baumann <daniel@debian.org> | 2007-09-23 10:04:21 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2007-09-23 10:04:21 +0200 |
commit | c9462fd48b0d4fb9968641e46c3350fb5e9986a2 (patch) | |
tree | e14a49ee47996090c87a23c86d2e2c2ac877a70e /src/scripts/12patch.sh | |
parent | fb35af8aa207ef5377022028d9e2b497445fb349 (diff) | |
download | vyos-live-build-c9462fd48b0d4fb9968641e46c3350fb5e9986a2.tar.gz vyos-live-build-c9462fd48b0d4fb9968641e46c3350fb5e9986a2.zip |
Adding live-package 0.99.4-1.
Diffstat (limited to 'src/scripts/12patch.sh')
-rw-r--r-- | src/scripts/12patch.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/scripts/12patch.sh b/src/scripts/12patch.sh index 16be344f1..873865c36 100644 --- a/src/scripts/12patch.sh +++ b/src/scripts/12patch.sh @@ -27,6 +27,30 @@ Patch_chroot () esac } +Patch_runlevel () +{ + # Disabling all init scripts with a blocking policy as in + # /usr/share/doc/sysv-rc/README.policy-rc.d.gz. + + case "${1}" in + apply) + # Create init policy + echo > "${LIVE_CHROOT}"/usr/sbin/policy-rc.d <<EOF +#!/bin/sh + +exit 101 +EOF + + chmod 0755 "${LIVE_CHROOT}"/usr/sbin/policy-rc.d + ;; + + deapply) + # Removing init policy + rm -f "${LIVE_CHROOT}"/usr/sbin/policy-rc.d + ;; + esac +} + Patch_network () { # Packages which are manually installed inside the chroot are installed |