[Lunar-commits] r23367 - moonbase/trunk/graphics/sane-backends/init.d

Moritz Heiber moe at lunar-linux.org
Tue Feb 20 14:32:22 CET 2007


Author: moe
Date: 2007-02-20 14:32:21 +0100 (Tue, 20 Feb 2007)
New Revision: 23367

Modified:
   moonbase/trunk/graphics/sane-backends/init.d/sane
Log:
This is better IMHO



Modified: moonbase/trunk/graphics/sane-backends/init.d/sane
===================================================================
--- moonbase/trunk/graphics/sane-backends/init.d/sane	2007-02-20 13:22:15 UTC (rev 23366)
+++ moonbase/trunk/graphics/sane-backends/init.d/sane	2007-02-20 13:32:21 UTC (rev 23367)
@@ -3,12 +3,12 @@
 # Startup script for sane
 #
 # chkconfig: 345 50 50
-# description: Prepares the system for scanner use.
+# description: This script creates the lockdir for sane-backends
 
 SANE_LOCKDIR="/var/lock/sane"
 
 start () {
-  echo -n "Starting $SHORT: "
+  echo -n "Creating SANE lock directory: "
   mkdir -m 775 -p $SANE_LOCKDIR && chgrp usb $SANE_LOCKDIR
   if [ $? == 0 ]; then
     echo -e $RESULT_OK
@@ -18,8 +18,9 @@
 }  
 
 stop () {
-  echo -n "Stopping $SHORT: "
-  echo -e $RESULT_OK
+   echo -n "Removing SANE lock directory: "
+   rm -rf $SANE_LOCKDIR
+   echo -e $RESULT_OK
 }
 
 restart () {
@@ -27,4 +28,4 @@
   start
 }
 
-. /lib/lsb/init-functions $1
+. /lib/lsb/init-functions



More information about the Lunar-commits mailing list