summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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