By default OpenWRT's /var is a symlink to /tmp.
This is unusual under GNU/Linux but justified by the unusual circumstances of limited flash space and lifetime. But there is no reason for OpenWRT packages to presume that /tmp and /var are always interchangeable. The patch below fixes the cups package so that it behaves better when used on a system with a proper /var area. Signed-off-by: Stefan Monnier <monnier@iro.umontreal.ca> git-svn-id: svn://svn.openwrt.org/openwrt/packages@14303 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
fbd12bf7dd
commit
754ce8a42f
@ -3,8 +3,8 @@
|
|||||||
START=50
|
START=50
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
mkdir -p /tmp/cups
|
mkdir -p /var/cups
|
||||||
mkdir -p /tmp/spool/cups/tmp
|
mkdir -p /var/spool/cups/tmp
|
||||||
/usr/sbin/cupsd
|
/usr/sbin/cupsd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -21,12 +21,12 @@ MaxJobs 25
|
|||||||
MaxPrinterHistory 10
|
MaxPrinterHistory 10
|
||||||
#Printcap /etc/printcap
|
#Printcap /etc/printcap
|
||||||
#PrintcapFormat BSD
|
#PrintcapFormat BSD
|
||||||
RequestRoot /tmp/cups
|
RequestRoot /var/cups
|
||||||
#RemoteRoot remroot
|
#RemoteRoot remroot
|
||||||
User root
|
User root
|
||||||
Group root
|
Group root
|
||||||
RIPCache 512k
|
RIPCache 512k
|
||||||
TempDir /tmp/cups
|
TempDir /var/cups
|
||||||
Port 631
|
Port 631
|
||||||
HostNameLookups Off
|
HostNameLookups Off
|
||||||
KeepAlive On
|
KeepAlive On
|
||||||
|
Loading…
x
Reference in New Issue
Block a user