diff options
author | Erwan Velu <erwan@mandriva.org> | 2003-06-19 10:14:35 +0000 |
---|---|---|
committer | Erwan Velu <erwan@mandriva.org> | 2003-06-19 10:14:35 +0000 |
commit | 818b498d0b06bd56946cccb0eb48b2e22e57e763 (patch) | |
tree | a84a03476ace4cda1f130bc067e94d2339b1a86a | |
parent | eab33cb85129d73d64d3feac71461fb4a7ab61a8 (diff) | |
download | drakx-818b498d0b06bd56946cccb0eb48b2e22e57e763.tar drakx-818b498d0b06bd56946cccb0eb48b2e22e57e763.tar.gz drakx-818b498d0b06bd56946cccb0eb48b2e22e57e763.tar.bz2 drakx-818b498d0b06bd56946cccb0eb48b2e22e57e763.tar.xz drakx-818b498d0b06bd56946cccb0eb48b2e22e57e763.zip |
Fixing crappy output during ka duplication
-rwxr-xr-x | rescue/tree/ka/setup_network.sh | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/rescue/tree/ka/setup_network.sh b/rescue/tree/ka/setup_network.sh index 06339beaf..89ddd2c91 100755 --- a/rescue/tree/ka/setup_network.sh +++ b/rescue/tree/ka/setup_network.sh @@ -50,21 +50,21 @@ cat "$old" | grep -v ^HOSTNAME= > "$new" echo "HOSTNAME=$myname" >> "$new" # assume first NIC is the gatewaydev (right ? wrong ?) -firstnic=`grep ^GATEWAYDEV "$new" | cut -d = -f 2 | tr -d \"` -echo GATEWAYDEV=$firstnic +#firstnic=`grep ^GATEWAYDEV "$new" | cut -d = -f 2 | tr -d \"` +#echo GATEWAYDEV=$firstnic # see if IP has to be written -proto=`grep ^BOOTPROTO /mnt/disk/etc/sysconfig/network-scripts/ifcfg-$firstnic | cut -d = -f 2 | tr -d \"` -echo PROTO=$proto -if [ "$proto" != "dhcp" ]; then - # proto is static, write the new IP in the config file - old=/mnt/disk/etc/sysconfig/network-scripts/ifcfg-$firstnic.beforeka - new=/mnt/disk/etc/sysconfig/network-scripts/ifcfg-$firstnic - - rm -f "$old" - mv "$new" "$old" - cat "$old" | grep -v ^IPADDR= > "$new" - echo IPADDR=$ip >> "$new" -fi +#proto=`grep ^BOOTPROTO /mnt/disk/etc/sysconfig/network-scripts/ifcfg-$firstnic | cut -d = -f 2 | tr -d \"` +#echo PROTO=$proto +#if [ "$proto" != "dhcp" ]; then +# # proto is static, write the new IP in the config file +# old=/mnt/disk/etc/sysconfig/network-scripts/ifcfg-$firstnic.beforeka +# new=/mnt/disk/etc/sysconfig/network-scripts/ifcfg-$firstnic +# +# rm -f "$old" +# mv "$new" "$old" +# cat "$old" | grep -v ^IPADDR= > "$new" +# echo IPADDR=$ip >> "$new" +#fi cd $curdir |