Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:cookbook:bootscripts [2010/05/21 21:15] linea |
en:cookbook:bootscripts [2010/09/13 19:40] linea add link and edits |
||
---|---|---|---|
Line 31: | Line 31: | ||
=== 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 === | ||
Line 45: | Line 45: | ||
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. | ||
Line 53: | Line 53: | ||
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 === | ||
Line 62: | Line 65: | ||
===== /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. | ||
Line 84: | Line 87: | ||
::ctrlaltdel:/sbin/reboot | ::ctrlaltdel:/sbin/reboot | ||
::shutdown:/etc/init.d/rc.shutdown | ::shutdown:/etc/init.d/rc.shutdown | ||
- | + | </file> | |
- | </code> | + | |