opkg: restore original ipkg ChangeLog
[oweals/opkg-lede.git] / update-alternatives
index a403202a1df84c12f5e8d19bb13b5203ef45a4ec..4983e195e459e9640769575e1a18107cbc74da2a 100755 (executable)
@@ -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