diff options
Diffstat (limited to 'rescue/tree/ka/setup_network.sh')
-rwxr-xr-x | rescue/tree/ka/setup_network.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/rescue/tree/ka/setup_network.sh b/rescue/tree/ka/setup_network.sh index 718e065f9..347f89f45 100755 --- a/rescue/tree/ka/setup_network.sh +++ b/rescue/tree/ka/setup_network.sh @@ -36,8 +36,8 @@ fi echo My hostname is $myname # change hostname in the network file -old=/disk/etc/sysconfig/network.beforeka -new=/disk/etc/sysconfig/network +old=/mnt/disk/etc/sysconfig/network.beforeka +new=/mnt/disk/etc/sysconfig/network rm -f "$old" mv "$new" "$old" @@ -49,12 +49,12 @@ firstnic=`grep ^GATEWAYDEV "$new" | cut -d = -f 2 | tr -d \"` echo GATEWAYDEV=$firstnic # see if IP has to be written -proto=`grep ^BOOTPROTO /disk/etc/sysconfig/network-scripts/ifcfg-$firstnic | cut -d = -f 2 | tr -d \"` +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=/disk/etc/sysconfig/network-scripts/ifcfg-$firstnic.beforeka - new=/disk/etc/sysconfig/network-scripts/ifcfg-$firstnic + 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" |