bd9c3be892f27dea8c6aeeba99e662efff430e87
[automated-distro-installer] / fai / config / hooks / setup.DEFAULT.sh
1 #! /bin/bash
2
3 # use short hostname instead of FQDN
4 export HOSTNAME=${HOSTNAME%%.*}
5 # n.b. use $action instead of $FAI_ACTION
6 # as the latter is apparently unset at this point in dirinstall
7 if [ "$action" = "dirinstall" ] ; then
8 :
9 else
10 echo $HOSTNAME > /proc/sys/kernel/hostname
11 fi