made "enable" and "disable" the default "lpresume" and "lppause" commands
authorHerb Lewis <herb@samba.org>
Sun, 30 Jan 2000 01:00:00 +0000 (01:00 +0000)
committerHerb Lewis <herb@samba.org>
Sun, 30 Jan 2000 01:00:00 +0000 (01:00 +0000)
for SYSV instead of the lpc commands (since these are BSD commands)

I still don't like the default "lppause" and "lpresume" commands for
SYSV since these seem to be SUN specific additions to the lp command
(at least I don't find them in IRIX and HPUX). I think this should be
inside an ifdef SUN??? but I'm not sure what the define should be so
I have left it for now.

source/param/loadparm.c

index 7655b8978b2407f3217dece63dd6025d9e7b3b77..2b8040685c2518b2ddf8351a6a6e7f6c0bf7ffff 100644 (file)
@@ -1076,14 +1076,11 @@ static void init_locals(void)
       string_set(&sDefault.szLpqcommand,"lpstat -o%p");
       string_set(&sDefault.szLprmcommand,"cancel %p-%j");
       string_set(&sDefault.szPrintcommand,"lp -c -d%p %s; rm %s");
-#ifdef HPUX
       string_set(&sDefault.szQueuepausecommand, "disable %p");
       string_set(&sDefault.szQueueresumecommand, "enable %p");
-#else /* SYSV */
+#ifndef HPUX
       string_set(&sDefault.szLppausecommand,"lp -i %p-%j -H hold");
       string_set(&sDefault.szLpresumecommand,"lp -i %p-%j -H resume");
-      string_set(&sDefault.szQueuepausecommand, "lpc stop %p");
-      string_set(&sDefault.szQueueresumecommand, "lpc start %p");
 #endif /* SYSV */
       break;