aboutsummaryrefslogtreecommitdiffstats
path: root/systemd/fedora-configure
blob: d1e4dbd346be549907dd09bdd596becd52905b91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
#
# Configure machine if necessary.

. /etc/init.d/functions

if [ -x /usr/bin/plymouth ]; then
    /usr/bin/plymouth quit
fi
   
if [ -x /usr/sbin/firstboot ]; then
    /usr/sbin/firstboot
fi

# Reread in network configuration data.
if [ -f /etc/sysconfig/network ]; then
    . /etc/sysconfig/network
    [ -r /etc/hostname ] && HOSTNAME=$(cat /etc/hostname)

    # Reset the hostname.
    action $"Resetting hostname ${HOSTNAME}: " hostname ${HOSTNAME}
fi