Skip to content

Commit 481bb71

Browse files
Add package luci-app-daed
Signed-off-by: Nicholas Sun <nicholas-sun@outlook.com>
1 parent 324b8ba commit 481bb71

17 files changed

Lines changed: 116 additions & 116 deletions

.github/workflows/R2S-OpenWrt.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ jobs:
5050
sudo -E apt-get -qq autoremove --purge
5151
sudo -E apt-get -qq clean
5252
sudo -E git config --global user.name 'GitHub Actions' && git config --global user.email 'noreply@github.com'
53+
sudo -E git config --global core.abbrev auto
5354
df -h
5455
- name: Prepare Mixedwrt
5556
run: |

.github/workflows/R4S-OpenWrt.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ jobs:
5050
sudo -E apt-get -qq autoremove --purge
5151
sudo -E apt-get -qq clean
5252
sudo -E git config --global user.name 'GitHub Actions' && git config --global user.email 'noreply@github.com'
53+
sudo -E git config --global core.abbrev auto
5354
df -h
5455
- name: Prepare Mixedwrt
5556
run: |

.github/workflows/X86-OpenWrt.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ jobs:
5050
sudo -E apt-get -qq autoremove --purge
5151
sudo -E apt-get -qq clean
5252
sudo -E git config --global user.name 'GitHub Actions' && git config --global user.email 'noreply@github.com'
53+
sudo -E git config --global core.abbrev auto
5354
df -h
5455
- name: Prepare Mixedwrt
5556
run: |
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
diff --git a/utils/cgroupfs-mount/files/cgroupfs-mount.init b/utils/cgroupfs-mount/files/cgroupfs-mount.init
2+
index 0d6b68d..4ae3185 100755
3+
--- a/utils/cgroupfs-mount/files/cgroupfs-mount.init
4+
+++ b/utils/cgroupfs-mount/files/cgroupfs-mount.init
5+
@@ -4,9 +4,17 @@ START=01
6+
7+
boot() {
8+
# Procd mounts non-hierarchical cgroupfs so unmount first before cgroupfs-mount
9+
- if mountpoint -q /sys/fs/cgroup; then
10+
- umount /sys/fs/cgroup/
11+
- fi
12+
+ umount_cgroup() {
13+
+ for sys in $(awk '!/^#/ { if ($4 == 1) print $1 }' /proc/cgroups); do
14+
+ if mountpoint -q /sys/fs/cgroup/$sys; then
15+
+ umount /sys/fs/cgroup/$sys || true
16+
+ fi
17+
+ done
18+
+ if mountpoint -q /sys/fs/cgroup; then
19+
+ umount /sys/fs/cgroup || true
20+
+ fi
21+
+ }
22+
23+
- cgroupfs-mount
24+
+ umount_cgroup
25+
+ cgroupfs-mount v2
26+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
diff --git a/cgroupfs-mount b/cgroupfs-mount
2+
index 40810ba..f4c9f45 100755
3+
--- a/cgroupfs-mount
4+
+++ b/cgroupfs-mount
5+
@@ -26,7 +26,11 @@ fi
6+
7+
# mount /sys/fs/cgroup if not already done
8+
if ! mountpoint -q /sys/fs/cgroup; then
9+
- mount -t tmpfs -o uid=0,gid=0,mode=0755 cgroup /sys/fs/cgroup
10+
+ if [ "$1" = "v2" ]; then
11+
+ mount -t cgroup2 -o rw,nosuid,nodev,noexec,relatime,nsdelegate cgroup2 /sys/fs/cgroup
12+
+ else
13+
+ mount -t tmpfs -o uid=0,gid=0,mode=0755 cgroup /sys/fs/cgroup
14+
+ fi
15+
fi
16+
17+
cd /sys/fs/cgroup
18+
@@ -34,9 +38,11 @@ cd /sys/fs/cgroup
19+
# get/mount list of enabled cgroup controllers
20+
for sys in $(awk '!/^#/ { if ($4 == 1) print $1 }' /proc/cgroups); do
21+
mkdir -p $sys
22+
- if ! mountpoint -q $sys; then
23+
- if ! mount -n -t cgroup -o $sys cgroup $sys; then
24+
- rmdir $sys || true
25+
+ if [ "$1" != "v2" ]; then
26+
+ if ! mountpoint -q $sys; then
27+
+ if ! mount -n -t cgroup -o $sys cgroup $sys; then
28+
+ rmdir $sys || true
29+
+ fi
30+
fi
31+
fi
32+
done

PATCH/script/updategeo.sh

Lines changed: 0 additions & 28 deletions
This file was deleted.

README.md

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
11

2-
# The honeymoon is over, but...
3-
4-
* Wasted too much time playing Tears of the Kingdom, maybe Ganondorf was killed around the 16th of August, so I'll be updating the repository at that time~
5-
* 愿可盖大人荣光永存!
6-
7-
![zelda](https://i.redd.it/totk-lets-be-honest-link-would-have-spoilers-on-day-one-v0-ruxcfjuzxm3b1.jpg?s=900bbf90aa557af0ce47b5e3481223b52c7907e5)
8-
92
## Notice
103

114
This repository is based on [QiuSimons/YAOF](https://github.com/QiuSimons/YAOF).
@@ -36,7 +29,7 @@ Password:None
3629

3730
### Version Informations
3831

39-
OpenWrt official v23.05.0-rc1
32+
OpenWrt official v23.05.0-rc2
4033

4134
---
4235
### Feature
@@ -50,24 +43,14 @@ OpenWrt official v23.05.0-rc1
5043
4.Opkg vermagic matched with OpenWrt manifest ( You can install the software as if you have AppStore~ )
5144

5245
5.Add package [dae](https://github.com/daeuniverse/dae), a high performance eBPF transparent proxy client
53-
Add command `updategeo` to download `geoip.dat` and `geosite.dat` and place them to the correct path for `dae`
54-
* The init of dae has a problem temporarily and cannot run yet
55-
* Run dae with command:
56-
```
57-
updategeo
58-
chmod 600 /etc/dae/config.dae
59-
dae run -c /etc/dae/config.dae
60-
```
61-
* Run dae with log output:
62-
```
63-
dae run -c /etc/dae/config.dae &> /tmp/dae.log
6446
```
47+
6.Add [luci-app-daed](https://github.com/QiuSimons/luci-app-daed) to enable [daed](https://github.com/daeuniverse/daed), a modern dashboard for dae
6548
66-
6.Update to firewall4, firewall3 no longer supported ( Huge improvements in performance )
49+
7.Update to firewall4, firewall3 no longer supported ( Huge improvements in performance )
6750
68-
7.Add support for phone USB hotspot sharing, both for Android and iPhone
51+
8.Add support for phone USB hotspot sharing, both for Android and iPhone
6952
70-
8.Disable IPv6 by default
53+
9.Disable IPv6 by default
7154
7255
* If you do need IPv6
7356
@@ -80,6 +63,7 @@ uci set dhcp.@dnsmasq[0].rebind_protection='0'
8063
uci del dhcp.@dnsmasq[0].filteraaaa
8164
uci commit dhcp
8265
```
66+
* PS: HYBRID mode is never a good choice, please learn about [IPv6](https://www.cisco.com/en/US/docs/switches/lan/catalyst3850/software/release/3se/consolidated_guide/b_consolidated_3850_3se_cg_chapter_0101011.html). Also odhcpd on OpenWrt has serious bugs!
8367
8468
#### X86_64 Feature
8569

SCRIPTS/01_get_ready.sh

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,13 @@
11
#!/bin/bash
22

33
# Clone source code
4-
#latest_release="$(curl -s https://api.github.com/repos/openwrt/openwrt/tags | grep -Eo "v23.05.+[0-9\.]" | head -n 1)"
5-
latest_release="$(curl -s https://github.com/openwrt/openwrt/tags | grep -Eo "v[0-9\.]+\-*r*c*[0-9]*.tar.gz" | sed -n '/[2-9][3-9]/p' | sed -n 1p | sed 's/.tar.gz//g')"
6-
git clone --single-branch -b ${latest_release} https://github.com/openwrt/openwrt openwrt_release
7-
git clone --single-branch -b openwrt-23.05 https://github.com/openwrt/openwrt openwrt
8-
rm -f ./openwrt/include/version.mk
9-
rm -f ./openwrt/include/kernel.mk
10-
rm -f ./openwrt/include/kernel-5.15
11-
rm -f ./openwrt/include/kernel-version.mk
12-
rm -f ./openwrt/include/toolchain-build.mk
13-
rm -f ./openwrt/include/kernel-defaults.mk
14-
rm -f ./openwrt/package/base-files/image-config.in
15-
rm -rf ./openwrt/target/linux/*
16-
rm -rf ./openwrt/package/kernel/linux/*
17-
cp -f ./openwrt_release/include/version.mk ./openwrt/include/version.mk
18-
cp -f ./openwrt_release/include/kernel.mk ./openwrt/include/kernel.mk
19-
cp -f ./openwrt_release/include/kernel-5.15 ./openwrt/include/kernel-5.15
20-
cp -f ./openwrt_release/include/kernel-version.mk ./openwrt/include/kernel-version.mk
21-
cp -f ./openwrt_release/include/toolchain-build.mk ./openwrt/include/toolchain-build.mk
22-
cp -f ./openwrt_release/include/kernel-defaults.mk ./openwrt/include/kernel-defaults.mk
23-
cp -f ./openwrt_release/package/base-files/image-config.in ./openwrt/package/base-files/image-config.in
24-
cp -f ./openwrt_release/version ./openwrt/version
25-
cp -f ./openwrt_release/version.date ./openwrt/version.date
26-
cp -rf ./openwrt_release/target/linux/* ./openwrt/target/linux/
27-
cp -rf ./openwrt_release/package/kernel/linux/* ./openwrt/package/kernel/linux/
4+
latest_release="$(curl -s https://api.github.com/repos/openwrt/openwrt/tags | grep -Eo "v23.05.+[0-9\.]" | head -n 1)"
5+
git clone --single-branch -b ${latest_release} https://github.com/openwrt/openwrt openwrt
6+
git clone --single-branch -b openwrt-23.05 https://github.com/openwrt/openwrt openwrt_snap
7+
find openwrt/package/* -maxdepth 0 ! -name 'firmware' ! -name 'kernel' ! -name 'base-files' ! -name 'Makefile' -exec rm -rf {} +
8+
rm -rf ./openwrt_snap/package/firmware ./openwrt_snap/package/kernel ./openwrt_snap/package/base-files ./openwrt_snap/package/Makefile
9+
cp -rf ./openwrt_snap/package/* ./openwrt/package/
10+
cp -rf ./openwrt_snap/feeds.conf.default ./openwrt/feeds.conf.default
2811

2912
# Clone packages
3013
git clone -b master --depth 1 https://github.com/immortalwrt/immortalwrt.git immortalwrt
@@ -38,5 +21,6 @@ git clone -b master --depth 1 https://github.com/coolsnowwolf/luci.git lede_luci
3821
git clone -b main --depth 1 https://github.com/openwrt/openwrt.git openwrt_ma
3922
git clone -b master --depth 1 https://github.com/openwrt/packages.git openwrt_pkg_ma
4023
git clone -b master --depth 1 https://github.com/openwrt/luci.git openwrt_luci_ma
24+
git clone -b master --depth 1 https://github.com/QiuSimons/openwrt-mos mosdns
4125

4226
exit 0

SCRIPTS/02_prepare_package.sh

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -43,24 +43,13 @@ sed -i 's/syn_flood/synflood_protect/g' package/network/config/firewall/files/fi
4343
## Change x86 & rockchip target and u-boot
4444
rm -rf ./target/linux/rockchip
4545
cp -rf ../immortalwrt_23/target/linux/rockchip ./target/linux/rockchip
46-
#rm -rf ./target/linux/rockchip/Makefile
47-
#cp -rf ../openwrt_release/target/linux/rockchip/Makefile ./target/linux/rockchip/Makefile
48-
#rm -rf ./target/linux/rockchip/armv8/config-5.15
49-
#cp -rf ../openwrt_release/target/linux/rockchip/armv8/config-5.15 ./target/linux/rockchip/armv8/config-5.15
5046
cp -rf ../PATCH/rockchip-5.15/* ./target/linux/rockchip/patches-5.15/
5147
rm -rf ./package/boot/uboot-rockchip
5248
cp -rf ../immortalwrt_23/package/boot/uboot-rockchip ./package/boot/uboot-rockchip
5349
rm -rf ./package/boot/arm-trusted-firmware-rockchip
5450
cp -rf ../immortalwrt_23/package/boot/arm-trusted-firmware-rockchip ./package/boot/arm-trusted-firmware-rockchip
55-
rm -rf ./package/kernel/linux/modules/video.mk
56-
cp -rf ../lede/package/kernel/linux/modules/video.mk ./package/kernel/linux/modules/video.mk
57-
sed -i '/nouveau\.ko/d' package/kernel/linux/modules/video.mk
58-
rm -rf ./package/firmware/linux-firmware/intel.mk
59-
cp -rf ../lede/package/firmware/linux-firmware/intel.mk ./package/firmware/linux-firmware/intel.mk
60-
rm -rf ./package/firmware/linux-firmware/Makefile
61-
cp -rf ../lede/package/firmware/linux-firmware/Makefile ./package/firmware/linux-firmware/Makefile
6251
wget -qO - https://github.com/openwrt/openwrt/commit/c21a3570.patch | patch -p1
63-
cp -rf ../lede/target/linux/x86/64/config-5.15 ./target/linux/x86/64/config-5.15
52+
sed -i '/I915/d' target/linux/x86/64/config-5.15
6453
# Disable mitigations
6554
sed -i 's,rootwait,rootwait mitigations=off,g' target/linux/rockchip/image/mmc.bootscript
6655
sed -i 's,rootwait,rootwait mitigations=off,g' target/linux/rockchip/image/nanopi-r2s.bootscript
@@ -84,19 +73,29 @@ rm -rf ./feeds/luci/modules/luci-mod-status
8473
cp -rf ../immortalwrt_luci_23/modules/luci-mod-status ./feeds/luci/modules/luci-mod-status
8574
rm -rf ./feeds/packages/utils/coremark
8675
cp -rf ../immortalwrt_pkg/utils/coremark ./feeds/packages/utils/coremark
76+
sed -i "s,-O3,-Ofast -funroll-loops -fpeel-loops -fgcse-sm -fgcse-las,g" feeds/packages/utils/coremark/Makefile
8777
cp -rf ../immortalwrt_23/package/utils/mhz ./package/utils/mhz
8878
# AutoReboot
8979
cp -rf ../immortalwrt_luci/applications/luci-app-autoreboot ./feeds/luci/applications/luci-app-autoreboot
9080
ln -sf ../../../feeds/luci/applications/luci-app-autoreboot ./package/feeds/luci/luci-app-autoreboot
9181
# Dae ready
9282
cp -rf ../immortalwrt_pkg/net/dae ./feeds/packages/net/dae
9383
ln -sf ../../../feeds/packages/net/dae ./package/feeds/packages/dae
94-
wget https://github.com/immortalwrt/immortalwrt/raw/openwrt-23.05/package/kernel/linux/modules/netsupport.mk -O package/kernel/linux/modules/netsupport.mk
84+
cp -rf ../immortalwrt_pkg/net/daed ./feeds/packages/net/daed
85+
ln -sf ../../../feeds/packages/net/daed ./package/feeds/packages/daed
86+
git clone -b master --depth 1 https://github.com/QiuSimons/luci-app-daed package/new/luci-app-daed
87+
rm -rf ./feeds/packages/net/v2ray-geodata
88+
cp -rf ../mosdns/v2ray-geodata ./package/new/v2ray-geodata
89+
wget -qO - https://github.com/openwrt/openwrt/commit/47ea58b.patch | patch -p1
90+
wget -qO - https://github.com/openwrt/openwrt/commit/ce3082d.patch | patch -p1
9591
wget https://github.com/immortalwrt/immortalwrt/raw/openwrt-23.05/target/linux/generic/hack-5.15/901-debloat_sock_diag.patch -O target/linux/generic/hack-5.15/901-debloat_sock_diag.patch
92+
wget -qO - https://github.com/immortalwrt/immortalwrt/commit/73e5679.patch | patch -p1
93+
wget https://github.com/immortalwrt/immortalwrt/raw/openwrt-23.05/target/linux/generic/backport-5.15/051-v5.18-bpf-Add-config-to-allow-loading-modules-with-BTF-mismatch.patch -O target/linux/generic/backport-5.15/051-v5.18-bpf-Add-config-to-allow-loading-modules-with-BTF-mismatch.patch
9694
pushd feeds/packages
97-
wget -qO - https://github.com/openwrt/packages/commit/7a64a5f4.patch | patch -p1
95+
patch -p1 <../../../PATCH/cgroupfs-mount/0001-fix-cgroupfs-mount.patch
9896
popd
99-
cp -rf ../PATCH/script/updategeo.sh ./package/base-files/files/bin/updategeo
97+
mkdir -p feeds/packages/utils/cgroupfs-mount/patches
98+
cp -rf ../PATCH/cgroupfs-mount/900-add-cgroupfs2.patch ./feeds/packages/utils/cgroupfs-mount/patches/
10099
# Dae update
101100
sed -i '/zip/d;/HASH/d;/RELEASE:=/d' feeds/packages/net/dae/Makefile
102101
sed -i "/VERSION:/ s/$/-$(date +'%Y%m%d')/" feeds/packages/net/dae/Makefile
@@ -125,5 +124,4 @@ cp -f ../PATCH/script/fuck package/base-files/files/usr/bin/fuck
125124
wget -qO - https://github.com/openwrt/openwrt/commit/bbf39d07.patch | patch -p1
126125
# Remove config
127126
rm -rf .config
128-
cat ../SEED/extra.cfg >> ./target/linux/generic/config-5.15
129127
sed -i 's,CONFIG_WERROR=y,# CONFIG_WERROR is not set,g' target/linux/generic/config-5.15

SCRIPTS/R2S/02_R2S.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ cp -rf ../PATCH/script/cputemp.sh ./package/base-files/files/bin/cputemp
2222
cp -rf ../PATCH/duplicate/files ./files
2323

2424
# Match Vermagic
25-
latest_release="$(curl -s https://github.com/openwrt/openwrt/tags | grep -Eo "v[0-9\.]+\-*r*c*[0-9]*.tar.gz" | sed -n '/[2-9][3-9]/p' | sed -n 1p | sed 's/.tar.gz//g' | sed 's/v//g')"
25+
latest_release="$(curl -s https://api.github.com/repos/openwrt/openwrt/tags | grep -Eo "v23.05.+[0-9\.]" | head -n 1)"
2626
wget https://downloads.openwrt.org/releases/${latest_release}/targets/rockchip/armv8/packages/Packages.gz
2727
zgrep -m 1 "Depends: kernel (=.*)$" Packages.gz | sed -e 's/.*-\(.*\))/\1/' >.vermagic
2828
sed -i -e 's/^\(.\).*vermagic$/\1cp $(TOPDIR)\/.vermagic $(LINUX_DIR)\/.vermagic/' include/kernel-defaults.mk

0 commit comments

Comments
 (0)