1
0
mirror of synced 2026-05-03 06:48:46 +00:00
Files
xen-tools.xen-tools/etc/hook.d/50-setup-hostname
steve da442e8c70 2005-12-24 12:42:44 by steve
Migrated most of the commands to setup the new host into external hooks.
2005-12-24 12:42:44 +00:00

14 lines
218 B
Bash
Executable File

#!/bin/sh
#
# This script copies some files and values to the new image so
# that it knows its own name.
#
prefix=$1
hostname=$2
echo ${hostname} > ${prefix}/etc/hostname
echo ${hostname} > ${prefix}/etc/mailname