By default OpenWRT's /var is a symlink to /tmp.
authorFlorian Fainelli <florian@openwrt.org>
Sat, 31 Jan 2009 13:51:12 +0000 (13:51 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Sat, 31 Jan 2009 13:51:12 +0000 (13:51 +0000)
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>
SVN-Revision: 14303

net/cups/files/cupsd.init
net/cups/files/etc/cups/cupsd.conf

index c98181347e2b844f184bfb9cae8f5ed57699374f..c76121261e422bd818076327f86f96051e81572b 100644 (file)
@@ -3,8 +3,8 @@
 START=50
 
 start() {
-       mkdir -p /tmp/cups
-       mkdir -p /tmp/spool/cups/tmp
+       mkdir -p /var/cups
+       mkdir -p /var/spool/cups/tmp
        /usr/sbin/cupsd
 }
 
index e84de453b3cede092bc1a6c461141c504d923767..8d7e9d03938b69160bace44bfdb00c6aeb37c32c 100644 (file)
@@ -21,12 +21,12 @@ MaxJobs 25
 MaxPrinterHistory 10
 #Printcap /etc/printcap
 #PrintcapFormat BSD
-RequestRoot /tmp/cups
+RequestRoot /var/cups
 #RemoteRoot remroot
 User root
 Group root
 RIPCache 512k
-TempDir /tmp/cups
+TempDir /var/cups
 Port 631
 HostNameLookups Off
 KeepAlive On