summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErwan Velu <erwan@mandriva.org>2003-06-19 10:14:35 +0000
committerErwan Velu <erwan@mandriva.org>2003-06-19 10:14:35 +0000
commit818b498d0b06bd56946cccb0eb48b2e22e57e763 (patch)
treea84a03476ace4cda1f130bc067e94d2339b1a86a
parenteab33cb85129d73d64d3feac71461fb4a7ab61a8 (diff)
downloaddrakx-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-xrescue/tree/ka/setup_network.sh28
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