Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2935740
  • 博文数量: 401
  • 博客积分: 12926
  • 博客等级: 上将
  • 技术积分: 4588
  • 用 户 组: 普通用户
  • 注册时间: 2009-02-22 14:51
文章分类

全部博文(401)

文章存档

2015年(16)

2014年(4)

2013年(12)

2012年(82)

2011年(98)

2010年(112)

2009年(77)

分类: LINUX

2011-04-26 15:05:37

The solution is as follows;

It is not a long term solution, but I found another solution, for getting /proc/bus/usb back again and no need for usbfs.

First I put my user to sudoers for /bin/mount and /bin/umount
Then I changed my scanner script to do the magic.

Before running my scanner the script will do:
sudo mount --bind /dev/bus /proc/bus

while on exit of the script it fires the command:
sudo umount -l /proc/bus

mount --bind /dev/bus /proc/bus or
mount --bind /dev/bus/usb /proc/bus/usb
will make /proc/bus/usb accessible /proc/bus/usb for some hardware (although this will cause the other directories under /proc/bus to be hidden). So you should umount again, after use.
阅读(8482) | 评论(0) | 转发(3) |
给主人留下些什么吧!~~