Changes between Version 1 and Version 2 of OpenWrt/init


Ignore:
Timestamp:
11/15/2021 05:25:28 PM (13 months ago)
Author:
Tim Harvey
Comment:

add anchors

Legend:

Unmodified
Added
Removed
Modified
  • OpenWrt/init

    v1 v2  
    2020 * http://wiki.openwrt.org/doc/techref/requirements.boot.process
    2121
     22
     23[=#failsafe]
    2224== Failsafe bootup ==
    2325The /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)
    2426
     27
     28[=#initscript]
    2529== Adding an init script ==
    2630If 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*'