From 754ce8a42fbb9a81fb522687a4ce12310151c971 Mon Sep 17 00:00:00 2001 From: florian Date: Sat, 31 Jan 2009 13:51:12 +0000 Subject: [PATCH] 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 git-svn-id: svn://svn.openwrt.org/openwrt/packages@14303 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- net/cups/files/cupsd.init | 4 ++-- net/cups/files/etc/cups/cupsd.conf | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/net/cups/files/cupsd.init b/net/cups/files/cupsd.init index c98181347..c76121261 100644 --- a/net/cups/files/cupsd.init +++ b/net/cups/files/cupsd.init @@ -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 } diff --git a/net/cups/files/etc/cups/cupsd.conf b/net/cups/files/etc/cups/cupsd.conf index e84de453b..8d7e9d039 100644 --- a/net/cups/files/etc/cups/cupsd.conf +++ b/net/cups/files/etc/cups/cupsd.conf @@ -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 -- 2.11.0