|
@@ -2,10 +2,10 @@
|
|
#=================================================
|
|
#=================================================
|
|
shopt -s extglob
|
|
shopt -s extglob
|
|
|
|
|
|
-commitid="$(curl -sfL https://github.com/openwrt/openwrt/tree/master/include | grep -o 'href=".*>kernel: 5.15' | head -1 | cut -d / -f 5 | cut -d '"' -f 1)"
|
|
|
|
|
|
+commitid="$(curl -sfL https://github.com/openwrt/openwrt/tree/master/include | grep -o 'href=".*>kernel: bump 5.15' | head -1 | cut -d / -f 5 | cut -d '"' -f 1)"
|
|
version="$(git rev-parse HEAD)"
|
|
version="$(git rev-parse HEAD)"
|
|
git checkout master
|
|
git checkout master
|
|
-[ "$(echo $(git log -1 --pretty=short) | grep "kernel: bump 5.15")" ] && git checkout $commitid
|
|
|
|
|
|
+#[ "$(echo $(git log -1 --pretty=short) | grep "kernel: bump 5.15")" ] && git checkout $commitid
|
|
mv -f target/linux package/kernel package/firmware/linux-firmware include/{kernel-*,netfilter.mk} .github/
|
|
mv -f target/linux package/kernel package/firmware/linux-firmware include/{kernel-*,netfilter.mk} .github/
|
|
git checkout $version
|
|
git checkout $version
|
|
rm -rf target/linux package/kernel package/firmware/linux-firmware include/kernel-version.mk include/kernel-5.15 include/kernel-defaults.mk
|
|
rm -rf target/linux package/kernel package/firmware/linux-firmware include/kernel-version.mk include/kernel-5.15 include/kernel-defaults.mk
|
|
@@ -15,12 +15,12 @@ mv -f .github/linux-firmware package/firmware/
|
|
mv -f .github/{kernel-*,netfilter.mk} include/
|
|
mv -f .github/{kernel-*,netfilter.mk} include/
|
|
sed -i 's/ libelf//' tools/Makefile
|
|
sed -i 's/ libelf//' tools/Makefile
|
|
|
|
|
|
-kernel_v="$(cat include/kernel-5.15 | grep LINUX_KERNEL_HASH-5.15* | cut -f 2 -d - | cut -f 1 -d ' ')"
|
|
|
|
|
|
+kernel_v="$(cat include/kernel-5.15 | grep LINUX_KERNEL_HASH-* | cut -f 2 -d - | cut -f 1 -d ' ')"
|
|
sed -i "s?targets/%S/packages?packages/%A/kmods/$kernel_v?" include/feeds.mk
|
|
sed -i "s?targets/%S/packages?packages/%A/kmods/$kernel_v?" include/feeds.mk
|
|
echo "$(date +"%s")" >version.date
|
|
echo "$(date +"%s")" >version.date
|
|
sed -i '/$(curdir)\/compile:/c\$(curdir)/compile: package/opkg/host/compile' package/Makefile
|
|
sed -i '/$(curdir)\/compile:/c\$(curdir)/compile: package/opkg/host/compile' package/Makefile
|
|
sed -i "s/DEFAULT_PACKAGES:=/DEFAULT_PACKAGES:=luci-app-advanced luci-app-firewall luci-app-gpsysupgrade luci-app-opkg luci-app-upnp luci-app-autoreboot \
|
|
sed -i "s/DEFAULT_PACKAGES:=/DEFAULT_PACKAGES:=luci-app-advanced luci-app-firewall luci-app-gpsysupgrade luci-app-opkg luci-app-upnp luci-app-autoreboot \
|
|
-luci-app-wizard luci-app-attendedsysupgrade dnsmasq-full luci-base luci-compat luci-lib-ipkg \
|
|
|
|
|
|
+luci-app-wizard luci-app-attendedsysupgrade dnsmasq-full luci-base luci-compat luci-lib-ipkg fdisk \
|
|
coremark wget-ssl curl htop nano zram-swap kmod-lib-zstd kmod-tcp-bbr bash \
|
|
coremark wget-ssl curl htop nano zram-swap kmod-lib-zstd kmod-tcp-bbr bash \
|
|
kmod-usb2 kmod-usb3 automount /" include/target.mk
|
|
kmod-usb2 kmod-usb3 automount /" include/target.mk
|
|
sed -i "/dnsmasq \\\/d" include/target.mk
|
|
sed -i "/dnsmasq \\\/d" include/target.mk
|
|
@@ -67,8 +67,8 @@ sed -i '$a CONFIG_ACPI=y\nCONFIG_X86_ACPI_CPUFREQ=y\nCONFIG_NR_CPUS=128\nCONFIG_
|
|
CONFIG_CRYPTO_CHACHA20POLY1305=y\nCONFIG_BINFMT_MISC=y' `find target/linux -path "target/linux/*/config-*"`
|
|
CONFIG_CRYPTO_CHACHA20POLY1305=y\nCONFIG_BINFMT_MISC=y' `find target/linux -path "target/linux/*/config-*"`
|
|
sed -i 's/max_requests 3/max_requests 20/g' package/network/services/uhttpd/files/uhttpd.config
|
|
sed -i 's/max_requests 3/max_requests 20/g' package/network/services/uhttpd/files/uhttpd.config
|
|
#rm -rf ./feeds/packages/lang/{golang,node}
|
|
#rm -rf ./feeds/packages/lang/{golang,node}
|
|
|
|
+sed -i "s/tty\(0\|1\)::askfirst/tty\1::respawn/g" target/linux/*/base-files/etc/inittab
|
|
|
|
|
|
-sed -i "s/tty1::askfirst/tty1::respawn/g" target/linux/*/base-files/etc/inittab
|
|
|
|
date=`date +%m.%d.%Y`
|
|
date=`date +%m.%d.%Y`
|
|
sed -i -e "/\(# \)\?REVISION:=/c\REVISION:=$date" -e '/VERSION_CODE:=/c\VERSION_CODE:=$(REVISION)' include/version.mk
|
|
sed -i -e "/\(# \)\?REVISION:=/c\REVISION:=$date" -e '/VERSION_CODE:=/c\VERSION_CODE:=$(REVISION)' include/version.mk
|
|
|
|
|