Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
tearmoon committed Sep 27, 2023
1 parent 5995759 commit 06e0fac
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion box/scripts/box.service
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ start_box() {
box_bin_status

# open the yacd in browser
open_dasboard
open_dashboard
}

stop_box() {
Expand Down
4 changes: 2 additions & 2 deletions box/scripts/box.tool
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ case "$1" in
if [ -f "${box_pid}" ]; then
if kill -0 "$(<"${box_pid}" 2>/dev/null)"; then
reload
open_dasboard
open_dashboard
fi
fi
;;
Expand All @@ -616,7 +616,7 @@ case "$1" in
if [ -f "${box_pid}" ]; then
if kill -0 "$(<"${box_pid}" 2>/dev/null)"; then
reload
open_dasboard
open_dashboard
fi
fi
;;
Expand Down
6 changes: 3 additions & 3 deletions box/settings.ini
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,12 @@ log() {
# Open yacd on start
# "cmd: Failure calling service activity: Failed transaction" if run through Magisk/KernelSu Manager,
# this is normal if run in terminal/termux
open_dasboard_on_start="false"
open_dashboard_on_start="false"
ip_port=$(if [ "${bin_name}" = "clash" ]; then busybox awk '/external-controller:/ {print $2}' "${clash_config}"; else find /data/adb/box/sing-box/ -type f -name "*.json" -exec busybox awk -F':' '/experimental/,/\}/' {} \; | sed -n 's/.*"external_controller": "\(.*\)",/\1/p'; fi;)
secret=""
open_dasboard() {
open_dashboard() {
if [[ "${bin_name}" == @(clash|sing-box) ]]; then
if [ "${open_dasboard_on_start}" = "true" ]; then
if [ "${open_dashboard_on_start}" = "true" ]; then
if [ -t 1 ]; then
su -c am start -a android.intent.action.VIEW -d "http:https://${ip_port}/ui/#/proxies"
fi
Expand Down

0 comments on commit 06e0fac

Please sign in to comment.