1
0
mirror of synced 2026-04-25 03:54:31 +00:00
Files
xen-tools.xen-tools/hooks/ubuntu/10-disable-tls
steve f8cc7067c2 2006-06-18 17:44:07 by steve
Added support for ubuntu, so far only the --dist=dapper works, but the
 sources list is setup correctly and everything else is setup as well
 as Debian is.
2006-06-18 17:44:08 +00:00

50 lines
649 B
Bash
Executable File

#!/bin/sh
#
# This script disables TLS on the new image.
#
# 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
#
# Disable TLS and create an empty directory in its place
#
mv ${prefix}/lib/tls ${prefix}/lib/tls.disabled
mkdir ${prefix}/lib/tls
#
# For sid + etch systems install libc6-xen
#
case "${dist}" in
etch|sid)
installDebianPackage ${prefix} libc6-xen
;;
esac
#
# Log our finish
#
logMessage Script $0 finished