On Wed, Mar 14, 2007 at 11:14:18AM -0400, Peter Jones wrote:
> On Wed, 2007-03-14 at 08:16 +0100, Stefan Seyfried wrote:
> 
> > - you cannot stopservice / restartservice services with a "-" in their name
> >   (patch attached)
> 
> (I will reply to the other points in a separate mail)
> 
> I really hate using "foo" in real (not "here's some arbitrary example")
> code.  So, applied as:

Ok :-)

Small additional fix:

Index: pm/functions
===================================================================
RCS file: /cvs/pm-utils/pm-utils/pm/functions,v
retrieving revision 1.40
diff -u -p -r1.40 functions
--- pm/functions        14 Mar 2007 16:40:30 -0000      1.40
+++ pm/functions        14 Mar 2007 17:43:06 -0000
@@ -246,7 +246,7 @@ stopservice()
 {
        service "$1" status 2>/dev/null | grep -c -q running
        if [ "$?" == "0" ]; then
-               N=${1//[_.]/_}
+               N=${1//[-.]/_}
                echo "export ${N}_SERVICE_ACTIVATE=yes" >> /var/run/pm-suspend
                service "$1" stop
        fi
-- 
Stefan Seyfried

"Any ideas, John?"
"Well, surrounding them's out." 
_______________________________________________
Pm-utils mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/pm-utils

Reply via email to