garypang13 4 年之前
父节点
当前提交
679a565df9
共有 3 个文件被更改,包括 6 次插入6 次删除
  1. 4 4
      devices/common/diy.sh
  2. 1 1
      devices/nanopi-r2s/diy.sh
  3. 1 1
      devices/nanopi-r4s/diy.sh

+ 4 - 4
devices/common/diy.sh

@@ -7,16 +7,16 @@ rm -Rf feeds/custom/diy
 sed -i 's/Os/O2/g' include/target.mk
 rm -rf target/linux package/kernel
 svn export https://github.com/openwrt/openwrt/trunk/target/linux target/linux
-curl https://raw.githubusercontent.com/openwrt/openwrt/master/include/kernel-version.mk>include/kernel-version.mk
+curl -L https://raw.githubusercontent.com/openwrt/openwrt/master/include/kernel-version.mk>include/kernel-version.mk
 svn export https://github.com/openwrt/openwrt/trunk/package/kernel package/kernel
-curl https://raw.githubusercontent.com/openwrt/openwrt/master/include/kernel-defaults.mk>include/kernel-defaults.mk
+curl -L https://raw.githubusercontent.com/openwrt/openwrt/master/include/kernel-defaults.mk>include/kernel-defaults.mk
 rm -Rf tools/upx && svn export https://github.com/coolsnowwolf/lede/trunk/tools/upx tools/upx
 rm -Rf tools/ucl && svn export https://github.com/coolsnowwolf/lede/trunk/tools/ucl tools/ucl
 sed -i 's?zstd$?zstd ucl upx\n$(curdir)/upx/compile := $(curdir)/ucl/compile?g' tools/Makefile
 sed -i 's/ libelf//' tools/Makefile
 svn co https://github.com/immortalwrt/immortalwrt/branches/master/target/linux/generic/hack-5.4 target/linux/generic/hack-5.4
 svn co https://github.com/immortalwrt/immortalwrt/branches/master/target/linux/generic/hack-5.10 target/linux/generic/hack-5.10
-curl https://raw.githubusercontent.com/immortalwrt/immortalwrt/master/target/linux/generic/pending-5.4/601-add-kernel-imq-support.patch>target/linux/generic/pending-5.4/601-add-kernel-imq-support.patch
+curl -L https://raw.githubusercontent.com/immortalwrt/immortalwrt/master/target/linux/generic/pending-5.4/601-add-kernel-imq-support.patch>target/linux/generic/pending-5.4/601-add-kernel-imq-support.patch
 svn export --force https://github.com/immortalwrt/immortalwrt/branches/openwrt-21.02/package/network/services/ppp package/network/services/ppp
 svn export --force https://github.com/openwrt/openwrt/trunk/package/libs/libnfnetlink package/libs/libnfnetlink
 svn export --force https://github.com/immortalwrt/immortalwrt/branches/master/package/network/services/dnsmasq package/network/services/dnsmasq
@@ -36,7 +36,7 @@ sed -i 's/max_requests 3/max_requests 20/g' package/network/services/uhttpd/file
 #svn export https://github.com/immortalwrt/packages/trunk/lang/golang feeds/packages/lang/golang
 #svn export https://github.com/immortalwrt/packages/trunk/lang/node feeds/packages/lang/node
 mkdir package/network/config/firewall/patches
-curl https://github.com/coolsnowwolf/lede/raw/master/package/network/config/firewall/patches/fullconenat.patch>package/network/config/firewall/patches/fullconenat.patch
+curl -L https://github.com/coolsnowwolf/lede/raw/master/package/network/config/firewall/patches/fullconenat.patch>package/network/config/firewall/patches/fullconenat.patch
 sed -i "s/+nginx\( \|$\)/+nginx-ssl\1/g"  package/*/*/*/Makefile
 sed -i 's/+python\( \|$\)/+python3/g' package/*/*/*/Makefile
 sed -i 's?../../lang?$(TOPDIR)/feeds/packages/lang?g' package/feeds/custom/*/Makefile

+ 1 - 1
devices/nanopi-r2s/diy.sh

@@ -7,7 +7,7 @@ svn export --force https://github.com/openwrt/openwrt/trunk/target/linux/rockchi
 rm -Rf target/linux/rockchip/patches-5.10/{006-*-NanoPi-R,007-*-R4S}.patch
 svn export https://github.com/immortalwrt/immortalwrt/branches/master/package/boot/arm-trusted-firmware-rk3328 package/boot/arm-trusted-firmware-rk3328
 
-curl https://github.com/immortalwrt/immortalwrt/raw/master/package/kernel/linux/modules/video.mk>package/kernel/linux/modules/video.mk
+curl -L https://github.com/immortalwrt/immortalwrt/raw/master/package/kernel/linux/modules/video.mk>package/kernel/linux/modules/video.mk
 
 sed -i 's/5.4/5.10/g' target/linux/rockchip/Makefile
 

+ 1 - 1
devices/nanopi-r4s/diy.sh

@@ -6,7 +6,7 @@ svn export --force https://github.com/immortalwrt/immortalwrt/branches/master/ta
 svn export --force https://github.com/openwrt/openwrt/trunk/target/linux/rockchip/patches-5.10 target/linux/rockchip/patches-5.10
 rm -Rf target/linux/rockchip/patches-5.10/{006-*-NanoPi-R,007-*-R4S}.patch
 
-curl https://github.com/immortalwrt/immortalwrt/raw/master/package/kernel/linux/modules/video.mk>package/kernel/linux/modules/video.mk
+curl -L https://github.com/immortalwrt/immortalwrt/raw/master/package/kernel/linux/modules/video.mk>package/kernel/linux/modules/video.mk
 
 sed -i 's/5.4/5.10/g' target/linux/rockchip/Makefile