Skip to content

Instantly share code, notes, and snippets.

@horodchukanton
Last active December 2, 2016 10:19
Show Gist options
  • Save horodchukanton/9aa5b2fb7f6b4b826aa303275386f20f to your computer and use it in GitHub Desktop.
Save horodchukanton/9aa5b2fb7f6b4b826aa303275386f20f to your computer and use it in GitHub Desktop.
CONF_FILE="/etc/chilli/main.conf"
INTERFACE=`cat \${CONF_FILE} | grep dhcpif | awk '{ print \$2 }'`;
MAC=`ifconfig \${INTERFACE} | grep HWaddr | awk '{ print \$5 }' | sed s/:/-/g`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment