|
@@ -83,7 +83,8 @@ configure_start_sh() {
|
|
|
|
|
|
|
|
if [ "$DIALOG_RESULT" = "1" ]; then
|
|
if [ "$DIALOG_RESULT" = "1" ]; then
|
|
|
WEBSITE=$(dialog --title "Enter Website URL" --inputbox "Please enter the URL for the simple website:" 8 50 "https://www.example.com" 3>&1 1>&2 2>&3 3>&-)
|
|
WEBSITE=$(dialog --title "Enter Website URL" --inputbox "Please enter the URL for the simple website:" 8 50 "https://www.example.com" 3>&1 1>&2 2>&3 3>&-)
|
|
|
- set_start_script_single $SCALE_FACTOR $WEBSITE
|
|
|
|
|
|
|
+ VNC_PASSWORD=$(dialog --title "VNC Password" --inputbox "Please enter the VNC password:" 8 50 "" 3>&1 1>&2 2>&3 3>&-)
|
|
|
|
|
+ set_start_script_single $SCALE_FACTOR $WEBSITE $VNC_PASSWORD
|
|
|
elif [ "$DIALOG_RESULT" = "2" ]; then
|
|
elif [ "$DIALOG_RESULT" = "2" ]; then
|
|
|
TAB_COUNT=$(dialog --title "Number of Tabs" --inputbox "Enter number of tabs:" 8 50 "3" 3>&1 1>&2 2>&3 3>&-)
|
|
TAB_COUNT=$(dialog --title "Number of Tabs" --inputbox "Enter number of tabs:" 8 50 "3" 3>&1 1>&2 2>&3 3>&-)
|
|
|
local tab_urls=()
|
|
local tab_urls=()
|
|
@@ -91,7 +92,8 @@ configure_start_sh() {
|
|
|
URL=$(dialog --title "Enter URL for Tab $i" --inputbox "Enter URL:" 8 50 "http://example$i.com" 3>&1 1>&2 2>&3 3>&-)
|
|
URL=$(dialog --title "Enter URL for Tab $i" --inputbox "Enter URL:" 8 50 "http://example$i.com" 3>&1 1>&2 2>&3 3>&-)
|
|
|
tab_urls+=("$URL")
|
|
tab_urls+=("$URL")
|
|
|
done
|
|
done
|
|
|
- configure_tabs $SCALE_FACTOR "${tab_urls[@]}"
|
|
|
|
|
|
|
+ VNC_PASSWORD=$(dialog --title "VNC Password" --inputbox "Please enter the VNC password:" 8 50 "" 3>&1 1>&2 2>&3 3>&-)
|
|
|
|
|
+ configure_tabs $SCALE_FACTOR $VNC_PASSWORD "${tab_urls[@]}"
|
|
|
fi
|
|
fi
|
|
|
else # Automated mode with URLs as arguments
|
|
else # Automated mode with URLs as arguments
|
|
|
local scaling_factor=$1
|
|
local scaling_factor=$1
|