我现在知道了,udev + pmount ,我设置好了规则,但不起作用。


$cat /etc/udev/rules.d/10-mountusb.rules 
ACTION=="add", SUBSYSTEM=="block", KERNEL==”sd[b-z][1-9]″,
ATTRS{removable}=="1", RUN+=”/usr/bin/pmount %k”
ACTION=="remove",SUBSYSTEM=="block", KERNEL==”sd[b-z][1-9]″,
ATTRS{removable}=="1", RUN+=”/usr/bin/pumount %k”

有没有人懂,给说下。


On 五, 16 10月 09, stesenchina wrote:
> pmount?
>
> enzo fang wrote:
>> 大概是udev和hal
>>
>> 2009/10/15 苏 <[email protected] <mailto:[email protected]>>
>>
>>     我想问 usb 自动挂载是基于什么的,用哪个软件包?
>>     __________________________________________________
>>     �Ͽ�ע���Ż����������������ä?
>>     http://cn.mail.yahoo.com
>>
>>
>>     --
>>     To UNSUBSCRIBE, email to
>>     [email protected]
>>     <mailto:[email protected]>
>>     with a subject of "unsubscribe". Trouble? Contact
>>     [email protected] <mailto:[email protected]>
>>
>>
>>
>>
>> -- 
>> Best Regards
>
>
> -- 
> To UNSUBSCRIBE, email to [email protected]
> with a subject of "unsubscribe". Trouble? Contact [email protected]
>
__________________________________________________
�Ͽ�ע���Ż�����������������?
http://cn.mail.yahoo.com


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

回复