fixed for both 7" and remote-hd display

This commit is contained in:
2026-03-19 10:28:13 +08:00
parent 11fbc219b5
commit d94d3278fa
4 changed files with 43 additions and 26 deletions

View File

@@ -40,7 +40,7 @@ echo -e "${NC}"
show_menu() {
echo -e "${BOLD}Select an option:${NC}"
echo ""
echo -e " ${GREEN}1)${NC} dev Start development server (port $DEV_PORT)"
echo -e " ${GREEN}1)${NC} dev Start dual-mode (8888 kiosk + 9999 remote HD)"
echo -e " ${GREEN}2)${NC} dev:8888 Start dev server on port 8888 (kiosk mode)"
echo -e " ${GREEN}3)${NC} dev:9090 Start dev server on port 9090 (remote mode)"
echo -e " ${GREEN}4)${NC} dev:9999 Start dev server on port 9999 (remote HD mode)"
@@ -172,7 +172,7 @@ run_command() {
case $option in
1|dev)
run_dev_server $DEV_PORT
run_dual_mode
;;
2|dev:8888)
run_dev_server 8888
@@ -252,5 +252,12 @@ if [ $# -gt 0 ]; then
exit 0
fi
# No arguments: start dual-mode (both 8888 and 9999)
run_dual_mode
# Interactive menu
while true; do
show_menu
echo -n -e "${BOLD}Enter your choice (0-11 or p): ${NC}"
read -r choice
echo ""
run_command "$choice"
echo ""
done