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