summaryrefslogtreecommitdiff
path: root/packaging/SGI/mkprintcap.sh
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1997-09-05 02:28:41 +0000
committerJeremy Allison <jra@samba.org>1997-09-05 02:28:41 +0000
commit8fde65239d0a9462fb044670220cd3c63bd887cb (patch)
tree333496a1af80e6ec701522af6f547f7b196c4445 /packaging/SGI/mkprintcap.sh
parentebf9487a9a68c4d786449490627ee919622e6dbf (diff)
downloadsamba-8fde65239d0a9462fb044670220cd3c63bd887cb.tar.gz
This is really Herb adding the SGI packaging files.
Diffstat (limited to 'packaging/SGI/mkprintcap.sh')
-rwxr-xr-xpackaging/SGI/mkprintcap.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/packaging/SGI/mkprintcap.sh b/packaging/SGI/mkprintcap.sh
new file mode 100755
index 00000000000..f610e757f06
--- /dev/null
+++ b/packaging/SGI/mkprintcap.sh
@@ -0,0 +1,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
+