mirror of
https://github.com/nikdoof/cups-avahi-airprint.git
synced 2025-12-11 15:52:24 +00:00
back up cupsd to config directory if not already there
This commit is contained in:
@@ -32,9 +32,10 @@ cp /config/printers.conf /etc/cups/printers.conf
|
||||
|
||||
if [ `ls -l /config/cupsd.conf 2>/dev/null | wc -l` -ne 0 ]; then
|
||||
cp /config/cupsd.conf /etc/cups/cupsd.conf
|
||||
else
|
||||
cp /etc/cups/cupsd.conf /config/cupsd.conf
|
||||
fi
|
||||
|
||||
|
||||
/usr/sbin/avahi-daemon --daemonize
|
||||
/root/printer-update.sh &
|
||||
exec /usr/sbin/cupsd -f
|
||||
|
||||
Reference in New Issue
Block a user