I have Linux 5.3 redhat I want to add the script add_dhcp.ksh to my Linux machine in order to update ifcfg-eth1 automatically after reboot ( this script enable dhcp and startup eth1 )
my question: please advice the steps that needed in order to activate automatically the add_dhcp.ksh script after Linux reboot ,
add_dhcp.ksh script
#!/bin/ksh
perl -i -pe "s/none/dhcp/" /etc/sysconfig/network-scripts/ifcfg-eth1
perl -i -pe "s/no/yes/" /etc/sysconfig/network-scripts/ifcfg-eth1
ifdown eth1
ifup eth1