Skip to content

Commit 247fe9a

Browse files
Remove luci-app-daed and daed ( Keep dae only )
updategeo: add sha256 checksum Signed-off-by: Nicholas Sun <nicholas-sun@outlook.com>
1 parent 2769622 commit 247fe9a

8 files changed

Lines changed: 38 additions & 36 deletions

File tree

PATCH/odhcpd/001-config-allow-configuring-limit-of-min-and-max-value.patch renamed to PATCH/odhcpd/0001-config-allow-configuring-max-limit-for-preferred-and.patch

File renamed without changes.

PATCH/script/updategeo.sh

100644100755
Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,44 @@ geoip_url="https://ghproxy.com/https://github.com/Loyalsoldier/v2ray-rules-dat/r
44
geoip_path="/tmp/geoip.dat"
55
geosite_url="https://ghproxy.com/https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat"
66
geosite_path="/tmp/geosite.dat"
7+
geoip_hash_url="https://ghproxy.com/https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat.sha256sum"
8+
geoip_hash_path="/tmp/geoip.dat.sha256sum"
9+
geosite_hash_url="https://ghproxy.com/https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat.sha256sum"
10+
geosite_hash_path="/tmp/geosite.dat.sha256sum"
711

8-
wget -O $geoip_path $geoip_url
9-
wget -O $geosite_path $geosite_url
12+
echo -e "\033[33mStart Downloading...... It won't take long\033[0m"
13+
wget -qO $geoip_path $geoip_url
14+
wget -qO $geosite_path $geosite_url
15+
wget -qO $geoip_hash_path $geoip_hash_url
16+
wget -qO $geosite_hash_path $geosite_hash_url
17+
18+
local_geoip_hash=$(sha256sum $geoip_path | awk '{print $1}')
19+
local_geosite_hash=$(sha256sum $geosite_path | awk '{print $1}')
20+
github_geoip_hash=$(cat $geoip_hash_path | awk '{print $1}')
21+
github_geosite_hash=$(cat $geosite_hash_path | awk '{print $1}')
1022

1123
mkdir -p /etc/dae
1224

13-
if [ -f $geoip_path ]; then
25+
if [ -f $geoip_path ] && [ $local_geoip_hash = $github_geoip_hash ]; then
26+
echo -e "\033[32mGeoIP sha256 check passed! Hash is $local_geoip_hash \033[0m"
1427
mv $geoip_path /etc/dae/geoip.dat
28+
rm $geoip_hash_path
1529
else
16-
echo "GeoIP download failed, use original file"
30+
echo -e "\033[31mGeoIP download failed or sha256 mismatch, use original file\033[0m"
31+
echo -e "The downloaded GeoIP hash is $local_geoip_hash , should be $github_geoip_hash"
32+
rm $geoip_hash_path
33+
rm $geoip_path
1734
fi
1835

19-
if [ -f $geosite_path ]; then
36+
if [ -f $geosite_path ] && [ $local_geosite_hash = $github_geosite_hash ]; then
37+
echo -e "\033[32mGeoSite sha256 check passed! Hash is $local_geosite_hash \033[0m"
2038
mv $geosite_path /etc/dae/geosite.dat
39+
rm $geosite_hash_path
2140
else
22-
echo "GeoSite download failed, use original file"
41+
echo -e "\033[31mGeoSite download failed or sha256 mismatch, use original file\033[0m"
42+
echo -e "The downloaded GeoSite hash is $local_geosite_hash , should be $github_geosite_hash"
43+
rm $geosite_hash_path
44+
rm $geosite_path
2345
fi
2446

2547
chmod 640 /etc/dae/geoip.dat

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,15 @@ OpenWrt official v23.05.0-rc4
4444

