| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| en:cookbook:bootscripts [2010/07/08 15:14] – external edit 127.0.0.1 | en:cookbook:bootscripts [2010/09/13 17:40] (current) – add link and edits linea |
|---|
| === bootopts.sh - LiveCD mode options === | === bootopts.sh - LiveCD mode options === |
| |
| This script is used to configure the LiveCD options passed at boot time and is readable via the ///proc/cmdline// file. This is the script that enables you to use a USB key or external hard disk ///home// partition with the option //home=usb// or //home=sda[1-9]//. Note, it can also directly specify the language and keyboard parameters. | This script is used to configure the LiveCD options passed at boot time and is readable via the ///proc/cmdline// file. This is the script that enables you to use a USB key or external hard disk ///home// partition with the option //home=usb// or //home=sda[1-9]//. Note that it can also directly specify the language and keyboard parameters. |
| |
| === network.sh - Initializing the network === | === network.sh - Initializing the network === |
| 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: |
| |
| <code> | <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... " |
| </code> | </file> |
| |
| | === wpa_action.sh - Wireless network === |
| | |
| | This script is applied by //network.sh// to start/restart the DHCP server if you use a dynamic IP. |
| |
| === rc.shutdown === | === rc.shutdown === |
| ===== /etc/inittab - Configuration file init ====== | ===== /etc/inittab - Configuration file init ====== |
| |
| The first file read by the Kernel at boot. It defines the initialization script (///etc/init.d/rcS//), virtual terminals (ttys) and actions in the event of a reboot or disruption. You will find a complete example with accompanying notes in SliTaz tools: | The first file read by the Kernel at boot. It defines the initialization script (///etc/init.d/rcS//), virtual terminals (ttys) and actions in the event of a reboot or disruption. You will find a complete example with accompanying notes in [[en:cookbook:slitaztools|SliTaz tools]]: |
| |
| <code> | <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> |
| </code> | |
| |