diff options
author | szaimen <szaimen@e.mail.de> | 2020-09-04 21:07:58 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-04 21:07:58 +0300 |
commit | 2cc0f8a17a656ac3b2713d336fbaefd3a88d8609 (patch) | |
tree | cca39594413b84f80626721a11393bb8b782b97f /apps/smbmount.sh | |
parent | ecf21910296c17a8670add66504403868fcf3059 (diff) |
change all whiptail-radiolists to whiptail-menus (#1408)
Diffstat (limited to 'apps/smbmount.sh')
-rw-r--r-- | apps/smbmount.sh | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/apps/smbmount.sh b/apps/smbmount.sh index 6a28dbc6..1faf1352 100644 --- a/apps/smbmount.sh +++ b/apps/smbmount.sh @@ -308,13 +308,13 @@ then fi # Find out which SMB-shares are available -args=(whiptail --title "$TITLE - $SUBTITLE" --radiolist "This option let you change the password, the username and/or the network-share of one of your SMB-mounts.\nChoose which one you want to show.\nSelect one with the [ARROW] keys and select with the [SPACE] key. Confirm by pressing [ENTER]" "$WT_HEIGHT" "$WT_WIDTH" 4) +args=(whiptail --title "$TITLE - $SUBTITLE" --menu "This option let you change the password, the username and/or the network-share of one of your SMB-mounts.\nChoose which one you want to show." "$WT_HEIGHT" "$WT_WIDTH" 4) count=1 while [ $count -le $MAX_COUNT ] do if grep -q "$SMBSHARES/$count " /etc/fstab then - args+=("$SMBSHARES/$count " "$(grep "$SMBSHARES/$count " /etc/fstab | awk '{print $1}')" OFF) + args+=("$SMBSHARES/$count " "$(grep "$SMBSHARES/$count " /etc/fstab | awk '{print $1}')" ) fi count=$((count+1)) done @@ -592,14 +592,14 @@ return while true do # Main menu - choice=$(whiptail --title "$TITLE" --radiolist "This script let you manage SMB-shares to access files from the host-computer or other machines in the local network.\nChoose what you want to do.\nSelect one with the [ARROW] keys and select with the [SPACE] key. Confirm by pressing [ENTER]" "$WT_HEIGHT" "$WT_WIDTH" 4 \ - "Add a SMB-mount" "(and mount/connect it)" ON \ - "Mount SMB-shares" "(connect SMB-shares)" OFF \ - "Show all SMB-mounts" "(show detailed information about the SMB-mounts)" OFF \ - "Change a SMB-mount" "(change password, username &/or share of a mount)" OFF \ - "Unmount SMB-shares" "(disconnect SMB-shares)" OFF \ - "Delete SMB-mounts" "(and unmount/disconnect them)" OFF \ - "Exit SMB-share" "(exit this script)" OFF 3>&1 1>&2 2>&3) + choice=$(whiptail --title "$TITLE" --menu "This script let you manage SMB-shares to access files from the host-computer or other machines in the local network.\nChoose what you want to do." "$WT_HEIGHT" "$WT_WIDTH" 4 \ + "Add a SMB-mount" "(and mount/connect it)" \ + "Mount SMB-shares" "(connect SMB-shares)" \ + "Show all SMB-mounts" "(show detailed information about the SMB-mounts)" \ + "Change a SMB-mount" "(change password, username &/or share of a mount)" \ + "Unmount SMB-shares" "(disconnect SMB-shares)" \ + "Delete SMB-mounts" "(and unmount/disconnect them)" \ + "Exit SMB-share" "(exit this script)" 3>&1 1>&2 2>&3) case "$choice" in "Add a SMB-mount") |