hostname/nis-domainname
Petr Šabata 55962bea32 RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/hostname#36b544af16c694dbc908ce494ed088b454ab2298
2020-10-15 12:25:52 +02: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