postinst 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. #! /bin/sh
  2. case "$1" in
  3. configure)
  4. chmod a+rwx /opt/phoneme
  5. chmod a+rwx /opt/phoneme/bin
  6. chmod a+rwx /opt/phoneme/legal
  7. chmod a+rwx /opt/phoneme/lib
  8. chmod a+rwx /opt/phoneme/midp
  9. chmod a+rwx /opt/phoneme/midp/midp_linux_fb_gcc
  10. chmod a+rwx /opt/phoneme/midp/midp_linux_fb_gcc/appdb
  11. chmod a+rwx /opt/phoneme/midp/midp_linux_fb_gcc/bin
  12. chmod a+rwx /opt/phoneme/midp/midp_linux_fb_gcc/lib
  13. chmod a+rwx /opt/phoneme/*.sh
  14. chmod a+rw /opt/phoneme/*
  15. if test -x /usr/bin/update-mime-database; then
  16. update-mime-database /usr/share/mime
  17. fi
  18. if test -x /usr/bin/update-desktop-database; then
  19. update-desktop-database /usr/share/applications
  20. fi
  21. if test -x /usr/bin/hildon-update-category-database; then
  22. hildon-update-category-database /usr/share/mime
  23. fi
  24. if test -x /usr/bin/gtk-update-icon-cache; then
  25. /usr/bin/gtk-update-icon-cache -f -t /usr/share/icons/hicolor
  26. fi
  27. ;;
  28. esac