From 0b7a99e65bb95cd86d8846a21fce1cfc2b0b7495 Mon Sep 17 00:00:00 2001 From: ticktock35 Date: Sun, 14 Dec 2008 23:18:06 -0500 Subject: * Rename top level ipkg directory to opkg git-svn-id: http://opkg.googlecode.com/svn/trunk@8 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- (limited to 'update-alternatives') 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 -- cgit v0.9.1