1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00
samba-mirror/packaging/SGI/mkprintcap.sh
Jeremy Allison d6fc4eb405 This is really Herb adding the SGI packaging files.
(This used to be commit 8fde65239d0a9462fb044670220cd3c63bd887cb)
1997-09-05 02:28:41 +00:00

16 lines
399 B
Bash
Executable File

#! /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