summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKévin Raymond <kraymond@avencall.com>2012-09-03 12:24:59 +0200
committerKévin Raymond <kraymond@avencall.com>2012-09-03 12:24:59 +0200
commitfd150039d3d52f85aba79110d328c80bed90313c (patch)
treecc448b3611056c603a13d7998127df9c7730c374
parent3dfb3af79a4ae611ec199aad54859c7f3c5e9871 (diff)
The script does not update the IP address by defaultany more. Only set the hostname
-rwxr-xr-xclonezilla/utils/cloning_disks.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/clonezilla/utils/cloning_disks.sh b/clonezilla/utils/cloning_disks.sh
index 26ffaaf..97c4724 100755
--- a/clonezilla/utils/cloning_disks.sh
+++ b/clonezilla/utils/cloning_disks.sh
@@ -64,8 +64,8 @@ set_ntw()
mount | grep -q $partition && sudo umount $partition
sudo mount /dev/$partition $WK_TPM
- sudo sed -i "s|^\(ifconfig eth[0-9] \)\([0-9]\{1,3\}\.\)\{3\}[0-9]\{1,3\}|\1$default_ip$ip_last_byte|" $WK_TPM/etc/rc.local
- sudo sed -i "s|^\(route add default gw \)\([0-9]\{1,3\}\.\)\{3\}[0-9]\{1,3\}|\1$default_gw|" $WK_TPM/etc/rc.local
+# sudo sed -i "s|^\(ifconfig eth[0-9] \)\([0-9]\{1,3\}\.\)\{3\}[0-9]\{1,3\}|\1$default_ip$ip_last_byte|" $WK_TPM/etc/rc.local
+# sudo sed -i "s|^\(route add default gw \)\([0-9]\{1,3\}\.\)\{3\}[0-9]\{1,3\}|\1$default_gw|" $WK_TPM/etc/rc.local
sudo echo "$default_hostname$ip_last_byte" > $WK_TPM/etc/hostname
sudo umount $WK_TPM
echo ""