From 0d2b6e9c1f17408d269418806a94833681e8b0b8 Mon Sep 17 00:00:00 2001 From: sbwml Date: Sat, 27 Jul 2024 23:42:22 +0800 Subject: [PATCH 1/2] build.sh: fix ota on minimal version Signed-off-by: sbwml --- openwrt/build.sh | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/openwrt/build.sh b/openwrt/build.sh index cdfc204fe..bc917f2f3 100644 --- a/openwrt/build.sh +++ b/openwrt/build.sh @@ -466,9 +466,9 @@ if [ "$platform" = "x86_64" ]; then if [ "$1" = "rc2" ]; then mkdir -p ota if [ "$MINIMAL_BUILD" = "y" ]; then - BUILD_TYPE=minimal + OTA_URL="https://x86.cooluc.com/d/minimal/openwrt-23.05" else - BUILD_TYPE=releases + OTA_URL="https://github.com/sbwml/builder/releases/download" fi VERSION=$(sed 's/v//g' version.txt) SHA256=$(sha256sum bin/targets/x86/64*/*-generic-squashfs-combined-efi.img.gz | awk '{print $1}') @@ -478,7 +478,7 @@ if [ "$platform" = "x86_64" ]; then { "build_date": "$CURRENT_DATE", "sha256sum": "$SHA256", - "url": "https://github.com/sbwml/builder/releases/download/v$VERSION/openwrt-$VERSION-x86-64-generic-squashfs-combined-efi.img.gz" + "url": "$OTA_URL/v$VERSION/openwrt-$VERSION-x86-64-generic-squashfs-combined-efi.img.gz" } ] } @@ -532,9 +532,9 @@ elif [ "$platform" = "bcm53xx" ]; then if [ "$1" = "rc2" ]; then mkdir -p ota if [ "$MINIMAL_BUILD" = "y" ]; then - BUILD_TYPE=minimal + OTA_URL="https://r8500.cooluc.com/d/minimal/openwrt-23.05" else - BUILD_TYPE=releases + OTA_URL="https://github.com/sbwml/builder/releases/download" fi VERSION=$(sed 's/v//g' version.txt) SHA256=$(sha256sum bin/targets/bcm53xx/generic/*-bcm53xx-generic-netgear_r8500-squashfs.chk | awk '{print $1}') @@ -544,7 +544,7 @@ elif [ "$platform" = "bcm53xx" ]; then { "build_date": "$CURRENT_DATE", "sha256sum": "$SHA256", - "url": "https://github.com/sbwml/builder/releases/download/v$VERSION/openwrt-$VERSION-bcm53xx-generic-netgear_r8500-squashfs.chk" + "url": "$OTA_URL/v$VERSION/openwrt-$VERSION-bcm53xx-generic-netgear_r8500-squashfs.chk" } ] } @@ -564,13 +564,10 @@ else # OTA json if [ "$1" = "rc2" ]; then mkdir -p ota - if [ "$MINIMAL_BUILD" = "y" ]; then - BUILD_TYPE=minimal - else - BUILD_TYPE=releases - fi + OTA_URL="https://github.com/sbwml/builder/releases/download" VERSION=$(sed 's/v//g' version.txt) if [ "$model" = "nanopi-r4s" ]; then + [ "$MINIMAL_BUILD" = "y" ] && OTA_URL="https://r4s.cooluc.com/d/minimal/openwrt-23.05" SHA256=$(sha256sum bin/targets/rockchip/armv8*/*-squashfs-sysupgrade.img.gz | awk '{print $1}') cat > ota/fw.json < ota/fw.json < Date: Sat, 27 Jul 2024 23:43:45 +0800 Subject: [PATCH 2/2] watchcat: remove default ping reboot config Signed-off-by: sbwml --- openwrt/scripts/02-prepare_package.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openwrt/scripts/02-prepare_package.sh b/openwrt/scripts/02-prepare_package.sh index 6b05f9ca5..96a01b146 100644 --- a/openwrt/scripts/02-prepare_package.sh +++ b/openwrt/scripts/02-prepare_package.sh @@ -180,3 +180,6 @@ git clone https://$github/sbwml/feeds_packages_utils_unzip feeds/packages/utils/ # tcp-brutal git clone https://$github/sbwml/package_kernel_tcp-brutal package/kernel/tcp-brutal + +# watchcat - clean config +true > feeds/packages/utils/watchcat/files/watchcat.config