diff options
author | Lukas Nykryn <lnykryn@redhat.com> | 2013-07-12 13:03:45 +0200 |
---|---|---|
committer | Lukas Nykryn <lnykryn@redhat.com> | 2013-07-12 13:03:45 +0200 |
commit | 7cda43cae585d3a40e0a2d65992388623093e35f (patch) | |
tree | e1dcbaabd5c00b05784f8e34e5981415dafcbe16 /systemd/rhel-configure | |
parent | 4aa178674056dfc0930ad69dd77ec6490d9c5770 (diff) | |
download | initscripts-7cda43cae585d3a40e0a2d65992388623093e35f.tar initscripts-7cda43cae585d3a40e0a2d65992388623093e35f.tar.gz initscripts-7cda43cae585d3a40e0a2d65992388623093e35f.tar.bz2 initscripts-7cda43cae585d3a40e0a2d65992388623093e35f.tar.xz initscripts-7cda43cae585d3a40e0a2d65992388623093e35f.zip |
rename fedora-* to rhel-*
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 |