Skip to content

Commit

Permalink
Fixed multi package & version rollback
Browse files Browse the repository at this point in the history
  • Loading branch information
Anonym-tsk committed Sep 9, 2024
1 parent 9d37748 commit 0f58448
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.5
2.0.4
10 changes: 5 additions & 5 deletions common/ipk/postinst-multi
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
source $(dirname $0)/nfqws-keenetic.common

install_binary_func() {
CONFFILE="/opt/etc/opkg.conf" # Keenetic
if [ ! -f "$CONFFILE" ]; then
CONFFILE="/etc/opkg.conf" # OpenWRT
OPKG_CONF="/opt/etc/opkg.conf" # Keenetic
if [ ! -f "$OPKG_CONF" ]; then
OPKG_CONF="/etc/opkg.conf" # OpenWRT
fi

if [ -f "$CONFFILE" ]; then
ARCH=$(cat "$CONFFILE" | grep -oE 'mips-3|mips_|mipsel-3|mipsel_|aarch64-3|aarch64_|armv7' | head -n 1)
if [ -f "$OPKG_CONF" ]; then
ARCH=$(cat "$OPKG_CONF" | grep -oE 'mips-3|mips_|mipsel-3|mipsel_|aarch64-3|aarch64_|armv7' | head -n 1)
case "$ARCH" in
"mips-3"|"mips_") ARCH="mips" ;;
"mipsel-3"|"mipsel_") ARCH="mipsel" ;;
Expand Down

0 comments on commit 0f58448

Please sign in to comment.