1
0
mirror of synced 2026-01-30 21:16:31 +00:00
Files
xen-tools.xen-tools/etc/hook.d/55-create-dev
steve 7c26f68fd8 2006-05-23 12:26:13 by steve
Updated hooks to work with rpmstrap.
2006-05-23 12:26:13 +00:00

28 lines
401 B
Bash
Executable File

#!/bin/sh
#
# This script ensures that the new guest images have a nicely
# populated /dev directory.
#
# Steve
# --
# http://www.steve.org.uk/
prefix=$1
#
# Make sure we have a /dev directory and change into it.
#
mkdir -p ${prefix}/dev
cd ${prefix}/dev
#
# Make the devices.
#
if [ "${rpmstrap}" ]; then
./MAKEDEV console
./MAKEDEV null
./MAKEDEV zero
else
./MAKEDEV generic
fi