1
0
mirror of synced 2026-02-10 17:49:53 +00:00
Files
xen-tools.xen-tools/hooks/karmic/01-disable-daemons
Dmitry Nedospasov 0ecc697a82 1. Added pygrub support to the ubuntu scripts
- Hardy still not working
2. Added karmic support
	- Working fully
3. Edited Makefile to install karmic hooks
2010-04-17 14:41:18 +02:00

55 lines
774 B
Bash
Executable File

#!/bin/sh
#
# This script ensures that daemons will not be started inside our
# chroot() installation.
#
# Steve
# --
# http://www.steve.org.uk/
prefix=$1
#
# Source our common functions
#
if [ -e /usr/lib/xen-tools/common.sh ]; then
. /usr/lib/xen-tools/common.sh
else
. ./hooks/common.sh
fi
#
# Log our start
#
logMessage Script $0 starting
#
# Make sure we have a directory.
#
if [ ! -d "${prefix}/usr/sbin" ]; then
mkdir -p "${prefix}/usr/sbin"
logMessage "created missing directory: ${prefix}/usr/sbin"
fi
#
# Add the script.
#
echo '#!/bin/sh' > ${prefix}/usr/sbin/policy-rc.d
echo 'exit 101' >> ${prefix}/usr/sbin/policy-rc.d
chmod 755 ${prefix}/usr/sbin/policy-rc.d
#
# Log our finish
#
logMessage Script $0 finished.