Fedora 16设置开机自启动程序与Ubuntu的区别
摘要:
Ubuntu设置开机自启动脚本的方法是:修改/etc/init.d/rc.local这个文件,添加需要启动的程序即可,相关函数如下:void SetSysAutoBoot(){ char path[256] = {0}; int ret = 0; ret = readlink("/proc/self/exe",path,sizeof(path)); if((ret > 0 )&& (ret > /etc/init.d/rc.local\n",path); printf(buf); system(buf); } free(b... 阅读全文
posted @ 2013-07-05 11:28 净坛使者 阅读(1585) 评论(0) 推荐(0) 编辑