15586
|
1 #!/bin/sh
|
|
2
|
|
3 # Author: thuglife, mennucc1
|
|
4 #
|
|
5
|
|
6 set -e
|
|
7
|
|
8 site=http://download.divx.com/divx/
|
17053
|
9 packagename=divx4linux501-20020418
|
|
10 filename=$packagename.tgz
|
15586
|
11
|
|
12 if [ `whoami` != root ]; then
|
|
13 echo "You must be a root to start this script. Login As root first!"
|
|
14 exit 1
|
|
15 else
|
|
16
|
|
17
|
|
18 case "$1" in
|
|
19 install)
|
|
20 mkdir /var/tmp/mplayer$$
|
|
21 cd /var/tmp/mplayer$$
|
|
22 wget $site/$filename
|
|
23 tar xzf $filename
|
17053
|
24 cd $packagename/
|
15586
|
25 sh install.sh
|
|
26 cd ..
|
|
27 rm -rf $filename
|
17053
|
28 rm -rf $packagename/
|
15586
|
29 echo "Installed Succesfully!"
|
|
30 rmdir /var/tmp/mplayer$$
|
|
31 ;;
|
|
32
|
|
33 uninstall)
|
|
34 rm -rf /usr/local/lib/libdivx{encore,decore}.so{,.0}
|
|
35 echo "Uninstalled Succesfully!"
|
|
36
|
|
37 ;;
|
|
38 *)
|
|
39 echo "Usage: {install|uninstall}"
|
|
40 exit 1
|
|
41
|
|
42 ;;
|
|
43 esac
|
|
44
|
|
45
|
|
46
|
|
47 exit 0
|
|
48
|
|
49 fi
|
|
50
|