#!/bin/bash . ./lib options=() options+=("cups" "Print support" on) options+=("ghostscript" "" on) options+=("cups-pdf" "" on) options+=("hplip" "" off) options+=("gutenprint" "" off) options+=("foomatic-db" "" off) options+=("foomatic-db-engine" "" off) options+=("foomatic-db-nonfree" "" off) options+=("foomatic-db-ppds" "" off) options+=("foomatic-db-gutenprint-ppds" "" off) options+=("foomatic-db-nonfree-ppds" "" off) #options+=("system-config-printer" "" off) sel=$(dialog --backtitle "$apptitle" --title "System Print Install" --cancel-button "Back" --checklist "" 0 0 0 \ "${options[@]}" \ 3>&1 1>&2 2>&3) if [ ! "$?" = "0" ]; then exit 1 fi for itm in $sel; do pkg="$pkg $(echo $itm | sed 's/"//g')" done instpkg "$pkg" "$aurpkg" for itm in $sel; do case $itm in "cups") svcenable cups.service cups;; "cups-pdf") #if (confirm "Add a PDF Printer ?") then #fi #Redirect target folder ;; esac done exit 0