From fd150039d3d52f85aba79110d328c80bed90313c Mon Sep 17 00:00:00 2001 From: Kévin Raymond Date: Mon, 3 Sep 2012 12:24:59 +0200 Subject: The script does not update the IP address by defaultany more. Only set the hostname --- clonezilla/utils/cloning_disks.sh | 4 ++-- 1 file 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 "" -- cgit v1.2.3