From 16e9b799dff5bc399301f85f1749d2782f2a7152 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Fri, 3 Mar 2006 15:20:16 +0000 Subject: automatically enable CUPS when a printer is detected --- live/One/2006.0/config/live.cfg | 1 + live/One/2006.0/patches/lp.script.start.patch | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 live/One/2006.0/patches/lp.script.start.patch diff --git a/live/One/2006.0/config/live.cfg b/live/One/2006.0/config/live.cfg index 4c368e073..64783c88b 100644 --- a/live/One/2006.0/config/live.cfg +++ b/live/One/2006.0/config/live.cfg @@ -20,6 +20,7 @@ my $l = { patches => [ 'patches/halt.loopfs.patch', 'patches/netfs.loopfs.patch', + 'patches/lp.script.start.patch', ], rpms => [ 'rpms/unionfs-kernel-2.6.12-17mdk-i586-up-1GB-1.1.1.1.20060117.1mdk-1mdk.i586.rpm', diff --git a/live/One/2006.0/patches/lp.script.start.patch b/live/One/2006.0/patches/lp.script.start.patch new file mode 100644 index 000000000..673051972 --- /dev/null +++ b/live/One/2006.0/patches/lp.script.start.patch @@ -0,0 +1,11 @@ +--- etc/dynamic/scripts/lp.script.start 2006-03-03 10:15:52.000000000 -0500 ++++ etc/dynamic/scripts/lp.script 2006-03-03 10:17:48.000000000 -0500 +@@ -78,6 +78,8 @@ + # not already running + ps auxwww | grep 'perl /usr/sbin/autosetupprintqueues' | grep -vq grep && return + ps auxwww | grep 'perl /usr/sbin/printerdrake' | grep -vq grep && return ++ chkconfig --add cups ++ service cups start + autosetupprintqueues --$AUTO_SETUP_QUEUES_MODE & + fi + fi -- cgit v1.2.1