Line 51: |
Line 51: |
| | | |
| ===Specific practical examples=== | | ===Specific practical examples=== |
| + | |
| + | These are examples only, please ensure you determine and use the correct settings and template fragments. |
| + | |
| + | ====dhcpd.conf==== |
| + | |
| + | Examine the template fragments in /etc/e-smith/templates/etc/dhcpd.conf and determine which fragment you wish to change. |
| + | Let's say you want to modify a value that is in 25DomainNameServers fragment (for the DNS server setting), and in the 25Routers fragment (for the gateway/router setting). |
| + | |
| + | Copy the fragments to the custom template tree |
| + | mkdir -p /etc/e-smith/templates-custom/etc/dhcpd.conf |
| + | echo "option domain-name-servers 4.2.2.1;" > /etc/e-smith/templates-custom/etc/dhcpd.conf/25DomainNameServers |
| + | echo "option routers 192.168.1.4;" > /etc/e-smith/templates-custom/etc/dhcpd.conf/25Routers |
| + | Expand template and restart dhcpd |
| + | expand-template /etc/dhcpd.conf |
| + | sv t /service/dhcpd |
| + | |
| + | Examine /etc/dhcpd.conf to see that your changes have been created. |
| | | |
| ====php.ini==== | | ====php.ini==== |
Line 58: |
Line 75: |
| | | |
| Copy the fragment to the custom template tree | | Copy the fragment to the custom template tree |
| + | mkdir -p /etc/e-smith/templates-custom/etc/php.ini |
| cp /etc/e-smith/templates/etc/php.ini/40DataHandling /etc/e-smith/templates-custom/etc/php.ini/40DataHandling | | cp /etc/e-smith/templates/etc/php.ini/40DataHandling /etc/e-smith/templates-custom/etc/php.ini/40DataHandling |
| Edit the fragment and make your required changes | | Edit the fragment and make your required changes |