( cd usr/bin ; rm -rf fdlist )
( cd usr/bin ; ln -sf fdmount fdlist )
( cd usr/bin ; rm -rf fdmountd )
( cd usr/bin ; ln -sf fdmount fdmountd )
( cd usr/bin ; rm -rf fdumount )
( cd usr/bin ; ln -sf fdmount fdumount )
( cd usr/bin ; rm -rf mattrib )
( cd usr/bin ; ln -sf mtools mattrib )
( cd usr/bin ; rm -rf mbadblocks )
( cd usr/bin ; ln -sf mtools mbadblocks )
( cd usr/bin ; rm -rf mcat )
( cd usr/bin ; ln -sf mtools mcat )
( cd usr/bin ; rm -rf mcd )
( cd usr/bin ; ln -sf mtools mcd )
( cd usr/bin ; rm -rf mcopy )
( cd usr/bin ; ln -sf mtools mcopy )
( cd usr/bin ; rm -rf mdel )
( cd usr/bin ; ln -sf mtools mdel )
( cd usr/bin ; rm -rf mdeltree )
( cd usr/bin ; ln -sf mtools mdeltree )
( cd usr/bin ; rm -rf mdir )
( cd usr/bin ; ln -sf mtools mdir )
( cd usr/bin ; rm -rf mdu )
( cd usr/bin ; ln -sf mtools mdu )
( cd usr/bin ; rm -rf mformat )
( cd usr/bin ; ln -sf mtools mformat )
( cd usr/bin ; rm -rf minfo )
( cd usr/bin ; ln -sf mtools minfo )
( cd usr/bin ; rm -rf mlabel )
( cd usr/bin ; ln -sf mtools mlabel )
( cd usr/bin ; rm -rf mmd )
( cd usr/bin ; ln -sf mtools mmd )
( cd usr/bin ; rm -rf mmount )
( cd usr/bin ; ln -sf mtools mmount )
( cd usr/bin ; rm -rf mmove )
( cd usr/bin ; ln -sf mtools mmove )
( cd usr/bin ; rm -rf mpartition )
( cd usr/bin ; ln -sf mtools mpartition )
( cd usr/bin ; rm -rf mrd )
( cd usr/bin ; ln -sf mtools mrd )
( cd usr/bin ; rm -rf mread )
( cd usr/bin ; ln -sf mtools mread )
( cd usr/bin ; rm -rf mren )
( cd usr/bin ; ln -sf mtools mren )
( cd usr/bin ; rm -rf mshowfat )
( cd usr/bin ; ln -sf mtools mshowfat )
( cd usr/bin ; rm -rf mtoolstest )
( cd usr/bin ; ln -sf mtools mtoolstest )
( cd usr/bin ; rm -rf mtype )
( cd usr/bin ; ln -sf mtools mtype )
( cd usr/bin ; rm -rf mzip )
( cd usr/bin ; ln -sf mtools mzip )
( cd usr/bin ; rm -rf xdfformat )
( cd usr/bin ; ln -sf xdfcopy xdfformat )
# Patched by crn 15 Oct 2001
#( cd usr/man/ma.1.gz ; rm -rf fdlist.1.gz )
#( cd usr/man/ma.1.gz ; ln -sf fdmount.1.gz fdlist.1.gz )
#( cd usr/man/ma.1.gz ; rm -rf fdmountd.1.gz )
#( cd usr/man/ma.1.gz ; ln -sf fdmount.1.gz fdmountd.1.gz )
#( cd usr/man/ma.1.gz ; rm -rf fdumount.1.gz )
#( cd usr/man/ma.1.gz ; ln -sf fdmount.1.gz fdumount.1.gz )
#( cd usr/man/ma.1.gz ; rm -rf xdfformat.1.gz )
#( cd usr/man/ma.1.gz ; ln -sf xdfcopy.1.gz xdfformat.1.gz )
( cd usr/man/man1 ; rm -rf fdlist.1.gz )
( cd usr/man/man1 ; ln -sf fdmount.1.gz fdlist.1.gz )
( cd usr/man/man1 ; rm -rf fdmountd.1.gz )
( cd usr/man/man1 ; ln -sf fdmount.1.gz fdmountd.1.gz )
( cd usr/man/man1 ; rm -rf fdumount.1.gz )
( cd usr/man/man1 ; ln -sf fdmount.1.gz fdumount.1.gz )
( cd usr/man/man1 ; rm -rf xdfformat.1.gz )
( cd usr/man/man1 ; ln -sf xdfcopy.1.gz xdfformat.1.gz )
# End patched by crn
# Install the info files for this package
if [ -x usr/bin/install-info ]
then
   usr/bin/install-info --info-dir=/usr/info /usr/info/mtools.info.gz 2>/dev/null
   usr/bin/install-info --info-dir=/usr/info /usr/info/fdutils.info.gz 2>/dev/null
fi

# Process the incoming configuration files

if [ ! -f etc/mtools.conf ]
then
   mv install/conf/etc/mtools.conf etc/mtools.conf
else
   if [ "`md5sum install/conf/etc/mtools.conf | cut -d ' ' -f 1 2>/dev/null`" = "`md5sum etc/mtools.conf | cut -d ' ' -f 1 2>/dev/null`" ]
   then
      mv install/conf/etc/mtools.conf etc/mtools.conf
   else
      rm install/conf/etc/mtools.conf
   fi
fi

if [ ! -f etc/mediaprm ]
then
   mv install/conf/etc/mediaprm etc/mediaprm
else
   if [ "`md5sum install/conf/etc/mediaprm | cut -d ' ' -f 1 2>/dev/null`" = "`md5sum etc/mediaprm | cut -d ' ' -f 1 2>/dev/null`" ]
   then
      mv install/conf/etc/mediaprm etc/mediaprm
   else
      rm install/conf/etc/mediaprm
   fi
fi

# Make sure the incoming conf directory is gone
rm -rf install/conf
