1
0
fai-configspace/hooks/setup.DEFAULT.sh

11 lines
227 B
Bash
Executable File

#! /bin/bash
# use short hostname instead of FQDN
# otherwise it gets fucked up
# FAI doesn't start
# FAI SUCKS
export HOSTNAME=${HOSTNAME%%.*}
if [ $do_init_tasks -eq 1 ]; then
echo $HOSTNAME > /proc/sys/kernel/hostname
fi