unset m; i=0 [ $SAMBA = yes ] && args=("Samba Upload" "Creates a writeable sharing folder" off "Creates one preconfigured writeable folder, accessable by.") for a in "${args[@]}"; do m[i++]=$a; m[i++]="" done dialog --no-cancel \ --item-help \ --single-quoted \ --colors \ --separate-output \ --title "Choose miscellaneous Options" \ --checklist "Your preferences..." 21 71 14 \ "Thumbnails" "Displays image thumbnails in Thunar" off "Better enable that later in the preferences dialog." \ "Workspaces" "Enables the switcher in the toolbar" off "Multiple workspaces are still available even if you turn this off" \ "Some Folders" "Creates and bookmarks some folders" off "Music, Movies, Images, Documents and Downloads" \ "${m[@]}" "Disable Speaker" "Disables the annoying PC-Speaker" off "You won't the Speaker if you have a sound card." \ "Sleep on Lid-Close" "Laptop going to standby when closed" off "If you turn this off, you're able to close your laptop without aborting Downloads and such." \ "CDROM Repository" "Install software from CD." off "Turn this on if you have no Internet Access." \ "Enable Numlock" "Enables the Numlock LED" off "Enables you to use the keypad." \ `[ $HIBERNATE = yes ] && echo '"Hibernate Button" "Hibernate with the power button" off "The computer will hibernate when power button is pressed or when 'Logout' is chosen from the menu."' \ `