[Pm-utils] Re: Resume via quirks, not using the DBUS method, Was: Release Candidates ?

Frank Seidel fseidel at suse.de
Mon Mar 12 04:52:18 PDT 2007


On Tuesday 06 March 2007 18:01:03 Peter Jones wrote:
> On Tue, 2007-03-06 at 16:31 +0000, Richard Hughes wrote:
> > > /usr/sbin/pm-suspend       # symlink to pm-action above
> > > /usr/sbin/pm-hibernate     # symlink to pm-action above
> >
> > Can't we just get rid of the symlink and install two files rather
> > than one with special casing that changes the execution depending
> > on the symlink name?
>
> I'd really rather maintain one 114 line script that has a special
> case that winds up being 5 lines for each (of two) choices than two
> 100 line scripts that have 95 lines the same.

Couldn't agree more. Please keep it this way.

Have fun,
Frank
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/pm-utils/attachments/20070312/a8f873c7/attachment-0001.pgp


More information about the Pm-utils mailing list