diff options
author | Antoine Ginies <aginies@mandriva.com> | 2004-01-20 16:43:24 +0000 |
---|---|---|
committer | Antoine Ginies <aginies@mandriva.com> | 2004-01-20 16:43:24 +0000 |
commit | 07c621deb6e1e48a626079e5a6abaea69030f4cb (patch) | |
tree | 7a33b7889d2e376526e8b2f705d1cd14db2c9aaf /nisautofs_wizard/Nisautofs.pm | |
parent | d5837437bccaef17a7cb97b6cfc689f9cf7d842c (diff) | |
download | drakwizard-07c621deb6e1e48a626079e5a6abaea69030f4cb.tar drakwizard-07c621deb6e1e48a626079e5a6abaea69030f4cb.tar.gz drakwizard-07c621deb6e1e48a626079e5a6abaea69030f4cb.tar.bz2 drakwizard-07c621deb6e1e48a626079e5a6abaea69030f4cb.tar.xz drakwizard-07c621deb6e1e48a626079e5a6abaea69030f4cb.zip |
add a nisdomain test
Diffstat (limited to 'nisautofs_wizard/Nisautofs.pm')
-rw-r--r-- | nisautofs_wizard/Nisautofs.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nisautofs_wizard/Nisautofs.pm b/nisautofs_wizard/Nisautofs.pm index 7e45adbd..19ff4f2c 100644 --- a/nisautofs_wizard/Nisautofs.pm +++ b/nisautofs_wizard/Nisautofs.pm @@ -58,6 +58,12 @@ my $o = { }, needed_rpm => [ 'ypbind', 'nfs-utils', 'yp-tools', 'nfs-utils-clients' ], defaultimage => "/usr/share/wizards/dns_wizard/images/NIS.png" + init => sub { + if (member($NISDOMAIN, qw(localdomain (none)))) { + return (0, N("You need to readjust your NIS domainname. For a NIS server you need a correct NIS domainname, not egal to localdomain or none. Add NISDOMAIN=your_nis_domain in /etc/sysconfig/network file, and do a: nisdomainname your_nis_domain.")) + } + 1 + }, }; my %level = ( |