#! /bin/sh set -e # Configure policy-rc.d. cat >/usr/local/sbin/policy-rc.d <<'EOF' #!/bin/sh # policy-rc.d script for chroots. # Copyright (c) 2007 Peter Palfrader # License: MIT, if you want one. while true; do case "$1" in -*) shift ;; makedev) exit 0;; *) echo "Not running services in chroot."; exit 101 ;; esac done EOF chmod 755 /usr/local/sbin/policy-rc.d