更新 hanwckf_mt798x.sh

Signed-off-by: zhao <zhao@noreply.localhost>
This commit is contained in:
zhao 2025-01-19 00:55:42 +08:00
parent 2a7dbcbe90
commit 4b1599eb37

View File

@ -22,6 +22,10 @@ echo -e "\nsrc-git extraipk https://github.com/xiangfeidexiaohuo/extra-ipk" >> f
echo -e "${YELLOW}修改默认IP${NC}"
sed -i 's/192.168.1.1/10.0.0.1/g' package/base-files/files/bin/config_generate
# 设置默认密码
sed -i 's/root::0:0:99999:7:::/root:$1$V4UetPzk$CYXluq4wUazHjmCDBCqXF.:0:0:99999:7:::/g' /etc/shadow
sed -i 's/root:::0:99999:7:::/root:$1$V4UetPzk$CYXluq4wUazHjmCDBCqXF.:0:0:99999:7:::/g' /etc/shadow
# profile
echo -e "${YELLOW}profile${NC}"
sed -i 's#\\u@\\h:\\w\\\$#\\[\\e[32;1m\\][\\u@\\h\\[\\e[0m\\] \\[\\033[01;34m\\]\\W\\[\\033[00m\\]\\[\\e[32;1m\\]]\\[\\e[0m\\]\\\$#g' package/base-files/files/etc/profile
@ -196,7 +200,7 @@ git clone --depth=1 https://github.com/sirpdboy/luci-app-netwizard package/luci-
# 修改名称
echo -e "${YELLOW}修改名称${NC}"
sed -i 's/OpenWrt/ZeroWrt/' package/base-files/files/bin/config_generate
sed -i "s/hostname='.*'/hostname='ZeroWrt'/g" package/base-files/files/bin/config_generate
# Theme
echo -e "${YELLOW}Theme${NC}"