if [ -d /tmp/tcloop/APPNAME/ ]; then rm -r /usr/share/misc/magic ln -sf /tmp/tcloop/APPNAME/usr/share/misc/magic /usr/share/misc/magic fi