summaryrefslogtreecommitdiffstats
path: root/live
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2006-03-03 15:20:16 +0000
committerOlivier Blin <oblin@mandriva.org>2006-03-03 15:20:16 +0000
commit16e9b799dff5bc399301f85f1749d2782f2a7152 (patch)
tree589d4d4a6404bfb2051de01c85d46bc1c9ae86d3 /live
parent50efffc2db24d3f733df2cde625b2fdb8e323b6a (diff)
downloaddrakx-16e9b799dff5bc399301f85f1749d2782f2a7152.tar
drakx-16e9b799dff5bc399301f85f1749d2782f2a7152.tar.gz
drakx-16e9b799dff5bc399301f85f1749d2782f2a7152.tar.bz2
drakx-16e9b799dff5bc399301f85f1749d2782f2a7152.tar.xz
drakx-16e9b799dff5bc399301f85f1749d2782f2a7152.zip
automatically enable CUPS when a printer is detected
Diffstat (limited to 'live')
-rw-r--r--live/One/2006.0/config/live.cfg1
-rw-r--r--live/One/2006.0/patches/lp.script.start.patch11
2 files changed, 12 insertions, 0 deletions
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