ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Andrei Bulava <abulava@altlinux.ru>
To: ALT Linux Sisyphus discussion list <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] Телефон по USB
Date: Thu, 20 Jul 2006 13:54:13 +0300
Message-ID: <44BF60D5.2000209@altlinux.ru> (raw)
In-Reply-To: <b4db879b0607200336g86a3cdak82e635915238f50@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 237 bytes --]

Dmitry Gerasimov wrote:
> всё написали, кроме самого главного - выписки из /var/log/messages в
> момент втыкания телефона

На самом деле, лучше вывод приложенного скрипта до втыкания и секунд
через X после.

-- 
// AB1002-UANIC

[-- Attachment #2: hal-list-removables.sh --]
[-- Type: text/plain, Size: 824 bytes --]

#!/bin/sh

volumes="`hal-find-by-capability --capability volume 2>/dev/null`"

[ -z "$volumes" ] && exit 0

for vol in $volumes; do
    [ "`hal-get-property --udi $vol --key volume.ignore 2>/dev/null`" = "true" ] && continue
    stdev="`hal-get-property --udi $vol --key block.storage_device 2>/dev/null`"
    [ "`hal-get-property --udi $stdev --key storage.removable 2>/dev/null`" != "true" -a "`hal-get-property --udi $stdev --key storage.hotpluggable 2>/dev/null`" != "true" ] && continue
    dev="`hal-get-property --udi $vol --key block.device 2>/dev/null`"
    if [ "`hal-get-property --udi $vol --key volume.is_mounted 2>/dev/null`" = "true" ]; then
	mp="`hal-get-property --udi $vol --key volume.mount_point 2>/dev/null`"
	echo "device: $dev (mounted to $mp)"
    else
	echo "device: $dev (not mounted)"
    fi
done

  parent reply	other threads:[~2006-07-20 10:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-20 10:02 Rafael Malikov
2006-07-20 10:54   ` Andrei Bulava [this message]
2006-07-21  8:05     ` Rafael Malikov

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=44BF60D5.2000209@altlinux.ru \
    --to=abulava@altlinux.ru \
    --cc=sisyphus@lists.altlinux.org \
    /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 Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git