diff --git a/VERSION b/VERSION index e010258..2165f8f 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.0.5 +2.0.4 diff --git a/common/ipk/postinst-multi b/common/ipk/postinst-multi index 2f68174..2035a90 100755 --- a/common/ipk/postinst-multi +++ b/common/ipk/postinst-multi @@ -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" ;;