hostname/SOURCES/nis-domainname
2022-05-17 15:59:01 +00:00

11 lines
166 B
Bash
Executable File

#!/usr/bin/bash
source /etc/sysconfig/network
if [ -n "${NISDOMAIN}" ] && [ -x /usr/bin/nisdomainname ]; then
nisdomainname ${NISDOMAIN}
exit $?
fi
exit 0