From: "Dmitry V. Levin" <ldv@fandra.org>
To: devel@linux.iplabs.ru
Subject: Re: [devel] apmd & xlockmore
Date: Fri, 23 Feb 2001 02:31:22 +0300
Message-ID: <20010223023122.A24141@LDV.fandra.org> (raw)
In-Reply-To: <3A955ABD.A2B00629@linux.ru.net>; from rider@linux.ru.net on Thu, Feb 22, 2001 at 09:30:21PM +0300
[-- Attachment #1: Type: text/plain, Size: 1274 bytes --]
On Thu, Feb 22, 2001 at 09:30:21PM +0300, rider wrote:
> Пакету apmd требуется xlockmore - зачем?
Цитирую /etc/sysconfig/apm-scripts/apmscript:
if [ "$LOCK_X" == yes -o "$LOCK_X" = 1 ]; then
# Lock X, based on patch from Hannu Martikka
# <Hannu.Martikka@nokia.com>
w |tail +3 |awk '{print $1, $3}'|grep -v '-'|grep : | \
sort -u | \
while read line; do
Usern=`echo $line |awk '{print $1}'`
XDisp=`echo $line |awk '{print $2}'`
if [ "$Usern" == root ]; then
xlock -display "$XDisp" &>/dev/null &
else
su "$Usern" -c "xscreensaver-command -display $XDisp -lock || (xscreensaver -display $XDisp -no-splash &sleep 1; xscreensaver-command -display $XDisp -lock) || (xlock -display $XDisp &)" &>/dev/null
fi
done
fi
Можно, в принципе, сделать эту часть кода необязательной (if [ -x ... ]).
Как скажете.
Regards,
Dmitry
+-------------------------------------------------------------------------+
Dmitry V. Levin mailto://ldv@fandra.org
Software Engineer PGP pubkey http://www.fandra.org/users/ldv/pgpkeys.html
IPLabs Linux Team http://linux.iplabs.ru
Fandra Project http://www.fandra.org
+-------------------------------------------------------------------------+
UNIX is user friendly. It's just very selective about who its friends are.
[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
next prev parent reply other threads:[~2001-02-22 23:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-02-22 18:30 rider
2001-02-22 23:31 ` Dmitry V. Levin [this message]
2001-02-23 7:48 ` rider
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20010223023122.A24141@LDV.fandra.org \
--to=ldv@fandra.org \
--cc=devel@linux.iplabs.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git