forked from VOVO518/OpenWrt-R8000-firmware
-
Notifications
You must be signed in to change notification settings - Fork 1
/
diy-part2.sh
24 lines (21 loc) · 1.01 KB
/
diy-part2.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/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.2.1/g' package/base-files/files/bin/config_generate
# echo '修改主机名'
# sed -i "s/hostname='OpenWrt'/hostname='Nighthawk-X6'/g" package/base-files/files/bin/config_generate
# cat package/base-files/files/bin/config_generate |grep hostname=
# echo '=========Alert hostname OK!========='
# 取消原主题luci-theme-bootstrap 为默认主题 - 修改 argon 为默认主题 - 删除原默认主题
# sed -i '/set luci.main.mediaurlbase=\/luci-static\/bootstrap/d' feeds/luci/themes/luci-theme-bootstrap/root/etc/uci-defaults/30_luci-theme-bootstrap
# sed -i 's/luci-theme-bootstrap/luci-theme-argon/g' feeds/luci/collections/luci/Makefile
# rm -rf package/lean/luci-theme-bootstrap