1:boot.local
这个是系统启动完所有的boot.services之后执行的脚本。详见文件注释
# /etc/rc.d/boot.local
# Here you should add things, that should happen directly after booting
# before we're going to the first run level.
#
2:before.local 和 after.local
这个是由/etc/init.d/rc里面来控制的,发生在切换运行级别之前和之后。
结论:如果你想进入系统最后执行的一个变量和参数。应该写入文件after.local
这个是系统启动完所有的boot.services之后执行的脚本。详见文件注释
# /etc/rc.d/boot.local
# Here you should add things, that should happen directly after booting
# before we're going to the first run level.
#
2:before.local 和 after.local
这个是由/etc/init.d/rc里面来控制的,发生在切换运行级别之前和之后。
结论:如果你想进入系统最后执行的一个变量和参数。应该写入文件after.local
本文详细介绍了Linux系统启动过程中执行的不同脚本及其作用,包括boot.local、before.local和after.local。了解这些脚本有助于用户在系统启动阶段进行个性化配置。
3450

被折叠的 条评论
为什么被折叠?



