wok diff get-opera/stuff/get-opera @ rev 1820
Split ndiswrapper.
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Fri Dec 05 23:08:55 2008 +0100 (2008-12-05) |
parents | 6f21be70783b |
children | f4b150e1cc1e |
line diff
1.1 --- a/get-opera/stuff/get-opera Mon Oct 20 21:19:09 2008 +0000 1.2 +++ b/get-opera/stuff/get-opera Fri Dec 05 23:08:55 2008 +0100 1.3 @@ -1,6 +1,7 @@ 1.4 #!/bin/sh -e 1.5 1.6 URL=http://mirrors.dedipower.com/opera/linux/ 1.7 +ROOT="$1" 1.8 1.9 if test $(id -u) != 0 ; then 1.10 echo -e "\nYou must be root to run `basename $0`." 1.11 @@ -8,7 +9,8 @@ 1.12 exit 0 1.13 fi 1.14 1.15 -if [ -d /var/lib/tazpkg/installed/opera ]; then 1.16 +if [ -d $ROOT/var/lib/tazpkg/installed/opera ]; then 1.17 + [ -n "$ROOT" ] && exit 1 1.18 tazpkg remove opera 1.19 [ -d /var/lib/tazpkg/installed/opera ] && exit 1 1.20 fi 1.21 @@ -85,7 +87,7 @@ 1.22 tazpkg pack opera-$VERSION 1.23 1.24 # Install pseudo package 1.25 -tazpkg install opera-$VERSION.tazpkg 1.26 +tazpkg install opera-$VERSION.tazpkg --root=$ROOT 1.27 1.28 # Clean 1.29 cd $CUR_DIR