summaryrefslogtreecommitdiff
path: root/updater-ng/files/update_alternatives.sh
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2020-07-06 14:11:53 +0200
committerKarel Kočí <cynerd@email.cz>2020-07-06 14:11:53 +0200
commit595475d8f5bd6b6bc926a57e7b1c183bbb26ea0e (patch)
tree9cd82eb0522e57ef4790d8972b371b906003a238 /updater-ng/files/update_alternatives.sh
parentf199cf1563648ed0f750677b854c5388625aa719 (diff)
downloadopenwrt-personal-pkgs-595475d8f5bd6b6bc926a57e7b1c183bbb26ea0e.tar.gz
openwrt-personal-pkgs-595475d8f5bd6b6bc926a57e7b1c183bbb26ea0e.tar.bz2
openwrt-personal-pkgs-595475d8f5bd6b6bc926a57e7b1c183bbb26ea0e.zip
updater-ng: remove as latest version is now in HBK
Diffstat (limited to 'updater-ng/files/update_alternatives.sh')
-rwxr-xr-xupdater-ng/files/update_alternatives.sh23
1 files changed, 0 insertions, 23 deletions
diff --git a/updater-ng/files/update_alternatives.sh b/updater-ng/files/update_alternatives.sh
deleted file mode 100755
index c93ae45..0000000
--- a/updater-ng/files/update_alternatives.sh
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/sh
-set -e
-
-if [ $# -gt 0 ]; then
- echo "This script is part of updater and allows user to manually fix alternative links in system." >&2
- exit 0
-fi
-
-if [ ! -d /usr/lib/opkg/info ]; then
- echo "OPKG info directory not located. This is OpenWrt system, isn't it?" >&2
- exit 1
-fi
-
-# Fist install all busybox applets and then overwite them with alternatives
-
-busybox --install /bin
-
-sed -n 's/^Alternatives://p' /usr/lib/opkg/info/*.control | \
- tr , '\n' | \
- sort -n | \
- while IFS=: read PRIO TRG SRC; do
- ln -sf "$SRC" "$TRG"
- done