Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
wiki:bootlocal.sh_and_shutdown.sh [2011/04/18 07:25] – external edit 127.0.0.1wiki:bootlocal.sh_and_shutdown.sh [2011/05/01 14:47] (current) – [Execute Commands during Startup or Shutdown] Guy
Line 1: Line 1:
-If you want some commands executed after every boot then you should add them to bootlocal.sh. This script is executed after the boot sequenceSimilarly if you want some commands executed before every shutdown you should add them to shutdown.sh as it is executed before every shutdownBy default these two files do not contain any commands and are kept in /opt directory. If you edit them and if you don't have persistent /opt then be sure they are backed up before shutting down. By default these files are backed up.+====== Run Commands during Startup or Shutdown ====== 
 + 
 +==== bootsync.sh and bootlocal.sh ==== 
 + 
 +If you want commands executed every time you start the computer, add them to /opt/bootsync.sh or /opt/bootlocal.sh. 
 + 
 +/opt/bootsync.sh is run early in the boot process. 
 + 
 +/opt/bootlocal.sh is run later in the boot process. 
 + 
 +Most commands should go in /opt/bootlocal.sh, except commands you want executed early in the boot process. 
 + 
 +After changing one of these files, if you don't have persistent /opt, backup when turning the computer off. 
 + 
 +==== shutdown.sh ==== 
 + 
 +If you want commands executed before the computer is turned off, add them to /opt/shutdown.sh. 
 + 
 +After changing this file, if you don't have persistent /opt, backup when turning the computer off. 
Print/export
QR Code
QR Code wiki:bootlocal.sh_and_shutdown.sh (generated for current page)