-
Notifications
You must be signed in to change notification settings - Fork 2
/
diy-part2.sh
executable file
·27 lines (22 loc) · 1004 Bytes
/
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
25
26
27
#!/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.0.1/g' package/base-files/files/bin/config_generate
# Fix Material theme progressbar font size
sed -i 's/1.3em/1em/g' package/feeds/luci/luci-theme-material/htdocs/luci-static/material/cascade.css
# DHCP defaults
sed -i 's/100/10/g' package/network/services/dnsmasq/files/dhcp.conf
sed -i 's/150/25/g' package/network/services/dnsmasq/files/dhcp.conf
## Enable vlmcsd auto activation
echo srv-host=_vlmcs._tcp.lan,OpenWrt.lan,1688,0,100 >> package/network/services/dnsmasq/files/dnsmasq.conf
# Set default root password
sed -i 's/root:::0:99999:7:::/root:$1$o4gFHnsz$gDNYwhnsRl3LH9vGDJypB\/:19341:0:99999:7:::/g' package/base-files/files/etc/shadow