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.


        Stefan


Index: net/cups/files/cupsd.init
===================================================================
--- net/cups/files/cupsd.init   (révision 14019)
+++ net/cups/files/cupsd.init   (copie de travail)
@@ -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: net/cups/files/etc/cups/cupsd.conf
===================================================================
--- net/cups/files/etc/cups/cupsd.conf  (révision 14019)
+++ net/cups/files/etc/cups/cupsd.conf  (copie de travail)
@@ -21,12 +21,12 @@
 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

_______________________________________________
openwrt-devel mailing list
[email protected]
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to