summaryrefslogtreecommitdiffstats
path: root/packaging/SGI/mkprintcap.sh
blob: f610e757f0630504548e5a2c09266cbe3bbce31f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#! /bin/sh
#
# create printcap file
#
if [ -r /usr/samba/printcap ]
then
  cp /usr/samba/printcap /usr/samba/printcap.O
fi

echo "#" > /usr/samba/printcap
echo "# Samba printcap file" >> /usr/samba/printcap
echo "# Alias names are separated by |, any name with spaces is taken as a comment" >> /usr/samba/printcap
echo "#" >> /usr/samba/printcap
lpstat -a | sed -e "s/ .*//" >> /usr/samba/printcap