There are times when small modifications are required, like say changing from DHCP to static or changing IP address or GW or blacklisting a device.
Normally this would require opening the xzm, changing it, then remaking the module and finally remaking the ISO.
In the case where one is booting off a USB stick, could one just not make one change initially by pointing to a bash script say in /mnt/sda1/SomeDirectory/TheScript ?
Then in the script, put the changes in there.
So any changes would only require changes to the script on the USB stick.
Code: Select all
#!/bin/bash # change IP address and GW ifconfig eth0 192.168.1.10 netmask 255.255.255.0 route add default gw 192.168.1.1 eth0 echo "nameserver 220.127.116.11" > /etc/resolv.conf # Run some binary ./TheBinary
1) Where would one point to the script ? in /etc/rc.d/rc.local ?
2) Would this be acceptable or could there be problems in introducing some changes/customizations this way ?
Thanks in advance.