You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
livecd-rootfs/live-build/buildd/hooks/policy-rc.d.chroot

21 lines
425 B

#! /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 <peter@palfrader.org>
# License: <weasel> 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