summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>2000-01-30 01:00:00 +0000
committerHerb Lewis <herb@samba.org>2000-01-30 01:00:00 +0000
commit230f81bf648f53ccc93fc88eb5dd6adc9e74583a (patch)
tree1df76b93e351c767382d0d7bea96a5ef4748b57b /source3
parent21df01ff7d8f520aa5de2b737bd84ba2460d76b8 (diff)
downloadsamba-230f81bf648f53ccc93fc88eb5dd6adc9e74583a.tar.gz
samba-230f81bf648f53ccc93fc88eb5dd6adc9e74583a.tar.bz2
samba-230f81bf648f53ccc93fc88eb5dd6adc9e74583a.zip
made "enable" and "disable" the default "lpresume" and "lppause" commands
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. (This used to be commit d3557b7f728e262d880bd7f7bbe20b853dbf165a)
Diffstat (limited to 'source3')
-rw-r--r--source3/param/loadparm.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 7655b8978b..2b8040685c 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -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;