阅读背景:

在Linux中编写USB设备安装脚本的更好方法

来源:互联网 

I'm writing a python module for a device that interacts with a user supplied USB memory stick. The user can insert a USB memory stick in the device USB slot, and the device will dump data onto the memory stick without user intervention. If the device is running when the user inserts the USB stick, I have hooked into D-Bus and have an auto mount routine all worked out. The new issue is, what if the stick is inserted while the device is powered off? I get no D-Bus insertion event, or any the associated nuggets of information about the memory stick after the device is powered on.I'm writing a python module for a device that i




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: