ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] bugs in ivman?
@ 2006-05-18 10:03 Dmytry Kovalskyy
  2006-05-18  8:22 ` Eugene Ostapets
  0 siblings, 1 reply; 4+ messages in thread
From: Dmytry Kovalskyy @ 2006-05-18 10:03 UTC (permalink / raw)
  To: ALT Linux Community

Привет,

Ковыряния с ивманом показали, что он таки работает, но настройка ивмана для 
того что он запускал 
sudo /etc/init.d/bluetooth start
sudo rfcomm bind 0 XX:XX:XX:XX:XX 1
при вставлении в ноут блютус адаптера не работает изза самого демона ивмана.
Чтобы ивман _выполнил_ эти две команды его обязательно нада перезапустить 
ручками после загрузки системы. 

Итак, что происходит. я внес такую запись в
/etc/ivman/IvmConfigActions.xmд

<ivm:Match name="hal.linux.subsystem" value="bluetooth">
        <ivm:Match name="hal.info.category" value="bluetooth_hci" />
                <ivm:Option name="exec" 
value="/usr/bin/sudo /etc/init.d/bluetooth start" />
                <ivm:Option name="exec" value="/usr/bin/sudo /usr/bin/rfcomm 
bind 0 00:0A:D9:82:25:61 1" />
                 <ivm:Option name="execun" 
value="/usr/bin/sudo /etc/init.d/bluetooth stop" /> 

</ivm:Match>

а в /etc/sudoers

ivman   dnote = NOPASSWD: /etc/init.d/bluetooth *
ivman   dnote = NOPASSWD: /usr/bin/rfcomm *

после загрузки компа, при вставлении блютусины в логах (12ая консоль) вижу
что девайс ивманом опознан и
... ivman: Running: /usr/bin/sudo /etc/init.d/bluetooth start
... ivman: Running: /usr/bin/sudo rfcomm bind 0 XX:XX:XX:XX:XX 1

однако реально ничего не происходит
 [root@dnote root]# service bluetooth status
which: no hid2hci in (/sbin:/bin:/usr/sbin:/usr/bin)
hcid is stopped
[root@dnote root]# l /dev/rfcomm0
ls: /dev/rfcomm0: No such file or directory

Если же я перезапускаю сервис ивмана руками
[root@dnote root]# service ivman restart
Stopping ivman service:           [ DONE ]
Starting ivman service:            [ DONE ]

то реакция ивмана на вставление блютусины ужо правильная
May 18 10:05:30 dnote bluetooth: hcid startup succeeded
May 18 10:05:30 dnote hcid[24088]: HCI dev 0 up
May 18 10:05:30 dnote hcid[24088]: Starting security manager 0
May 18 10:05:30 dnote sdpd[24120]: Bluetooth SDP daemon
[root@dnote root]# l /dev/rfcomm0
crw-rw----  1 root root 216, 0 May 18 10:05 /dev/rfcomm0

Таким образом без перезапуска ивмана судо программа не испольняется

Дима

-- 
Sincerely yours,

Ph.D. Dmytro Kovalskyy
Institute of Molecular Biology & Genetics
150 Akad. Zabolotnogo Street,
Kiev-143, 03143
UKRAINE

E-mail: dikov@imbg.org.ua
Fax:  +380 (44) 526-0759
Tel.: +380 (44) 526-5405



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-05-18 11:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-18 10:03 [Comm] bugs in ivman? Dmytry Kovalskyy
2006-05-18  8:22 ` Eugene Ostapets
2006-05-18  9:46   ` Dmytro Kovalskyy
2006-05-18 11:31   ` Dmytro Kovalskyy

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

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

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


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