pinstall.sh 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #!/bin/sh
  2. #post-install script for Mozilla.
  3. #assume current directory is rootfs-complete, which has the final filesystem.
  4. #RUNNINGPS="`ps`"
  5. #if [ "`echo "$RUNNINGPS" | grep "petget"`" = "" ];then
  6. if [ ! "`pwd`" = "/" ];then
  7. echo "Configuring Mozilla SeaMonkey browser..."
  8. echo '#!/bin/sh' > ./usr/local/bin/defaultbrowser
  9. echo 'exec mozstart "$@"' >> ./usr/local/bin/defaultbrowser
  10. #091118 sm2 cannot have gtkmoz or puppybrowser...
  11. if [ ! -f usr/local/bin/gtkmoz ];then
  12. ln -s mozstart usr/local/bin/gtkmoz
  13. fi
  14. #if [ ! -f ./usr/local/bin/sylpheed ];then
  15. echo '#!/bin/sh' > ./usr/local/bin/defaultemail
  16. echo 'exec mozmail "$@"' >> ./usr/local/bin/defaultemail
  17. #fi
  18. echo '#!/bin/sh' > ./usr/local/bin/defaulthtmleditor
  19. echo 'exec mozedit "$@"' >> ./usr/local/bin/defaulthtmleditor
  20. #echo 'exec mozcalendar $@' > ./usr/local/bin/defaultcalendar
  21. #if [ ! -f ./usr/local/bin/gaby ];then
  22. echo '#!/bin/sh' > ./usr/local/bin/defaultcontact
  23. echo 'exec mozaddressbook "$@"' >> ./usr/local/bin/defaultcontact
  24. #fi
  25. echo "Note that mozilla and netscape all point to mozstart in /usr/local/bin"
  26. echo "...ok, setup for Mozilla (Seamonkey)."
  27. echo -n "seamonkey" > /tmp/rightbrwsr.txt
  28. fi