~zulcss/samba/server-dailies-3.4

« back to all changes in this revision

Viewing changes to packaging/SGI/mkprintcap.sh

  • Committer: Chuck Short
  • Date: 2010-09-28 20:38:39 UTC
  • Revision ID: zulcss@ubuntu.com-20100928203839-pgjulytsi9ue63x1
Initial version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
#
 
3
# create printcap file
 
4
#
 
5
if [ -r /usr/samba/printcap ]
 
6
then
 
7
  cp /usr/samba/printcap /usr/samba/printcap.O
 
8
fi
 
9
 
 
10
echo "#" > /usr/samba/printcap
 
11
echo "# Samba printcap file" >> /usr/samba/printcap
 
12
echo "# Alias names are separated by |, any name with spaces is taken as a comment" >> /usr/samba/printcap
 
13
echo "#" >> /usr/samba/printcap
 
14
lpstat -a | sed -e "s/ .*//" >> /usr/samba/printcap
 
15