aboutsummaryrefslogtreecommitdiffstats
path: root/usr/lib/systemd/nis-domainname
diff options
context:
space:
mode:
Diffstat (limited to 'usr/lib/systemd/nis-domainname')
-rwxr-xr-xusr/lib/systemd/nis-domainname9
1 files changed, 9 insertions, 0 deletions
diff --git a/usr/lib/systemd/nis-domainname b/usr/lib/systemd/nis-domainname
new file mode 100755
index 00000000..5c934584
--- /dev/null
+++ b/usr/lib/systemd/nis-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