hostname/SOURCES/nis-domainname

11 lines
166 B
Plaintext
Raw Normal View History

2022-05-17 10:38:14 +00:00
#!/usr/bin/bash
source /etc/sysconfig/network
if [ -n "${NISDOMAIN}" ] && [ -x /usr/bin/nisdomainname ]; then
nisdomainname ${NISDOMAIN}
exit $?
fi
exit 0