progress
This commit is contained in:
parent
642a83b501
commit
01197c190e
3
etc/printing/cups
Normal file
3
etc/printing/cups
Normal file
|
@ -0,0 +1,3 @@
|
|||
packages() {
|
||||
addpkg "cups"
|
||||
}
|
20
main.sh
20
main.sh
|
@ -247,7 +247,25 @@ profile() {
|
|||
}
|
||||
|
||||
printing() {
|
||||
yesno "Do you want printing?" "n"
|
||||
for i in $(find ./etc/printing/ -type f); do
|
||||
printing+=("$(basename $i)")
|
||||
done
|
||||
if [ "${#printing[@]}" -ge "1" ]; then
|
||||
if yesno "Do you want printing?" "n"; then
|
||||
if [ "${#printing[@]}" -gt "1" ]; then
|
||||
multiplechoice "${printing[@]}"
|
||||
PRINTING=$output
|
||||
elif [ "${#printing[@]}" -eq "1" ]; then
|
||||
PRINTING=${printing[0]}
|
||||
fi
|
||||
. ./etc/printing/$PRINTING
|
||||
packages
|
||||
reset packages
|
||||
cp ./etc/printing/$PRINTING $tmp_target
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
if [ "$output" == "yes" ]; then
|
||||
addpkg cups
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue
Block a user