From 40b78a0f39429ea3a52013b429c3a3b60b08491d Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 27 Jul 2015 08:29:13 +0100 Subject: [PATCH] mac address --- src/freedombone-prep | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/freedombone-prep b/src/freedombone-prep index 05fb2af4..c17c9635 100755 --- a/src/freedombone-prep +++ b/src/freedombone-prep @@ -225,7 +225,8 @@ a=${hexarray[$RANDOM%16]}${hexarray[$RANDOM%16]} b=${hexarray[$RANDOM%16]}${hexarray[$RANDOM%16]} c=${hexarray[$RANDOM%16]}${hexarray[$RANDOM%16]} d=${hexarray[$RANDOM%16]}${hexarray[$RANDOM%16]} -$SUDO sed -i "s|#hwaddress ether.*|hwaddress ether DE:AD:$a:$b:$c:$d|g" $MICROSD_MOUNT_POINT/$ROOTFS/etc/network/interfaces +e=${hexarray[$RANDOM%16]}${hexarray[$RANDOM%16]} +$SUDO sed -i "s|#hwaddress ether.*|hwaddress ether de:$a:$b:$c:$d:$e|g" $MICROSD_MOUNT_POINT/$ROOTFS/etc/network/interfaces $SUDO sed -i "s/nameserver.*/nameserver $NAMESERVER1/g" $MICROSD_MOUNT_POINT/$ROOTFS/etc/resolv.conf $SUDO sed -i "/nameserver $NAMESERVER1/a\nameserver $NAMESERVER2" $MICROSD_MOUNT_POINT/$ROOTFS/etc/resolv.conf