modify hostname for address
This commit is contained in:
parent
2fa1fb40bb
commit
10d08c5287
@ -156,7 +156,7 @@ add_dhcp_domain() {
|
|||||||
add_author_info() {
|
add_author_info() {
|
||||||
uci set system.@system[0].description='wukongdaily'
|
uci set system.@system[0].description='wukongdaily'
|
||||||
uci set system.@system[0].notes='文档说明:
|
uci set system.@system[0].notes='文档说明:
|
||||||
https://github.com/wukongdaily/gl-inet-onescript'
|
https://wkdaily.cpolar.cn/'
|
||||||
uci commit system
|
uci commit system
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -345,7 +345,8 @@ update_luci_app_quickstart() {
|
|||||||
is-opkg install luci-i18n-quickstart-zh-cn --force-depends >/dev/null 2>&1
|
is-opkg install luci-i18n-quickstart-zh-cn --force-depends >/dev/null 2>&1
|
||||||
yellow "恭喜您!现在你的路由器已经变成iStoreOS风格啦!"
|
yellow "恭喜您!现在你的路由器已经变成iStoreOS风格啦!"
|
||||||
green "如果没有首页和网络向导,可以执行第8项 更新luci_app_quickstart"
|
green "如果没有首页和网络向导,可以执行第8项 更新luci_app_quickstart"
|
||||||
green "您可以登录网页 查看是否生效 http://gl-mt3000.local/cgi-bin/luci"
|
addr_hostname=$(uci get system.@system[0].hostname)
|
||||||
|
green "您可以登录网页 查看是否生效 http://${addr_hostname}.local/cgi-bin/luci"
|
||||||
else
|
else
|
||||||
red "请先执行第一项 一键iStoreOS风格化"
|
red "请先执行第一项 一键iStoreOS风格化"
|
||||||
fi
|
fi
|
||||||
|
@ -87,7 +87,7 @@ create_and_format_partitions() {
|
|||||||
change_overlay_usb() {
|
change_overlay_usb() {
|
||||||
install_depends_apps
|
install_depends_apps
|
||||||
blueinfo "现在开始查找USB设备分区 请稍后......"
|
blueinfo "现在开始查找USB设备分区 请稍后......"
|
||||||
local USB_PARTITION=$(lsblk -dn -o NAME,RM,TYPE | awk '$2=="1" && $3=="disk" {print "/dev/"$1; exit}')
|
local USB_PARTITION=$(lsblk -dn -o NAME,TRAN | awk '$2=="usb" {print "/dev/"$1; exit}')
|
||||||
if [ -z "$USB_PARTITION" ]; then
|
if [ -z "$USB_PARTITION" ]; then
|
||||||
red "未找到USB磁盘。"
|
red "未找到USB磁盘。"
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user