aboutsummaryrefslogtreecommitdiffstats
path: root/systemd/fedora-configure
diff options
context:
space:
mode:
Diffstat (limited to 'systemd/fedora-configure')
-rwxr-xr-xsystemd/fedora-configure21
1 files changed, 21 insertions, 0 deletions
diff --git a/systemd/fedora-configure b/systemd/fedora-configure
new file mode 100755
index 00000000..e6779fed
--- /dev/null
+++ b/systemd/fedora-configure
@@ -0,0 +1,21 @@
+#!/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
+
+ # Reset the hostname.
+ action $"Resetting hostname ${HOSTNAME}: " hostname ${HOSTNAME}
+fi