forked from lxiaya/openwrt-onecloud
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathop2.sh
More file actions
22 lines (18 loc) · 703 Bytes
/
Copy pathop2.sh
File metadata and controls
22 lines (18 loc) · 703 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/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-op2.sh
# Description: OpenWrt DIY script part 2 (After Update feeds)
#
# Modify default IP
#=================================================
#sed -i "s/192.168.1.1/10.0.0.2/" package/base-files/files/bin/config_generate
# 修改默认 IP 为 192.168.50.235[cite: 1, 3]
sed -i "s/192.168.1.1/192.168.50.235/g" package/base-files/files/bin/config_generate
# 设置登录密码为空
sed -i 's/root:::0:99999:7:::/root::0:0:99999:7:::/g' package/base-files/files/etc/shadow