if [ "$1" = install ] then # backing out existing entries to avoid duplicates sed ' /application\/vnd\.oasis\.opendocument/d /application\/vnd\.sun/d /application\/vnd\.stardivision/d ' ${PKG_INSTALL_ROOT}/etc/mime.types 2>/dev/null # now append our stuff to the temporary file cat << END application/vnd.oasis.opendocument.text odt application/vnd.oasis.opendocument.text-flat-xml fodt application/vnd.oasis.opendocument.text-template ott application/vnd.oasis.opendocument.text-web oth application/vnd.oasis.opendocument.text-master odm application/vnd.oasis.opendocument.graphics odg application/vnd.oasis.opendocument.graphics-flat-xml fodg application/vnd.oasis.opendocument.graphics-template otg application/vnd.oasis.opendocument.presentation odp application/vnd.oasis.opendocument.presentation-flat-xml fodp application/vnd.oasis.opendocument.presentation-template otp application/vnd.oasis.opendocument.spreadsheet ods application/vnd.oasis.opendocument.spreadsheet-flat-xml fods application/vnd.oasis.opendocument.spreadsheet-template ots application/vnd.oasis.opendocument.chart odc application/vnd.oasis.opendocument.formula odf application/vnd.oasis.opendocument.image odi application/vnd.sun.xml.writer sxw application/vnd.sun.xml.writer.template stw application/vnd.sun.xml.writer.global sxg application/vnd.stardivision.writer sdw vor application/vnd.stardivision.writer-global sgl application/vnd.sun.xml.calc sxc application/vnd.sun.xml.calc.template stc application/vnd.stardivision.calc sdc application/vnd.stardivision.chart sds application/vnd.sun.xml.impress sxi application/vnd.sun.xml.impress.template sti application/vnd.stardivision.impress sdd sdp application/vnd.sun.xml.draw sxd application/vnd.sun.xml.draw.template std application/vnd.stardivision.draw sda application/vnd.sun.xml.math sxm application/vnd.stardivision.math smf application/vnd.sun.xml.base odb application/vnd.openofficeorg.extension oxt application/vnd.openxmlformats-officedocument.wordprocessingml.document docx application/vnd.ms-word.document.macroenabled.12 docm application/vnd.openxmlformats-officedocument.wordprocessingml.template dotx application/vnd.ms-word.template.macroenabled.12 dotm application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx application/vnd.ms-excel.sheet.macroenabled.12 xlsm application/vnd.openxmlformats-officedocument.spreadsheetml.template xltx application/vnd.ms-excel.template.macroenabled.12 xltm application/vnd.openxmlformats-officedocument.presentationml.presentation pptx application/vnd.ms-powerpoint.presentation.macroenabled.12 pptm application/vnd.openxmlformats-officedocument.presentationml.template potx application/vnd.ms-powerpoint.template.macroenabled.12 potm END else cat ${PKG_INSTALL_ROOT}/etc/mime.types fi