|
@@ -57,7 +57,7 @@ echo "
|
|
|
|
|
|
7. newifi-d2
|
|
7. newifi-d2
|
|
|
|
|
|
-8. XY-C5
|
|
|
|
|
|
+8. Rpi-4B
|
|
|
|
|
|
9. Exit
|
|
9. Exit
|
|
|
|
|
|
@@ -97,7 +97,7 @@ case $CHOOSE in
|
|
break
|
|
break
|
|
;;
|
|
;;
|
|
8)
|
|
8)
|
|
- firmware="XY-C5"
|
|
|
|
|
|
+ firmware="Rpi-4B"
|
|
break
|
|
break
|
|
;;
|
|
;;
|
|
9) exit 0
|
|
9) exit 0
|
|
@@ -106,21 +106,21 @@ case $CHOOSE in
|
|
esac
|
|
esac
|
|
done
|
|
done
|
|
|
|
|
|
|
|
+git clone -b openwrt-21.02 --depth 1 https://github.com/openwrt/openwrt
|
|
|
|
+svn co https://github.com/garypang13/OpenWrt/trunk/devices openwrt/devices
|
|
|
|
+
|
|
if [[ $firmware =~ (redmi-ac2100|phicomm-k2p|newifi-d2|k2p-32m-usb|XY-C5|xiaomi-r3p) ]]; then
|
|
if [[ $firmware =~ (redmi-ac2100|phicomm-k2p|newifi-d2|k2p-32m-usb|XY-C5|xiaomi-r3p) ]]; then
|
|
- git clone -b openwrt-21.02 --depth 1 https://github.com/openwrt/openwrt
|
|
|
|
- svn co https://github.com/garypang13/Actions-OpenWrt/trunk/devices openwrt/devices
|
|
|
|
cd openwrt
|
|
cd openwrt
|
|
wget -cO sdk.tar.xz https://mirrors.cloud.tencent.com/openwrt/releases/21.02-SNAPSHOT/targets/ramips/mt7621/openwrt-sdk-21.02-SNAPSHOT-ramips-mt7621_gcc-8.4.0_musl.Linux-x86_64.tar.xz
|
|
wget -cO sdk.tar.xz https://mirrors.cloud.tencent.com/openwrt/releases/21.02-SNAPSHOT/targets/ramips/mt7621/openwrt-sdk-21.02-SNAPSHOT-ramips-mt7621_gcc-8.4.0_musl.Linux-x86_64.tar.xz
|
|
elif [[ $firmware =~ (nanopi-r2s|nanopi-r4s) ]]; then
|
|
elif [[ $firmware =~ (nanopi-r2s|nanopi-r4s) ]]; then
|
|
- git clone -b openwrt-21.02 --depth 1 https://github.com/openwrt/openwrt
|
|
|
|
- svn co https://github.com/garypang13/Actions-OpenWrt/trunk/devices openwrt/devices
|
|
|
|
cd openwrt
|
|
cd openwrt
|
|
wget -cO sdk.tar.xz https://mirrors.cloud.tencent.com/openwrt/releases/21.02-SNAPSHOT/targets/rockchip/armv8/openwrt-sdk-21.02-SNAPSHOT-rockchip-armv8_gcc-8.4.0_musl.Linux-x86_64.tar.xz
|
|
wget -cO sdk.tar.xz https://mirrors.cloud.tencent.com/openwrt/releases/21.02-SNAPSHOT/targets/rockchip/armv8/openwrt-sdk-21.02-SNAPSHOT-rockchip-armv8_gcc-8.4.0_musl.Linux-x86_64.tar.xz
|
|
elif [[ $firmware == "x86_64" ]]; then
|
|
elif [[ $firmware == "x86_64" ]]; then
|
|
- git clone -b openwrt-21.02 --depth 1 https://github.com/openwrt/openwrt
|
|
|
|
- svn co https://github.com/garypang13/Actions-OpenWrt/trunk/devices openwrt/devices
|
|
|
|
cd openwrt
|
|
cd openwrt
|
|
wget -cO sdk.tar.xz https://mirrors.cloud.tencent.com/openwrt/releases/21.02-SNAPSHOT/targets/x86/64/openwrt-sdk-21.02-SNAPSHOT-x86-64_gcc-8.4.0_musl.Linux-x86_64.tar.xz
|
|
wget -cO sdk.tar.xz https://mirrors.cloud.tencent.com/openwrt/releases/21.02-SNAPSHOT/targets/x86/64/openwrt-sdk-21.02-SNAPSHOT-x86-64_gcc-8.4.0_musl.Linux-x86_64.tar.xz
|
|
|
|
+elif [[ $firmware == "Rpi-4B" ]]; then
|
|
|
|
+ cd openwrt
|
|
|
|
+ wget -cO sdk.tar.xz https://downloads.openwrt.org/releases/21.02-SNAPSHOT/targets/bcm27xx/bcm2711/openwrt-sdk-21.02-SNAPSHOT-bcm27xx-bcm2711_gcc-8.4.0_musl.Linux-x86_64.tar.xz
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
|