|
发表于 2007-8-17 14:11:56
|
显示全部楼层
一般放到 rc.local 里吧
lfs 没有 rc.local,不过可以这样添加:- touch /etc/rc.d/rc.local
- chmod +x /etc/rc.d/rc.local
- ln -sf /etc/rc.d/rc.local /etc/rc.d/rc1.d/S999rc.local &&
- ln -sf /etc/rc.d/rc.local /etc/rc.d/rc2.d/S999rc.local &&
- ln -sf /etc/rc.d/rc.local /etc/rc.d/rc3.d/S999rc.local &&
- ln -sf /etc/rc.d/rc.local /etc/rc.d/rc4.d/S999rc.local &&
- ln -sf /etc/rc.d/rc.local /etc/rc.d/rc5.d/S999rc.local &&
- ln -sf /etc/rc.d/rc.local /etc/rc.d/rc6.d/S999rc.local
复制代码 |
|