PREUN
/bin/sh
if [[ "$1" = "0" ]]; then perl -ni -e "/^DICT\s*fa\s*IR\s*fa_IR$/ or print" /usr/share/dict/ooo/dictionary.lst fi
POSTIN
/bin/sh
if [[ ! -f "/usr/share/dict/ooo/dictionary.lst" ]] || ! grep -q "^DICT[ \t]*fa[ \t]*IR[ \t]*fa_IR" /usr/share/dict/ooo/dictionary.lst then echo "DICT fa IR fa_IR" >> /usr/share/dict/ooo/dictionary.lst fi