1 |
# $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/functions/config_printers.sh,v 1.5 2005-04-12 20:45:55 niro Exp $ |
# $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/functions/config_printers.sh,v 1.6 2005-04-12 20:54:13 niro Exp $ |
2 |
# configures printing on the host via mysql db settings |
# configures printing on the host via mysql db settings |
3 |
|
|
4 |
get_printer_settings() |
get_printer_settings() |
42 |
done |
done |
43 |
|
|
44 |
# DEBUG MSG |
# DEBUG MSG |
45 |
for (( i=0; i <= count; i++ )) |
# for (( i=0; i <= count; i++ )) |
46 |
do |
# do |
47 |
echo -n "${ALX_PRINTER_NAME[${i}]} " |
# echo -n "${ALX_PRINTER_NAME[${i}]} " |
48 |
echo -n "${ALX_PORT[${i}]} " |
# echo -n "${ALX_PORT[${i}]} " |
49 |
echo -n "${ALX_IP[${i}]} " |
# echo -n "${ALX_IP[${i}]} " |
50 |
echo "${ALX_SHARE[${i}]}" |
# echo "${ALX_SHARE[${i}]}" |
51 |
done |
# done |
52 |
|
|
53 |
# export all settings |
# export all settings |
54 |
export ALX_COUNT=${count} |
export ALX_COUNT=${count} |
74 |
/etc/init.d/cups start &> /dev/null |
/etc/init.d/cups start &> /dev/null |
75 |
|
|
76 |
# debug |
# debug |
77 |
echo "ALX_COUNT: ${ALX_COUNT}" |
# echo "ALX_COUNT: ${ALX_COUNT}" |
78 |
|
|
79 |
for (( i=0; i < ALX_COUNT; i++ )) |
for (( i=0; i < ALX_COUNT; i++ )) |
80 |
do |
do |
81 |
# get real port settings |
# get real port settings |
115 |
:> /etc/cups/printers.conf |
:> /etc/cups/printers.conf |
116 |
|
|
117 |
# debug |
# debug |
118 |
echo "ALX_COUNT: ${ALX_COUNT}" |
# echo "ALX_COUNT: ${ALX_COUNT}" |
119 |
|
|
120 |
for (( i=0; i < ALX_COUNT; i++ )) |
for (( i=0; i < ALX_COUNT; i++ )) |
121 |
do |
do |
122 |
# get real port settings |
# get real port settings |