diff options
Diffstat (limited to 'systemd/rhel-configure')
-rwxr-xr-x | systemd/rhel-configure | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/systemd/rhel-configure b/systemd/rhel-configure new file mode 100755 index 00000000..64f535f6 --- /dev/null +++ b/systemd/rhel-configure @@ -0,0 +1,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 |