File: setup.DEFAULT.sh

package info (click to toggle)
fai 6.5.1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 2,084 kB
  • sloc: sh: 6,774; perl: 5,665; makefile: 138
file content (7 lines) | stat: -rwxr-xr-x 155 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
#! /bin/bash

# use short hostname instead of FQDN
export HOSTNAME=${HOSTNAME%%.*}
if inside_nfsroot; then
  echo $HOSTNAME > /proc/sys/kernel/hostname
fi