754ce8a42f
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
14 lines
174 B
Bash
14 lines
174 B
Bash
#!/bin/sh /etc/rc.common
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
START=50
|
|
|
|
start() {
|
|
mkdir -p /var/cups
|
|
mkdir -p /var/spool/cups/tmp
|
|
/usr/sbin/cupsd
|
|
}
|
|
|
|
stop() {
|
|
killall cupsd
|
|
}
|