From e73c244bb06cd77a8770a480eed0b1552754d990 Mon Sep 17 00:00:00 2001 From: Daniel Pawlik Date: Sun, 16 Feb 2025 10:12:28 +0100 Subject: [PATCH] Add nss-short --- configs/common/nss-short | 8 ++++++++ openwrt-configure.sh | 14 +++++++------- 2 files changed, 15 insertions(+), 7 deletions(-) create mode 100644 configs/common/nss-short diff --git a/configs/common/nss-short b/configs/common/nss-short new file mode 100644 index 0000000..0142560 --- /dev/null +++ b/configs/common/nss-short @@ -0,0 +1,8 @@ +CONFIG_DEFAULT_kmod-qca-nss-dp=y +CONFIG_PACKAGE_kmod-qca-nss-dp=y +CONFIG_PACKAGE_kmod-qca-nss-drv=y +CONFIG_PACKAGE_kmod-qca-nss-drv-bridge-mgr=y +CONFIG_PACKAGE_kmod-qca-nss-drv-vlan-mgr=y +CONFIG_PACKAGE_kmod-qca-nss-ecm=y +# CONFIG_PACKAGE_kmod-qca-nss-crypto=y +CONFIG_NSS_FIRMWARE_VERSION_12_5=y diff --git a/openwrt-configure.sh b/openwrt-configure.sh index 8ca5af6..32d33cc 100755 --- a/openwrt-configure.sh +++ b/openwrt-configure.sh @@ -28,7 +28,7 @@ if [ -z "$ROUTER_IP" ]; then exit 1 fi -COMMAND="opkg update" +COMMAND="apk update" if [[ "$FULL_WPAD" =~ True|true ]]; then FS_FULL_WPAD_PACKAGES="-wpad-basic-mbedtls" @@ -36,11 +36,11 @@ fi if [ -z "$CRYPTO_LIB" ]; then FS_FULL_WPAD_PACKAGES="$FS_FULL_WPAD_PACKAGES wpad-mbedtls" - COMMAND="$COMMAND; opkg remove wpad-basic-mbedtls; opkg install wpad-mbedtls" + COMMAND="$COMMAND; apk del wpad-basic-mbedtls; apk add wpad-mbedtls" fi if [ -n "$CRYPTO_LIB" ]; then - COMMAND="$COMMAND; opkg remove wpad-basic-mbedtls; opkg install wpad-$CRYPTO_LIB" + COMMAND="$COMMAND; apk del wpad-basic-mbedtls; apk add wpad-$CRYPTO_LIB" if [[ "$CRYPTO_LIB" =~ ^(Wolfssl|wolfssl)$ ]]; then FS_FULL_WPAD_PACKAGES="$FS_FULL_WPAD_PACKAGES -apk-mbedtls -libustream-mbedtls -libmbedtls libustream-wolfssl wpad-wolfssl" @@ -107,7 +107,7 @@ if [[ "$INSTALL_LANG_PACKAGES" =~ True|true ]]; then PACKAGES="$PACKAGES luci-i18n-firewall-pl luci-i18n-irqbalance-pl luci-i18n-statistics-pl luci-i18n-base-pl" fi -COMMAND="$COMMAND; opkg install $PACKAGES $ADDITIONAL_PACKAGES; /etc/init.d/uhttpd start ; /etc/init.d/uhttpd enable;" +COMMAND="$COMMAND; apk add $PACKAGES $ADDITIONAL_PACKAGES; /etc/init.d/uhttpd start ; /etc/init.d/uhttpd enable;" read -n 1 -r -p "Should I execute command: $COMMAND on root@$ROUTER_IP? " yn case $yn in @@ -127,11 +127,11 @@ esac # For https://firmware-selector.openwrt.org/ # Add packages. NOTE: To install wpad-wolfssl, just replace the package name with wpad-basic-wolfssl ### basic -# opkg update; -# opkg install collectd collectd-mod-sensors collectd-mod-dns collectd-mod-wireless luci-app-statistics luci luci-i18n-base-pl vim htop curl iperf3 luci-app-attendedsysupgrade auc bmon irqbalance luci-app-irqbalance rsync +# apk update; +# apk add collectd collectd-mod-sensors collectd-mod-dns collectd-mod-wireless luci-app-statistics luci luci-i18n-base-pl vim htop curl iperf3 luci-app-attendedsysupgrade auc bmon irqbalance luci-app-irqbalance rsync # ### additional -# opkg install bind-dig ethtool-full pciutils tcpdump +# apk add bind-dig ethtool-full pciutils tcpdump ### wireguard # luci-proto-wireguard kmod-wireguard wireguard-tools qrencode