#! /bin/sh
#----------------------------------------------------------------------------
# /tmp/install.sh - mtools installation
#
# Creation   :  2013-03-02 holbru
# Last update:  $Id: postinstall-mtools.sh 33141 2013-03-02 18:26:45Z hbfl $
#
# Copyright (c) 2013-2013 Holger Bruenjes, holgerbruenjes(at)gmx(dot)net
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#----------------------------------------------------------------------------

# set package name
package_name=mtools

# ---------------------------------------------------------------------------
# generate symlinks
# ---------------------------------------------------------------------------
mtools_bin="mattrib
mbadblocks
mcat
mcd
mclasserase
mcopy
mdel
mdeltree
mdir
mdu
mformat
minfo
mlabel
mmd
mmount
mmove
mpartition
mrd
mren
mshowfat
mtoolstest
mtype
mzip"


cd /usr/bin

for _fname in ${mtools_bin}
do
    rm -f ${_fname}
    ln -sf mtools ${_fname}
done

rm -f lz
ln -sf uz lz


exit 0
# ---------------------------------------------------------------------------
# end
# ---------------------------------------------------------------------------
