2005-05-29 13:46:57 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Author: thuglife, mennucc1
|
|
|
|
#
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
site=http://download.divx.com/divx/
|
2005-11-27 14:03:14 +00:00
|
|
|
packagename=divx4linux501-20020418
|
|
|
|
filename=$packagename.tgz
|
2005-05-29 13:46:57 +00:00
|
|
|
|
|
|
|
if [ `whoami` != root ]; then
|
|
|
|
echo "You must be a root to start this script. Login As root first!"
|
|
|
|
exit 1
|
|
|
|
else
|
|
|
|
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
install)
|
|
|
|
mkdir /var/tmp/mplayer$$
|
|
|
|
cd /var/tmp/mplayer$$
|
|
|
|
wget $site/$filename
|
|
|
|
tar xzf $filename
|
2005-11-27 14:03:14 +00:00
|
|
|
cd $packagename/
|
2005-05-29 13:46:57 +00:00
|
|
|
sh install.sh
|
|
|
|
cd ..
|
|
|
|
rm -rf $filename
|
2005-11-27 14:03:14 +00:00
|
|
|
rm -rf $packagename/
|
2005-05-29 13:46:57 +00:00
|
|
|
echo "Installed Succesfully!"
|
|
|
|
rmdir /var/tmp/mplayer$$
|
|
|
|
;;
|
|
|
|
|
|
|
|
uninstall)
|
|
|
|
rm -rf /usr/local/lib/libdivx{encore,decore}.so{,.0}
|
|
|
|
echo "Uninstalled Succesfully!"
|
|
|
|
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo "Usage: {install|uninstall}"
|
|
|
|
exit 1
|
|
|
|
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
fi
|
|
|
|
|