On Fri, Dec 12, 2008 at 09:58:01PM +0100, Antoine Jacoutot wrote:
> On Fri, 12 Dec 2008, Jacob Meuser wrote:
> 
> > On Fri, Dec 12, 2008 at 09:48:35PM +0100, Antoine Jacoutot wrote:
> > > On Fri, 12 Dec 2008, Jacob Meuser wrote:
> > > > one last note: pretty much every driver that can be used with cups
> > > > can be used with base lpd, it's just a little more work ... imo the
> > > 
> > > This is true except it is much more complicated to pass options to stock 
> > > lpd than it is for cups if I want e.g. a4 with photo color and duplex.
> > 
> > I used to set up a few printcap entries for the same printer: lp,
> > scratch, photo, p4up.
> 
> Exactly, that was my point :-)
> It works fine, it's just not very intuivive.

that's the classic lpd approach, if i'm not mistaken.

<sarcasm>
didn't this thread start off with complaints about things being
non-intuitive?
</sarcasm>

anyway ...

I think the following isn't such a bad idea.

-- 
jake...@sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org

Index: files/cups-enable
===================================================================
RCS file: /home2/cvs/OpenBSD/ports/print/cups/files/cups-enable,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 cups-enable
--- files/cups-enable   16 Jan 2005 12:36:42 -0000      1.1.1.1
+++ files/cups-enable   12 Dec 2008 21:21:44 -0000
@@ -28,10 +28,30 @@
 
 ######################################################################
 if [ -e /usr/sbin/lpd.pre-cups ]; then
-    echo "lpd already preserved, not saving old files."
+    echo "Backed up files exist.  Continuing this script will overwrite"
+    echo "system files without saving them."
+    echo -n "Are you sure you want to continue (y/[n])? "
+
+    read answer
+    echo ""
+
+    if [ X$answer != Xy ]; then
+        echo "exit"
+        exit
+    fi
+
     echo ""
 elif [ ! -e /usr/sbin/lpd ]; then
     echo "Couldn't find lpd files, not saving old files."
+    echo -n "Are you sure you want to continue (y/[n])? "
+
+    read answer
+    echo ""
+
+    if [ X$answer != Xy ]; then
+       echo "exit"
+       exit
+    fi
     echo ""
 else 
     echo "Trying to save lpd files:"

Reply via email to