# Update MIME database in background if test -d usr/share/mime then echo "Updating mime database: update-mime-database usr/share/mime & ..." chroot "$rootdir" /usr/bin/update-mime-database usr/share/mime 2> /dev/null & fi