Changes between Version 1 and Version 2 of OpenWrt/init
- Timestamp:
- 11/15/2021 05:25:28 PM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
OpenWrt/init
v1 v2 20 20 * http://wiki.openwrt.org/doc/techref/requirements.boot.process 21 21 22 23 [=#failsafe] 22 24 == Failsafe bootup == 23 25 The /etc/preinit script has a 'failsafe' mechanism which allows you a few seconds to answer a prompt to go into 'failsafe mode'. This simply stops execution of the init scripts in case you have a mis-configuration or other issue that is keeping you from configuring the target board. There are many configurations for the failsafe mechanism at the top of /etc/preinit (network config, timeout, messages, etc) 24 26 27 28 [=#initscript] 25 29 == Adding an init script == 26 30 If you want something simple to be done 'near the end of every boot' a good place to put it may be in /etc/rc.local as this is executed by the /etc/init.d/done script which is symlinked to /etc/rc.d/S95done. Note that this isn't the 'last' init script run but is for sure near the end. You can see all the startup scripts in order with 'ls /etc/rc.d/S*'