summaryrefslogtreecommitdiff
path: root/updater-ng/files/update_alternatives.sh
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2022-03-11 11:45:26 +0100
committerKarel Kočí <cynerd@email.cz>2022-03-11 11:45:26 +0100
commit403d4e98cadc69a238060cce2614537f94a76ba9 (patch)
tree2c2d5aad6635b564f8a13620de7adddbb523fb65 /updater-ng/files/update_alternatives.sh
parent7abc9df811cbf5f74d5d9f56dfc4f1fb906ca84d (diff)
downloadopenwrt-personal-pkgs-403d4e98cadc69a238060cce2614537f94a76ba9.tar.gz
openwrt-personal-pkgs-403d4e98cadc69a238060cce2614537f94a76ba9.tar.bz2
openwrt-personal-pkgs-403d4e98cadc69a238060cce2614537f94a76ba9.zip
updater-ng: remove for now as I do not need it right now
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