pinstall.sh 696 B

12345678910111213141516171819202122232425262728
  1. #!/bin/sh
  2. if [ ! "`pwd`" = "/" ];then
  3. echo "Configuring MPlayer..."
  4. if [ ! -f ./usr/bin/gnome-mplayer ];then
  5. echo '#!/bin/sh' > ./usr/local/bin/defaultmediaplayer
  6. echo 'exec mplayershell "$@"' >> ./usr/local/bin/defaultmediaplayer
  7. chmod 755 ./usr/local/bin/defaultmediaplayer
  8. echo '#!/bin/sh' > ./usr/local/bin/defaultvideoplayer
  9. echo 'exec mplayershell "$@"' >> ./usr/local/bin/defaultvideoplayer
  10. chmod 755 ./usr/local/bin/defaultvideoplayer
  11. # else
  12. #
  13. # #gnome-mplayer is the default media player.
  14. # #also, save space, get rid of the mplayer gui...
  15. # rm -f ./usr/share/applications/mplayer.desktop
  16. # rm -f ./usr/bin/gmplayer
  17. # rm -rf ./usr/share/mplayer/*
  18. fi
  19. fi