+++ /dev/null
-Try adding the top-level object, which may be missing, but don't worry if
-the add operation fails.
---- MigrationTools-26/migrate_all_online.sh Wed Oct 25 16:27:02 2000
-+++ MigrationTools-26/migrate_all_online.sh Wed Oct 25 16:30:11 2000
-@@ -179,5 +179,30 @@
- echo "Migrating netgroups (by host)..."
- $PERL -I${INSTDIR} ${INSTDIR}migrate_netgroup_byhost.pl $ETC_NETGROUP >> $DB
-
-+# Try to add the top-level object, because it's usually missing.
-+TYPE=`echo $LDAP_BASEDN | cut -f1 -d=`
-+TOP=`echo $LDAP_BASEDN | cut -f1 -d, | cut -f2 -d=`
-+CLASS=$TYPE
-+if [ "$CLASS" = "dc" ] ; then
-+ CLASS=domain
-+elif [ "$CLASS" = "o" ] ; then
-+ CLASS=organization
-+elif [ "$CLASS" = "l" ] ; then
-+ CLASS=locality
-+elif [ "$CLASS" = "c" ] ; then
-+ CLASS=country
-+elif [ "$CLASS" = "nismapname" ] ; then
-+ CLASS=nisMap
-+elif [ "$CLASS" = "cn" ] ; then
-+ CLASS=container
-+fi
-+
-+cat << EOF | $LDAPADD -h $LDAPHOST -D "$LDAP_BINDDN" -x -w "$LDAP_BINDCRED"
-+dn: $LDAP_BASEDN
-+$TYPE: $TOP
-+objectClass: top
-+objectClass: $CLASS
-+EOF
-+
- echo "Importing into LDAP..."
-
+++ /dev/null
-Only in MigrationTools-46: .migrate_common.ph.swp
-Common subdirectories: MigrationTools-46-orig/ads and MigrationTools-46/ads
-diff -u MigrationTools-46-orig/migrate_common.ph MigrationTools-46/migrate_common.ph
---- MigrationTools-46-orig/migrate_common.ph 2004-10-28 10:38:46.000000000 +0200
-+++ MigrationTools-46/migrate_common.ph 2005-08-31 21:42:03.000000000 +0200
-@@ -83,7 +83,7 @@
- ##### CUT HERE #####
- # where /etc/mail/ldapdomains contains names of ldap_routed
- # domains (similiar to MASQUERADE_DOMAIN_FILE).
--$DEFAULT_MAIL_HOST = "mail.padl.com";
-+# $DEFAULT_MAIL_HOST = "mail.padl.com";
-
- # turn this on to support more general object clases
- # such as person.
-@@ -120,10 +120,10 @@
- }
-
- # Default Kerberos realm
--if ($EXTENDED_SCHEMA) {
-- $DEFAULT_REALM = $DEFAULT_MAIL_DOMAIN;
-- $DEFAULT_REALM =~ tr/a-z/A-Z/;
--}
-+#if ($EXTENDED_SCHEMA) {
-+# $DEFAULT_REALM = $DEFAULT_MAIL_DOMAIN;
-+# $DEFAULT_REALM =~ tr/a-z/A-Z/;
-+#}
-
- if (-x "/usr/sbin/revnetgroup") {
- $REVNETGROUP = "/usr/sbin/revnetgroup";
PATH=$PATH:.
export PATH
-+INSTDIR=/usr/share/MigrationTools/
++INSTDIR=/usr/share/openldap/migration/
TMPDIR="/tmp"
ETC_PASSWD="$TMPDIR/passwd.$$.ldap"
PATH=$PATH:.
export PATH
-+INSTDIR=/usr/share/MigrationTools/
++INSTDIR=/usr/share/openldap/migration/
TMPDIR="/tmp"
ETC_PASSWD="$TMPDIR/passwd.$$.ldap"
PATH=$PATH:.
export PATH
-+INSTDIR=/usr/share/MigrationTools/
++INSTDIR=/usr/share/openldap/migration/
TMPDIR="/tmp"
ETC_PASSWD="$TMPDIR/passwd.$$.ldap"
PATH=$PATH:.
export PATH
-
-+INSTDIR=/usr/share/MigrationTools/
++INSTDIR=/usr/share/openldap/migration/
TMPDIR="/tmp"
ETC_PASSWD="$TMPDIR/passwd.$$.ldap"
PATH=$PATH:/usr/lib/nis:.
export PATH
-+INSTDIR=/usr/share/MigrationTools/
++INSTDIR=/usr/share/openldap/migration/
TMPDIR="/tmp"
ETC_PASSWD="$TMPDIR/passwd.$$.ldap"
PATH=$PATH:.
export PATH
-
-+INSTDIR=/usr/share/MigrationTools/
++INSTDIR=/usr/share/openldap/migration/
TMPDIR="/tmp"
ETC_PASSWD="$TMPDIR/passwd.$$.ldap"
# Luke Howard <lukeh@padl.com> April 1997
#
-+INSTDIR=/usr/share/MigrationTools/
++INSTDIR=/usr/share/openldap/migration/
DB="/tmp/nis.$$.ldif"
if [ "X$ETC_ALIASES" = "X" ]; then
SHELL=/bin/sh
export SHELL
-+INSTDIR=/usr/share/MigrationTools/
++INSTDIR=/usr/share/openldap/migration/
+
DB=/tmp/nis.$$.ldif
#
-require 'migrate_common.ph';
-+require '/usr/share/MigrationTools/migrate_common.ph';
++require '/usr/share/openldap/migration/migrate_common.ph';
$PROGRAM = "migrate_aliases.pl";
$NAMINGCONTEXT = &getsuffix($PROGRAM);
#
-require 'migrate_common.ph';
-+require '/usr/share/MigrationTools/migrate_common.ph';
++require '/usr/share/openldap/migration/migrate_common.ph';
$PROGRAM = "migrate_automount.pl";
$NAMINGCONTEXT = &getsuffix($PROGRAM);
#
-require 'migrate_common.ph';
-+require '/usr/share/MigrationTools/migrate_common.ph';
++require '/usr/share/openldap/migration/migrate_common.ph';
$PROGRAM = "migrate_base.pl";
$NAMINGCONTEXT = &getsuffix($PROGRAM);
#
-require 'migrate_common.ph';
-+require '/usr/share/MigrationTools/migrate_common.ph';
++require '/usr/share/openldap/migration/migrate_common.ph';
$PROGRAM = "migrate_fstab.pl";
$NAMINGCONTEXT = &getsuffix($PROGRAM);
#
-require 'migrate_common.ph';
-+require '/usr/share/MigrationTools/migrate_common.ph';
++require '/usr/share/openldap/migration/migrate_common.ph';
$PROGRAM = "migrate_group.pl";
$NAMINGCONTEXT = &getsuffix($PROGRAM);
#
-require 'migrate_common.ph';
-+require '/usr/share/MigrationTools/migrate_common.ph';
++require '/usr/share/openldap/migration/migrate_common.ph';
$PROGRAM = "migrate_hosts.pl";
$NAMINGCONTEXT = &getsuffix($PROGRAM);
#
-require 'migrate_common.ph';
-+require '/usr/share/MigrationTools/migrate_common.ph';
++require '/usr/share/openldap/migration/migrate_common.ph';
$PROGRAM = "migrate_netgroup.pl";
$NAMINGCONTEXT = &getsuffix($PROGRAM);
#
-require 'migrate_common.ph';
-+require '/usr/share/MigrationTools/migrate_common.ph';
++require '/usr/share/openldap/migration/migrate_common.ph';
$PROGRAM = "migrate_netgroup_byhost.pl";
$NAMINGCONTEXT = &getsuffix($PROGRAM);
#
-require 'migrate_common.ph';
-+require '/usr/share/MigrationTools/migrate_common.ph';
++require '/usr/share/openldap/migration/migrate_common.ph';
$PROGRAM = "migrate_netgroup_byuser.pl";
$NAMINGCONTEXT = &getsuffix($PROGRAM);
#
-require 'migrate_common.ph';
-+require '/usr/share/MigrationTools/migrate_common.ph';
++require '/usr/share/openldap/migration/migrate_common.ph';
$PROGRAM = "migrate_networks.pl";
$NAMINGCONTEXT = &getsuffix($PROGRAM);
#
-require 'migrate_common.ph';
-+require '/usr/share/MigrationTools/migrate_common.ph';
++require '/usr/share/openldap/migration/migrate_common.ph';
$PROGRAM = "migrate_passwd.pl";
$NAMINGCONTEXT = &getsuffix($PROGRAM);
#
-require 'migrate_common.ph';
-+require '/usr/share/MigrationTools/migrate_common.ph';
++require '/usr/share/openldap/migration/migrate_common.ph';
$PROGRAM = "migrate_profile.pl";
#
-require 'migrate_common.ph';
-+require '/usr/share/MigrationTools/migrate_common.ph';
++require '/usr/share/openldap/migration/migrate_common.ph';
$PROGRAM = "migrate_protocols.pl";
$NAMINGCONTEXT = &getsuffix($PROGRAM);
#
-require 'migrate_common.ph';
-+require '/usr/share/MigrationTools/migrate_common.ph';
++require '/usr/share/openldap/migration/migrate_common.ph';
$PROGRAM = "migrate_rpc.pl";
$NAMINGCONTEXT = &getsuffix($PROGRAM);
#
-require 'migrate_common.ph';
-+require '/usr/share/MigrationTools/migrate_common.ph';
++require '/usr/share/openldap/migration/migrate_common.ph';
$PROGRAM = "migrate_services.pl";
$NAMINGCONTEXT = &getsuffix($PROGRAM);
#
-require 'migrate_common.ph';
-+require '/usr/share/MigrationTools/migrate_common.ph';
++require '/usr/share/openldap/migration/migrate_common.ph';
$PROGRAM = "migrate_slapd_conf.pl";
--- MigrationTools-36/migrate_all_netinfo_offline.sh Mon Feb 5 11:39:14 2001
+++ MigrationTools-36/migrate_all_netinfo_offline.sh Mon Feb 5 11:39:14 2001
@@ -41,15 +41,15 @@
- INSTDIR=/usr/share/MigrationTools/
+ INSTDIR=/usr/share/openldap/migration/
TMPDIR="/tmp"
-ETC_PASSWD="$TMPDIR/passwd.$$.ldap"
--- MigrationTools-36/migrate_all_netinfo_online.sh Mon Feb 5 11:39:14 2001
+++ MigrationTools-36/migrate_all_netinfo_online.sh Mon Feb 5 11:39:14 2001
@@ -41,15 +41,15 @@
- INSTDIR=/usr/share/MigrationTools/
+ INSTDIR=/usr/share/openldap/migration/
TMPDIR="/tmp"
-ETC_PASSWD="$TMPDIR/passwd.$$.ldap"
--- MigrationTools-36/migrate_all_nisplus_offline.sh Mon Feb 5 11:39:14 2001
+++ MigrationTools-36/migrate_all_nisplus_offline.sh Mon Feb 5 11:43:23 2001
@@ -41,16 +41,16 @@
- INSTDIR=/usr/share/MigrationTools/
+ INSTDIR=/usr/share/openldap/migration/
TMPDIR="/tmp"
-ETC_PASSWD="$TMPDIR/passwd.$$.ldap"
--- MigrationTools-36/migrate_all_nisplus_online.sh Mon Feb 5 11:39:14 2001
+++ MigrationTools-36/migrate_all_nisplus_online.sh Mon Feb 5 11:45:18 2001
@@ -41,16 +41,16 @@
- INSTDIR=/usr/share/MigrationTools/
+ INSTDIR=/usr/share/openldap/migration/
TMPDIR="/tmp"
-ETC_PASSWD="$TMPDIR/passwd.$$.ldap"
@@ -42,7 +42,7 @@
#
- INSTDIR=/usr/share/MigrationTools/
+ INSTDIR=/usr/share/openldap/migration/
-DB="/tmp/nis.$$.ldif"
+DB=`mktemp /tmp/nis.ldif.XXXXXX`
+++ MigrationTools-36/migrate_all_online.sh Mon Feb 5 11:39:14 2001
@@ -40,7 +40,7 @@
- INSTDIR=/usr/share/MigrationTools/
+ INSTDIR=/usr/share/openldap/migration/
-DB=/tmp/nis.$$.ldif
+DB=`mktemp /tmp/nis.ldif.XXXXXX`
--- MigrationTools-36/migrate_all_nis_offline.sh Mon Feb 5 11:39:14 2001
+++ MigrationTools-36/migrate_all_nis_offline.sh Mon Feb 5 11:39:14 2001
@@ -41,15 +41,15 @@
- INSTDIR=/usr/share/MigrationTools/
+ INSTDIR=/usr/share/openldap/migration/
TMPDIR="/tmp"
-ETC_PASSWD="$TMPDIR/passwd.$$.ldap"
--- MigrationTools-36/migrate_all_nis_online.sh Mon Feb 5 11:39:14 2001
+++ MigrationTools-36/migrate_all_nis_online.sh Mon Feb 5 11:39:14 2001
@@ -41,15 +41,15 @@
- INSTDIR=/usr/share/MigrationTools/
+ INSTDIR=/usr/share/openldap/migration/
TMPDIR="/tmp"
-ETC_PASSWD="$TMPDIR/passwd.$$.ldap"
--- /dev/null
+Don't migrate aliases by default, the schema used is no longer included in the
+default server configuration.
+
+--- MigrationTools-45/migrate_all_offline.sh 2004-10-05 17:36:58.000000000 -0400
++++ MigrationTools-45/migrate_all_offline.sh 2004-10-05 17:37:03.000000000 -0400
+@@ -44,9 +44,9 @@
+ INSTDIR=/usr/share/openldap/migration/
+ DB=`mktemp /tmp/nis.ldif.XXXXXX`
+
+-if [ "X$ETC_ALIASES" = "X" ]; then
+- ETC_ALIASES=/etc/aliases
+-fi
++#if [ "X$ETC_ALIASES" = "X" ]; then
++# ETC_ALIASES=/etc/aliases
++#fi
+ #if [ "X$ETC_FSTAB" = "X" ]; then
+ # ETC_FSTAB=/etc/fstab
+ #fi
+@@ -110,8 +110,8 @@
+
+ echo "Creating naming context entries..."
+ $PERL -I${INSTDIR} ${INSTDIR}migrate_base.pl > $DB
+-echo "Migrating aliases..."
+-$PERL -I${INSTDIR} ${INSTDIR}migrate_aliases.pl $ETC_ALIASES >> $DB
++#echo "Migrating aliases..."
++#$PERL -I${INSTDIR} ${INSTDIR}migrate_aliases.pl $ETC_ALIASES >> $DB
+ #echo "Migrating fstab..."
+ #$PERL -I${INSTDIR} ${INSTDIR}migrate_fstab.pl $ETC_FSTAB >> $DB
+ echo "Migrating groups..."
+--- MigrationTools-45/migrate_all_online.sh 2004-10-05 17:37:11.000000000 -0400
++++ MigrationTools-45/migrate_all_online.sh 2004-10-05 17:37:26.000000000 -0400
+@@ -42,9 +42,9 @@
+
+ DB=`mktemp /tmp/nis.ldif.XXXXXX`
+
+-if [ "X$ETC_ALIASES" = "X" ]; then
+- ETC_ALIASES=/etc/aliases
+-fi
++#if [ "X$ETC_ALIASES" = "X" ]; then
++# ETC_ALIASES=/etc/aliases
++#fi
+ #if [ "X$ETC_FSTAB" = "X" ]; then
+ # ETC_FSTAB=/etc/fstab
+ #fi
+@@ -167,8 +167,8 @@
+ echo "Creating DUAConfigProfile entry..."
+ $PERL -I${INSTDIR} ${INSTDIR}migrate_profile.pl "$LDAPHOST" >> $DB
+ fi
+-echo "Migrating aliases..."
+-$PERL -I${INSTDIR} ${INSTDIR}migrate_aliases.pl $ETC_ALIASES >> $DB
++#echo "Migrating aliases..."
++#$PERL -I${INSTDIR} ${INSTDIR}migrate_aliases.pl $ETC_ALIASES >> $DB
+ #echo "Migrating fstab..."
+ #$PERL -I${INSTDIR} ${INSTDIR}migrate_fstab.pl $ETC_FSTAB >> $DB
+ echo "Migrating groups..."
--- /dev/null
+--- MigrationTools-46/migrate_services.pl.orig 2007-05-23 14:41:22.000000000 +0200
++++ MigrationTools-46/migrate_services.pl 2007-05-23 14:42:55.000000000 +0200
+@@ -102,6 +102,12 @@
+ my ($servicename, $portproto, @aliases) = split(m/\s+/o, $card);
+ my ($rawport, $proto) = split(m#[/,]#o, $portproto);
+
++ # do not generate ddp services - it's AppleTalk, not IP
++ if ($proto eq "ddp") {
++ print STDERR "Skipping non-IP service '$servicename $portproto'\n";
++ next;
++ }
++
+ # Find services specifying a port range (e.g. X11.)
+ my $loport = '';
+ my $hiport = '';
--- /dev/null
+Supply dummy descriptions which, due to typos, are required.
+
+diff -uNr MigrationTools/migrate_protocols.pl MigrationTools/migrate_protocols.pl
+--- MigrationTools/migrate_protocols.pl Thu Oct 12 00:50:34 2000
++++ MigrationTools/migrate_protocols.pl Thu Oct 12 00:50:11 2000
+@@ -72,6 +72,7 @@
+ foreach $_ (@aliases) {
+ print $HANDLE "cn: $_\n";
+ }
++ print $HANDLE "description: IP protocol $number ($name)\n";
+ print $HANDLE "\n";
+ }
+
+diff -uNr MigrationTools/migrate_rpc.pl MigrationTools/migrate_rpc.pl
+--- MigrationTools/migrate_rpc.pl Thu Oct 12 00:50:34 2000
++++ MigrationTools/migrate_rpc.pl Thu Oct 12 00:50:11 2000
+@@ -74,6 +74,7 @@
+ foreach $_ (@aliases) {
+ print $HANDLE "cn: $_\n";
+ }
++ print $HANDLE "description: ONC RPC number $rpcnumber ($rpcname)\n";
+ print $HANDLE "\n";
+ }
+
+--- MigrationTools/migrate_common.ph 2002-07-09 23:59:22.000000000 -0400
++++ MigrationTools/migrate_common.ph 2003-05-02 16:58:19.000000000 -0400
+@@ -83,7 +83,7 @@
+ ##### CUT HERE #####
+ # where /etc/mail/ldapdomains contains names of ldap_routed
+ # domains (similiar to MASQUERADE_DOMAIN_FILE).
+-$DEFAULT_MAIL_HOST = "mail.padl.com";
++# $DEFAULT_MAIL_HOST = "mail.padl.com";
+
+ # turn this on to support more general object clases
+ # such as person.
+@@ -120,10 +120,10 @@
+ }
+
+ # Default Kerberos realm
+-if ($EXTENDED_SCHEMA) {
+- $DEFAULT_REALM = $DEFAULT_MAIL_DOMAIN;
+- $DEFAULT_REALM =~ tr/a-z/A-Z/;
+-}
++#if ($EXTENDED_SCHEMA) {
++# $DEFAULT_REALM = $DEFAULT_MAIL_DOMAIN;
++# $DEFAULT_REALM =~ tr/a-z/A-Z/;
++#}
+
+ if (-x "/usr/sbin/revnetgroup") {
+ $REVNETGROUP = "/usr/sbin/revnetgroup";
- $LDAPADD -h $LDAPHOST -D "$LDAP_BINDDN" -w "$LDAP_BINDCRED" -f $DB
- fi
+if [ `basename $LDAPADD` = "slapadd" ]; then
-+ $LDAPADD -h $LDAPHOST -D "$LDAP_BINDDN" -w "$LDAP_BINDCRED" $@ -f $DB
++ $LDAPADD -h $LDAPHOST -D "$LDAP_BINDDN" -w "$LDAP_BINDCRED" "$@" -f $DB
+else
-+ $LDAPADD -x -h $LDAPHOST -D "$LDAP_BINDDN" -w "$LDAP_BINDCRED" $@ -f $DB
++ $LDAPADD -x -h $LDAPHOST -D "$LDAP_BINDDN" -w "$LDAP_BINDCRED" "$@" -f $DB
+fi
if [ $? -ne 0 ]; then
#ypcat $DOMFLAG -k aliases > $ETC_ALIASES
-. ${INSTDIR}migrate_all_online.sh
-+. ${INSTDIR}migrate_all_online.sh $@
++. ${INSTDIR}migrate_all_online.sh "$@"
rm -f $ETC_PASSWD
rm -f $ETC_GROUP
echo "Preparing LDAP database..."
if [ "X$SLAPADD" = "X" ]; then
- $LDIF2LDBM -i $DB
-+ $LDIF2LDBM -i $DB $@
++ $LDIF2LDBM -i $DB "$@"
else
- $SLAPADD -l $DB
-+ $SLAPADD -l $DB $@
++ $SLAPADD -l $DB "$@"
fi
EXITCODE=$?
#ypcat $DOMFLAG -k aliases > $ETC_ALIASES
-. ${INSTDIR}migrate_all_offline.sh
-+. ${INSTDIR}migrate_all_offline.sh $@
++. ${INSTDIR}migrate_all_offline.sh "$@"
rm -f $ETC_PASSWD
rm -f $ETC_GROUP
niscat mail_aliases.org_dir > $ETC_ALIASES
-. ${INSTDIR}migrate_all_online.sh
-+. ${INSTDIR}migrate_all_online.sh $@
++. ${INSTDIR}migrate_all_online.sh "$@"
rm -f $ETC_PASSWD
rm -f $ETC_GROUP
nidump aliases $DOM > $ETC_ALIASES
-. ${INSTDIR}migrate_all_online.sh
-+. ${INSTDIR}migrate_all_online.sh $@
++. ${INSTDIR}migrate_all_online.sh "$@"
rm -f $ETC_PASSWD
rm -f $ETC_GROUP
nidump aliases $DOM > $ETC_ALIASES
-. ${INSTDIR}migrate_all_offline.sh
-+. ${INSTDIR}migrate_all_offline.sh $@
++. ${INSTDIR}migrate_all_offline.sh "$@"
rm -f $ETC_PASSWD
rm -f $ETC_GROUP
niscat mail_aliases.org_dir > $ETC_ALIASES
-. ${INSTDIR}migrate_all_offline.sh
-+. ${INSTDIR}migrate_all_offline.sh $@
++. ${INSTDIR}migrate_all_offline.sh "$@"
rm -f $ETC_PASSWD
rm -f $ETC_GROUP
--- /dev/null
+Try adding the top-level object, which may be missing, but don't worry if
+the add operation fails.
+--- MigrationTools-26/migrate_all_online.sh Wed Oct 25 16:27:02 2000
++++ MigrationTools-26/migrate_all_online.sh Wed Oct 25 16:30:11 2000
+@@ -179,5 +179,31 @@
+ echo "Migrating netgroups (by host)..."
+ $PERL -I${INSTDIR} ${INSTDIR}migrate_netgroup_byhost.pl $ETC_NETGROUP >> $DB
+
++# Try to add the top-level object, because it's frequently missing.
++NAMINGATTRNAME=`echo $LDAP_BASEDN | cut -f1 -d=`
++NAMINGATTRVALUE=`echo $LDAP_BASEDN | cut -f1 -d, | cut -f2 -d=`
++OBJECTCLASS=
++case "$NAMINGATTRNAME" in
++ dc) OBJECTCLASS=domain;;
++ o) OBJECTCLASS=organization;;
++ l) OBJECTCLASS=locality;;
++ c) OBJECTCLASS=country;;
++ nismapname) OBJECTCLASS=nisMap;;
++ cn) OBJECTCLASS=container;;
++esac
++
++if test -n "$NAMINGATTRNAME" ; then
++if test -n "$NAMINGATTRVALUE" ; then
++if test -n "$OBJECTCLASS" ; then
++cat << EOF | $LDAPADD -h $LDAPHOST -D "$LDAP_BINDDN" -x -w "$LDAP_BINDCRED"
++dn: $LDAP_BASEDN
++$NAMINGATTRNAME: $NAMINGATTRVALUE
++objectClass: top
++objectClass: $OBJECTCLASS
++EOF
++fi
++fi
++fi
++
+ echo "Importing into LDAP..."
+
--- /dev/null
+Prevent duplicities in hosts, which are read from NIS.
+--- MigrationTools-46/migrate_all_nis_online.sh.orig 2007-05-24 11:21:54.000000000 +0200
++++ MigrationTools-46/migrate_all_nis_online.sh 2007-05-24 11:26:30.000000000 +0200
+@@ -67,7 +67,7 @@
+ ypcat $DOMFLAG protocols > $ETC_PROTOCOLS
+ touch $ETC_FSTAB
+ ypcat $DOMFLAG rpc.byname > $ETC_RPC
+-ypcat $DOMFLAG hosts > $ETC_HOSTS
++ypcat $DOMFLAG hosts.byaddr > $ETC_HOSTS
+ ypcat $DOMFLAG networks > $ETC_NETWORKS
+ #ypcat $DOMFLAG -k aliases > $ETC_ALIASES
+
+--- MigrationTools-46/migrate_all_nis_offline.sh.orig 2007-05-24 11:21:54.000000000 +0200
++++ MigrationTools-46/migrate_all_nis_offline.sh 2007-05-24 11:26:13.000000000 +0200
+@@ -67,7 +67,7 @@
+ ypcat $DOMFLAG protocols > $ETC_PROTOCOLS
+ touch $ETC_FSTAB
+ ypcat $DOMFLAG rpc.byname > $ETC_RPC
+-ypcat $DOMFLAG hosts > $ETC_HOSTS
++ypcat $DOMFLAG hosts.byaddr > $ETC_HOSTS
+ ypcat $DOMFLAG networks > $ETC_NETWORKS
+ #ypcat $DOMFLAG -k aliases > $ETC_ALIASES
+