Differences
This shows you the differences between two versions of the page.
| |
| en:scratchbook:boot-scripts [2011/04/21 20:33] – copy from old wiki domcox | en:scratchbook:boot-scripts [2011/04/23 21:08] (current) – fix: files were badly displayed domcox |
|---|
| |
| The /etc/init.d/local.sh script allows the system administrator to add local commands to be executed at boot. Example: | The /etc/init.d/local.sh script allows the system administrator to add local commands to be executed at boot. Example: |
| | <file> |
| #!/bin/sh | #!/bin/sh |
| # /etc/init.d/local.sh: Local startup commands. | # /etc/init.d/local.sh: Local startup commands. |
| |
| echo "Starting local startup commands... " | echo "Starting local startup commands... " |
| | </file> |
| ==== rc.shutdown ==== | ==== rc.shutdown ==== |
| |
| |
| The first file read by the Kernel at boot. It defines the initialization script (/etc/init.d/rcS), shells (ttys) and actions in the event of a reboot or disruption. You will find a complete example with accompanying notes in [[http://doc.slitaz.org/en:cookbook:slitaztools|SliTaz tools]]: | The first file read by the Kernel at boot. It defines the initialization script (/etc/init.d/rcS), shells (ttys) and actions in the event of a reboot or disruption. You will find a complete example with accompanying notes in [[http://doc.slitaz.org/en:cookbook:slitaztools|SliTaz tools]]: |
| | <file> |
| # /etc/inittab: init configuration for SliTaz GNU/Linux. | # /etc/inittab: init configuration for SliTaz GNU/Linux. |
| # Boot-time system configuration/initialization script. | # Boot-time system configuration/initialization script. |
| ::ctrlaltdel:/sbin/reboot | ::ctrlaltdel:/sbin/reboot |
| ::shutdown:/etc/init.d/rc.shutdown | ::shutdown:/etc/init.d/rc.shutdown |
| | </file> |
| ==== Following chapter ==== | ==== Following chapter ==== |
| |
| The next chapter continues on with the [[x-window-system|X window system]]. | The next chapter continues on with the [[x-window-system|X window system]]. |