摘要: 由于systemd合并udev之后,咱们就不能再用udev的规则来挂接移动硬盘了所以决定利用dbus的机制来规避systemd对于cgroup控制导致的挂接移动硬盘问题开发一个简单的dbus服务器,其功能很简单,接收从客户端过来的命令参数,然后调用system()来执行这当然是有安全问题的,但在自己的机器使用,谁管呢#include <stdio.h>#include <stdlib.h>#include <unistd.h>#include <dbus/dbus.h>#include <dbus/dbus-glib.h>#inclu 阅读全文
posted @ 2013-06-13 23:20 日月王 阅读(1669) 评论(0) 推荐(0) 编辑