[kde-freebsd] [Patch] /usr/local/kde4/etc/rc.d/kdm4 doesn't work after update

Ondřej Majerech oxyd.oxyd at gmail.com
Sun Mar 27 04:39:36 CEST 2011


Hello,

it looks like the rc script for launching KDM 4 has a spurious -q at
line 41: there is

    while ! pgrep -fq "^/usr/libexec/getty " > /dev/null 2>&1; do

But pgrep doesn't support any -q flag. At least according to its
manpage and the fact that running pgrep -fq whatever always results in
pgrep printing its usage message.

The fix is simple and attached to this message: removing the -q makes
it all work. I assume the -q is only supposed to supress any output
which is achieved anyway by the redirection of both stdout and stderr
to /dev/null.

~ Ondra
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kdm.patch
Type: application/octet-stream
Size: 341 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-freebsd/attachments/20110327/e897d7d1/attachment.dll 


More information about the kde-freebsd mailing list