aboutsummaryrefslogtreecommitdiffstats
path: root/systemd/fedora-configure
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2010-10-15 16:25:31 -0400
committerBill Nottingham <notting@redhat.com>2010-10-15 16:25:31 -0400
commit59b2f505ea603ef65823615711b5adfa87795f41 (patch)
treed5b42a97c7c6e964d920c51f39d890313b997b09 /systemd/fedora-configure
parent675389f11ffaab590e9dedabc821e33745e3eb5c (diff)
downloadinitscripts-59b2f505ea603ef65823615711b5adfa87795f41.tar
initscripts-59b2f505ea603ef65823615711b5adfa87795f41.tar.gz
initscripts-59b2f505ea603ef65823615711b5adfa87795f41.tar.bz2
initscripts-59b2f505ea603ef65823615711b5adfa87795f41.tar.xz
initscripts-59b2f505ea603ef65823615711b5adfa87795f41.zip
Add split-out bits of rc.sysinit and associated service files. Remove sysinit.service. Based on work by Harald Hoyer (<harald@redhat.com>)
sysinit-hack/unhack will be removed once the net hotplug stuff is fixed to not require this.
Diffstat (limited to 'systemd/fedora-configure')
-rwxr-xr-xsystemd/fedora-configure25
1 files changed, 25 insertions, 0 deletions
diff --git a/systemd/fedora-configure b/systemd/fedora-configure
new file mode 100755
index 00000000..3a8c6dc4
--- /dev/null
+++ b/systemd/fedora-configure
@@ -0,0 +1,25 @@
+#!/bin/bash
+#
+# Configure machine if necessary.
+
+. /etc/init.d/functions
+
+if [ -f /.unconfigured ]; then
+ if [ -x /usr/bin/rhgb-client ] && /usr/bin/rhgb-client --ping ; then
+ /usr/bin/rhgb-client --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
+
+ rm -f /.unconfigured
+fi