如何加入SUSE开机启动脚本
如何加入SUSE开机启动脚本
以下/etc/init.d 下的几个档案
1. boot.local –> 这个开机启动档案会在 rc5.d 前就有动作
2. halt.local –> 这个关机启动档案会在最后有动作
3. before.local –> 这个档案比较用不到所以不需多做解释
4. after.local –> 这个档案会在 rc5.d 之后有动作,就是最重要的开机启动档,要设定路由或 copy 档案等都在这里
例:
vi /etc/init.d/after.local;chmod 755 /etc/init.d/after.local
#! /bin/sh
arping –A 192.168.1.100 –I eth0 & #防止IP被抢
转载于:https://blog.51cto.com/idckx/1270770