aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/rcS.d/010-hostname.sh
blob: 713a3a37cf7110fbe5ad764e009c943fb0ecc52a (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
HOSTNAME=$(/bin/hostname)

if [ -f /etc/sysconfig/network ]; then
    . /etc/sysconfig/network
fi
if [ -z "$HOSTNAME" -o "$HOSTNAME" = "(none)" ]; then
    HOSTNAME=localhost
fi
hostname ${HOSTNAME}
: