Document state of Debian package 3.9-5
This commit is contained in:
44
hooks/centos-4/15-setup-arch
Normal file
44
hooks/centos-4/15-setup-arch
Normal file
@@ -0,0 +1,44 @@
|
||||
#!/bin/sh
|
||||
|
||||
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
|
||||
|
||||
|
||||
#
|
||||
# Record arch, if present.
|
||||
#
|
||||
if [ -d $prefix/etc/rpm ]; then
|
||||
|
||||
logMessage Found /etc/rpm
|
||||
|
||||
#
|
||||
# If i386 then record this
|
||||
#
|
||||
if [ "$arch" = "i386" ]; then
|
||||
echo "i386-fedora-linux-gnu" >> $prefix/etc/rpm/platform
|
||||
fi
|
||||
else
|
||||
|
||||
logMessage Failed to find /etc/rpm
|
||||
|
||||
fi
|
||||
|
||||
#
|
||||
# Log our finish
|
||||
#
|
||||
logMessage Script $0 finished
|
||||
|
||||
@@ -91,7 +91,7 @@ if [ -z "${dhcp}" ]; then
|
||||
|
||||
logMessage Adding ${hostname} and ${name} to /etc/hosts on the host
|
||||
|
||||
echo "${ip1} ${hostname} ${name}" >> /etc/hosts
|
||||
echo "${ip1} ${hostname} ${name}" >> /etc/hosts
|
||||
|
||||
|
||||
#
|
||||
|
||||
44
hooks/centos-5/15-setup-arch
Normal file
44
hooks/centos-5/15-setup-arch
Normal file
@@ -0,0 +1,44 @@
|
||||
#!/bin/sh
|
||||
|
||||
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
|
||||
|
||||
|
||||
#
|
||||
# Record arch, if present.
|
||||
#
|
||||
if [ -d $prefix/etc/rpm ]; then
|
||||
|
||||
logMessage Found /etc/rpm
|
||||
|
||||
#
|
||||
# If i386 then record this
|
||||
#
|
||||
if [ "$arch" = "i386" ]; then
|
||||
echo "i386-fedora-linux-gnu" >> $prefix/etc/rpm/platform
|
||||
fi
|
||||
else
|
||||
|
||||
logMessage Failed to find /etc/rpm
|
||||
|
||||
fi
|
||||
|
||||
#
|
||||
# Log our finish
|
||||
#
|
||||
logMessage Script $0 finished
|
||||
|
||||
@@ -91,8 +91,7 @@ if [ -z "${dhcp}" ]; then
|
||||
|
||||
logMessage Adding ${hostname} and ${name} to /etc/hosts on the host
|
||||
|
||||
echo "${ip1} ${hostname} ${name}" >> /etc/hosts
|
||||
|
||||
echo "${ip1} ${hostname} ${name}" >> /etc/hosts
|
||||
|
||||
#
|
||||
# If we've updated the /etc/hosts file on the host machine
|
||||
|
||||
@@ -91,7 +91,7 @@ if [ -z "${dhcp}" ]; then
|
||||
|
||||
logMessage Adding ${hostname} and ${name} to /etc/hosts on the host
|
||||
|
||||
echo "${ip1} ${hostname} ${name}" >> /etc/hosts
|
||||
echo "${ip1} ${hostname} ${name}" >> /etc/hosts
|
||||
|
||||
|
||||
#
|
||||
|
||||
@@ -91,7 +91,7 @@ if [ -z "${dhcp}" ]; then
|
||||
|
||||
logMessage Adding ${hostname} and ${name} to /etc/hosts on the host
|
||||
|
||||
echo "${ip1} ${hostname} ${name}" >> /etc/hosts
|
||||
echo "${ip1} ${hostname} ${name}" >> /etc/hosts
|
||||
|
||||
#
|
||||
# If we've updated the /etc/hosts file on the host machine
|
||||
|
||||
@@ -90,7 +90,8 @@ if [ -z "${dhcp}" ]; then
|
||||
|
||||
logMessage Adding ${hostname} and ${name} to /etc/hosts on the host
|
||||
|
||||
echo "${ip1} ${hostname} ${name}" >> /etc/hosts
|
||||
echo "${ip1} ${hostname} ${name}" >> /etc/hosts
|
||||
|
||||
#
|
||||
# If we've updated the /etc/hosts file on the host machine
|
||||
# and there is an installation of dnsmasq installed then
|
||||
|
||||
44
hooks/fedora-core-6/15-setup-arch
Normal file
44
hooks/fedora-core-6/15-setup-arch
Normal file
@@ -0,0 +1,44 @@
|
||||
#!/bin/sh
|
||||
|
||||
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
|
||||
|
||||
|
||||
#
|
||||
# Record arch, if present.
|
||||
#
|
||||
if [ -d $prefix/etc/rpm ]; then
|
||||
|
||||
logMessage Found /etc/rpm
|
||||
|
||||
#
|
||||
# If i386 then record this
|
||||
#
|
||||
if [ "$arch" = "i386" ]; then
|
||||
echo "i386-fedora-linux-gnu" >> $prefix/etc/rpm/platform
|
||||
fi
|
||||
else
|
||||
|
||||
logMessage Failed to find /etc/rpm
|
||||
|
||||
fi
|
||||
|
||||
#
|
||||
# Log our finish
|
||||
#
|
||||
logMessage Script $0 finished
|
||||
|
||||
@@ -91,7 +91,8 @@ if [ -z "${dhcp}" ]; then
|
||||
|
||||
logMessage Adding ${hostname} and ${name} to /etc/hosts on the host
|
||||
|
||||
echo "${ip1} ${hostname} ${name}" >> /etc/hosts
|
||||
echo "${ip1} ${hostname} ${name}" >> /etc/hosts
|
||||
|
||||
|
||||
#
|
||||
# If we've updated the /etc/hosts file on the host machine
|
||||
|
||||
@@ -64,7 +64,7 @@ cat <<E_O_FSTAB > ${prefix}/etc/fstab
|
||||
#
|
||||
# <file system> <mount point> <type> <options> <dump> <pass>
|
||||
proc /proc proc defaults 0 0
|
||||
devpts /dev/pts devpts rw,noexec,nosuid,gid=5,mode=620 0 0
|
||||
devpts /dev/pts devpts rw,noexec,nosuid,gid=5,mode=620 0 0
|
||||
E_O_FSTAB
|
||||
for part in `seq 1 ${NUMPARTITIONS}`; do
|
||||
eval "PARTITION=\"\${PARTITION${part}}\""
|
||||
|
||||
@@ -98,7 +98,7 @@ if [ -z "${dhcp}" ]; then
|
||||
|
||||
logMessage Adding ${hostname} and ${name} to /etc/hosts on the host
|
||||
|
||||
echo "${ip1} ${hostname} ${name}" >> /etc/hosts
|
||||
echo "${ip1} ${hostname} ${name}" >> /etc/hosts
|
||||
|
||||
#
|
||||
# If we've updated the /etc/hosts file on the host machine
|
||||
|
||||
Reference in New Issue
Block a user