Skip to content

Commit 81d6959

Browse files
Minor changes to improve the experience
Signed-off-by: Nicholas Sun <nicholas-sun@outlook.com>
1 parent c85fade commit 81d6959

3 files changed

Lines changed: 10 additions & 1 deletion

File tree

PATCH/duplicate/addition-trans-zh-rockchip/files/zzz-default-settings

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ sed -i 's,#USE_SOFTDRIVERS = 2,USE_SOFTDRIVERS = 1,g' /etc/ssl/openssl.cnf
5151
sed -i '/log-facility/d' /etc/dnsmasq.conf
5252
echo "log-facility=/dev/null" >> /etc/dnsmasq.conf
5353

54+
#Dae
55+
[ -f '/etc/dae/config.dae' ] && chmod 600 /etc/dae/config.dae
56+
5457
#Others
5558
[ ! -f '/usr/bin/ip' ] && [ -f '/sbin/ip' ] && ln -sf /sbin/ip /usr/bin/ip
5659
[ ! -f '/usr/bin/wget-ssl' ] && [ -f '/usr/bin/wget' ] && ln -sf /usr/bin/wget /usr/bin/wget-ssl

PATCH/duplicate/addition-trans-zh-x86/files/zzz-default-settings

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ uci commit firewall
4747
sed -i '/log-facility/d' /etc/dnsmasq.conf
4848
echo "log-facility=/dev/null" >> /etc/dnsmasq.conf
4949

50+
#Dae
51+
[ -f '/etc/dae/config.dae' ] && chmod 600 /etc/dae/config.dae
52+
5053
#Others
5154
[ ! -f '/usr/bin/ip' ] && [ -f '/sbin/ip' ] && ln -sf /sbin/ip /usr/bin/ip
5255
[ ! -f '/usr/bin/wget-ssl' ] && [ -f '/usr/bin/wget' ] && ln -sf /usr/bin/wget /usr/bin/wget-ssl

SCRIPTS/02_prepare_package.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ cp -rf ../immortalwrt/package/network/utils/nftables ./package/network/utils/nft
4343
patch -p1 <../PATCH/firewall/luci-app-firewall_add_fullcone.patch
4444
# FullCone modules
4545
git clone --depth 1 https://github.com/fullcone-nat-nftables/nft-fullcone package/new/nft-fullcone
46+
# Remove obsolete options
47+
sed -i 's/syn_flood/synflood_protect/g' package/network/config/firewall/files/firewall.config
4648

4749
## Change x86 & rockchip target and u-boot
4850
rm -rf ./target/linux/rockchip
@@ -77,7 +79,8 @@ sed -i 's,noinitrd,noinitrd mitigations=off,g' target/linux/x86/image/grub-pc.cf
7779
# AutoCore
7880
cp -rf ../immortalwrt/package/emortal/autocore ./package/new/autocore
7981
sed -i 's/"getTempInfo" /"getTempInfo", "getCPUBench", "getCPUUsage" /g' package/new/autocore/files/luci-mod-status-autocore.json
80-
sed -i '/"$threads"/d' package/new/autocore/files/autocore
82+
rm -rf ./package/new/autocore/files/autocore
83+
wget https://raw.githubusercontent.com/QiuSimons/OpenWrt-Add/master/autocore/files/x86/autocore -O package/new/autocore/files/autocore
8184
rm -rf ./feeds/luci/modules/luci-base
8285
cp -rf ../immortalwrt_luci/modules/luci-base ./feeds/luci/modules/luci-base
8386
sed -i "s,(br-lan),,g" feeds/luci/modules/luci-base/root/usr/share/rpcd/ucode/luci

0 commit comments

Comments
 (0)