forked from jcjyxjs/Actions-OpenWrt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdiy-part2.sh
executable file
·20 lines (17 loc) · 904 Bytes
/
diy-part2.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
#
# Copyright (c) 2019-2020 P3TERX <https://p3terx.com>
#
# This is free software, licensed under the MIT License.
# See /LICENSE for more information.
#
# https://github.com/P3TERX/Actions-OpenWrt
# File name: diy-part2.sh
# Description: OpenWrt DIY script part 2 (After Update feeds)
# Modify default IP
sed -i 's/192.168.1.1/192.168.123.253/g' package/base-files/files/bin/config_generate
sed -i 's/root:.*/root:$1$wfbS7YC3$oBWXx0IpkYy8ROq0hczN7\/:18436:0:99999:7:::/g' package/base-files/files/etc/shadow
sed -i '/uci commit system/i\uci set system.@system[0].hostname='JalaOp'' package/lean/default-settings/files/zzz-default-settings
sed -i "s/OpenWrt /liu @ JalaOp /g" package/lean/default-settings/files/zzz-default-settings
#修正连接数(by ベ七秒鱼ベ)
sed -i '/customized in this file/a net.netfilter.nf_conntrack_max=165535' package/base-files/files/etc/sysctl.conf