title: Changing mac address with cron
body: <p>I'm trying to change my MAC address by running a shell script in cron. Ubunutu 10.10.
  Cron line:</p>
  
  <pre><code>40 16 * * * /root/proj/changeMAC.sh &gt; /root/proj/log.txt
  </code></pre>
  
  <p>changeMAC.sh:</p>
  
  <pre><code>#!/bin/bash
  . $HOME/.profile
  . $HOME/.bashrc
  ifconfig eth0 down
  ifconfig eth0 hw ether XX:XX:XX:XX:XX:XX
  ifconfig eth0 up
  dhclient eth0
  </code></pre>
  
  <p>Where XX:XX:XX:XX:XX:XX is a real MAC address. when this runs, the MAC address doesn't change. What gives?</p>