CentOS 禁用hald-addon-stor

11 年 ago jony CentOS 禁用hald-addon-stor已关闭评论

在centos 6.X上测试可禁用

hald-addon-stor负责检测外围设备插入情况(光驱肯定包括,不知道包括不包括显示器)

资源占用有点,为了节约可以关闭

vi /etc/hal/fdi/policy/99-custom.fdi

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <deviceinfo version="0.2">
  3.     <device>
  4.         <match key="storage.removable" bool="true">
  5.             <remove key="info.addons" type="strlist">hald-addon-storage</remove>
  6.         </match>
  7.     </device>
  8. </deviceinfo>
改完重启haldaemon进程
/etc/init.d/haldaemon restart