4545
5.Add package [dae](https://github.com/daeuniverse/dae), a high performance eBPF transparent proxy client
4646

47-
6.Add `luci-app-daed` to enable [daed](https://github.com/daeuniverse/daed), a modern dashboard for dae
47+
6.Backport Google [BBRv3](https://www.phoronix.com/news/Google-BBRv3-Linux) TCP congestion control
4848

49-
7.Backport Google [BBRv3](https://www.phoronix.com/news/Google-BBRv3-Linux) TCP congestion control
49+
7.Backport [LRNG](https://www.chronox.de/lrng.html) ( Linux Random Number Generator )
5050

51-
8.Backport [LRNG](https://www.chronox.de/lrng.html) ( Linux Random Number Generator )
51+
8.Update to firewall4, firewall3 no longer supported ( Huge improvements in performance )
5252

53-
9.Update to firewall4, firewall3 no longer supported ( Huge improvements in performance )
53+
9.Add support for phone USB hotspot sharing, both for Android and iPhone
5454

55-
10.Add support for phone USB hotspot sharing, both for Android and iPhone
56-
57-
11.Disable IPv6 by default
55+
10.Disable IPv6 by default
5856

5957
* If you do need IPv6
6058

@@ -68,7 +66,9 @@ uci set dhcp.@dnsmasq[0].filter_aaaa=0
6866
uci commit dhcp
6967
```
7068
* 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!
71-
* Bug fixed: Add `dhcp.lan.max_preferred_lifetime` and `dhcp.lan.max_valid_lifetime`. And fixed `lan` IPv6 misbehaving when `wan` is getting IPv6-PD via PPPoE
69+
* Bug fixed:
70+
* Add `dhcp.lan.max_preferred_lifetime` and `dhcp.lan.max_valid_lifetime` ( Not in the LuCI )
71+
* Add scripts to fix `lan` IPv6 misbehaving when `wan` is getting IPv6-PD via PPPoE
7272

7373
#### X86_64 Feature
7474

SCRIPTS/02_prepare_package.sh

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ clear
66
sed -i 's/Os/O2/g' include/target.mk
77
# Update feeds
88
./scripts/feeds update -a && ./scripts/feeds install -a
9-
# Irqbalance
10-
sed -i "s/enabled '0'/enabled '1'/g" feeds/packages/utils/irqbalance/files/irqbalance.config
119
# Remove snapshot tags
1210
sed -i 's,-SNAPSHOT,,g' include/version.mk
1311
sed -i 's,-SNAPSHOT,,g' package/base-files/image-config.in
@@ -44,7 +42,7 @@ git clone --depth 1 https://github.com/fullcone-nat-nftables/nft-fullcone packag
4442
# Odhcp
4543
patch -p1 <../PATCH/odhcp6c/1002-odhcp6c-support-dhcpv6-hotplug.patch
4644
mkdir -p package/network/services/odhcpd/patches
47-
cp -f ../PATCH/odhcpd/001-config-allow-configuring-limit-of-min-and-max-value.patch ./package/network/services/odhcpd/patches/001-config-allow-configuring-limit-of-min-and-max-value.patch
45+
cp -f ../PATCH/odhcpd/0001-config-allow-configuring-max-limit-for-preferred-and.patch ./package/network/services/odhcpd/patches/0001-config-allow-configuring-max-limit-for-preferred-and.patch
4846
# Remove obsolete options
4947
sed -i 's/syn_flood/synflood_protect/g' package/network/config/firewall/files/firewall.config
5048
# BBRv3
@@ -99,12 +97,6 @@ ln -sf ../../../feeds/luci/applications/luci-app-autoreboot ./package/feeds/luci
9997
# Dae ready
10098
cp -rf ../immortalwrt_pkg/net/dae ./feeds/packages/net/dae
10199
ln -sf ../../../feeds/packages/net/dae ./package/feeds/packages/dae
102-
cp -rf ../immortalwrt_pkg/net/daed ./feeds/packages/net/daed
103-
ln -sf ../../../feeds/packages/net/daed ./package/feeds/packages/daed
104-
cp -rf ../immortalwrt_luci/applications/luci-app-daed ./feeds/luci/applications/luci-app-daed
105-
ln -sf ../../../feeds/luci/applications/luci-app-daed ./package/feeds/luci/luci-app-daed
106-
rm -rf ./feeds/packages/net/v2ray-geodata/Makefile
107-
wget https://raw.githubusercontent.com/QiuSimons/openwrt-mos/master/v2ray-geodata/Makefile -O feeds/packages/net/v2ray-geodata/Makefile
108100
wget -qO - https://github.com/immortalwrt/immortalwrt/commit/73e5679.patch | patch -p1
109101
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
110102
pushd feeds/packages

SCRIPTS/switch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
#
99
# Change Lines
1010
#
11-
# 8 Oct
11+
# 11 Oct

SEED/R2S/config.seed

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ CONFIG_PACKAGE_autocore=y
2828
CONFIG_PACKAGE_coremark=y
2929
CONFIG_PACKAGE_coreutils-nohup=y
3030
CONFIG_PACKAGE_dae=y
31-
CONFIG_PACKAGE_daed=y
32-
CONFIG_PACKAGE_daed-geoip=y
33-
CONFIG_PACKAGE_daed-geosite=y
3431
CONFIG_PACKAGE_dnsmasq-full=y
3532
# CONFIG_PACKAGE_dnsmasq_full_ipset is not set
3633
# CONFIG_PACKAGE_dnsmasq is not set
@@ -74,7 +71,6 @@ CONFIG_PACKAGE_htop=y
7471
CONFIG_PACKAGE_iftop=y
7572
CONFIG_PACKAGE_iperf3=y
7673
CONFIG_PACKAGE_luci-app-autoreboot=y
77-
CONFIG_PACKAGE_luci-app-daed=y
7874
CONFIG_PACKAGE_luci-app-opkg=y
7975
CONFIG_PACKAGE_luci-app-ramfree=y
8076
CONFIG_PACKAGE_luci-theme-bootstrap=y

SEED/R4S/config.seed

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ CONFIG_PACKAGE_autocore=y
2828
CONFIG_PACKAGE_coremark=y
2929
CONFIG_PACKAGE_coreutils-nohup=y
3030
CONFIG_PACKAGE_dae=y
31-
CONFIG_PACKAGE_daed=y
32-
CONFIG_PACKAGE_daed-geoip=y
33-
CONFIG_PACKAGE_daed-geosite=y
3431
CONFIG_PACKAGE_dnsmasq-full=y
3532
# CONFIG_PACKAGE_dnsmasq_full_ipset is not set
3633
# CONFIG_PACKAGE_dnsmasq is not set
@@ -74,7 +71,6 @@ CONFIG_PACKAGE_htop=y
7471
CONFIG_PACKAGE_iftop=y
7572
CONFIG_PACKAGE_iperf3=y
7673
CONFIG_PACKAGE_luci-app-autoreboot=y
77-
CONFIG_PACKAGE_luci-app-daed=y
7874
CONFIG_PACKAGE_luci-app-opkg=y
7975
CONFIG_PACKAGE_luci-app-ramfree=y
8076
CONFIG_PACKAGE_luci-theme-bootstrap=y

SEED/X86/config.seed

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@ CONFIG_PACKAGE_autocore=y
3131
CONFIG_PACKAGE_coremark=y
3232
CONFIG_PACKAGE_coreutils-nohup=y
3333
CONFIG_PACKAGE_dae=y
34-
CONFIG_PACKAGE_daed=y
35-
CONFIG_PACKAGE_daed-geoip=y
36-
CONFIG_PACKAGE_daed-geosite=y
3734
CONFIG_PACKAGE_dnsmasq-full=y
3835
# CONFIG_PACKAGE_dnsmasq_full_ipset is not set
3936
# CONFIG_PACKAGE_dnsmasq is not set
@@ -88,7 +85,6 @@ CONFIG_PACKAGE_htop=y
8885
CONFIG_PACKAGE_iftop=y
8986
CONFIG_PACKAGE_iperf3=y
9087
CONFIG_PACKAGE_luci-app-autoreboot=y
91-
CONFIG_PACKAGE_luci-app-daed=y
9288
CONFIG_PACKAGE_luci-app-opkg=y
9389
CONFIG_PACKAGE_luci-app-ramfree=y
9490
CONFIG_PACKAGE_luci-theme-bootstrap=y

0 commit comments

Comments
 (0)