diff options
author | ticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2008-12-14 23:18:06 (EST) |
---|---|---|
committer | ticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2008-12-14 23:18:06 (EST) |
commit | 0b7a99e65bb95cd86d8846a21fce1cfc2b0b7495 (patch) | |
tree | 5e32dd2d7117c2c5b6e3cdab91cc68d1fc9a2522 /update-alternatives | |
parent | 7fc0de8e48b598a188237a13424be3f86189b3d9 (diff) |
* Rename top level ipkg directory to opkg
git-svn-id: http://opkg.googlecode.com/svn/trunk@8 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'update-alternatives')
-rwxr-xr-x | update-alternatives | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/update-alternatives b/update-alternatives index a403202..4983e19 100755 --- a/update-alternatives +++ b/update-alternatives @@ -21,7 +21,7 @@ set -e # admin dir -ad="$IPKG_OFFLINE_ROOT/usr/lib/ipkg/alternatives" +ad="$OPKG_OFFLINE_ROOT/usr/lib/opkg/alternatives" usage() { echo "update-alternatives: $* @@ -93,7 +93,7 @@ find_best_alt() { [ $# -lt 1 ] && return 1 [ ! -f $ad/$name ] && return 0 - link=$IPKG_OFFLINE_ROOT/`head -n 1 $ad/$name` + link=$OPKG_OFFLINE_ROOT/`head -n 1 $ad/$name` ## path=`sed -ne "1!p" $ad/$name | sort -nr -k2 | head -1 | sed 's/ .*//'` ## busybox safe: @@ -134,7 +134,7 @@ do_install() { path=`echo $path | sed 's|/\+|/|g'` # This is a bad hack, but I haven't thought of a cleaner solution yet... - [ -n "$IPKG_OFFLINE_ROOT" ] && path=`echo $path | sed "s|^$IPKG_OFFLINE_ROOT/*|/|"` + [ -n "$OPKG_OFFLINE_ROOT" ] && path=`echo $path | sed "s|^$OPKG_OFFLINE_ROOT/*|/|"` register_alt $name $link add_alt $name $path $priority @@ -151,7 +151,7 @@ do_remove() { path=`echo $path | sed 's|/\+|/|g'` # This is a bad hack, but I haven't thought of a cleaner solution yet... - [ -n "$IPKG_OFFLINE_ROOT" ] && path=`echo $path | sed "s|^$IPKG_OFFLINE_ROOT/*|/|"` + [ -n "$OPKG_OFFLINE_ROOT" ] && path=`echo $path | sed "s|^$OPKG_OFFLINE_ROOT/*|/|"` remove_alt $name $path find_best_alt $name |