#!/bin/bash MSG_SERVER_TYPE="Server Type" MSG_CAP_DEVICE="Select Eth to connect CAP" TYPE_SERVER=$(zenity --list --print-column=ALL --text="$MSG_SERVER_TYPE" --radiolist --column="Select" --column="Type" False Independent False Main False Slave) LIST_OF_ETHS="$(lliurex-net get_network_cards)" SELECTED_DEVICE="eth1" _get_nic() { echo "DEBUG: _get_nic_function" echo "DEBUG: VALUE: (LIST_OF_ETHS) $LIST_OF_ETHS" for item in "$LIST_OF_ETHS" ; do LIST_OF_LIST="$LIST_OF_LIST $item" LIST_OF_LIST="$LIST_OF_LIST $item" done echo "DEBUG: $LIST_OF_LIST" SELECTED_DEVICE=$(zenity --list --print-column=ALL --text="$MSG_CAP_DEVICE" --radiolist --column="Select" --column="Device" $LIST_OF_LIST) echo "DEBUG: Selected Device is: $SELECTED_DEVICE" } if [ $TYPE_SERVER = "Independent" ] ; then echo "DEBUG: INDEPENEDENT" # GAPS exit 0 fi if [ $TYPE_SERVER = "Main" ] ; then echo "DEBUG: MAIN" _get_nic # GAPS exit 0 fi if [ $TYPE_SERVER = "Slave" ] ; then echo "DEBUG: SLAVE" CENTER_NODE=$(zenity --text="Center node" --entry) # GAPS exit 0 fi exit 0