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

. /etc/init.d/functions

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

# Reread in network configuration data.
if [ -r /etc/hostname ]; then
    HOSTNAME=$(cat /etc/hostname)
    # Reset the hostname.
    action $"Resetting hostname ${HOSTNAME}: " hostname ${HOSTNAME}
fi