aboutsummaryrefslogtreecommitdiffstats
path: root/systemd/fedora-domainname
diff options
context:
space:
mode:
Diffstat (limited to 'systemd/fedora-domainname')
-rwxr-xr-xsystemd/fedora-domainname9
1 files changed, 9 insertions, 0 deletions
diff --git a/systemd/fedora-domainname b/systemd/fedora-domainname
new file mode 100755
index 00000000..17f8ea8c
--- /dev/null
+++ b/systemd/fedora-domainname
@@ -0,0 +1,9 @@
+#!/usr/bin/bash
+. /etc/sysconfig/network
+
+if [ -n "${NISDOMAIN}" -a -x /usr/bin/domainname ]; then
+ domainname ${NISDOMAIN}
+ exit $?
+fi
+
+exit 0