Skip to content

Instantly share code, notes, and snippets.

@flashvoid
Created September 9, 2014 05:39
Show Gist options
  • Save flashvoid/1d551900bf143d6a5387 to your computer and use it in GitHub Desktop.
Save flashvoid/1d551900bf143d6a5387 to your computer and use it in GitHub Desktop.
#!/bin/sh
#
make_mac () {
echo "6A:AA:`ifconfig eth0 | head -1 | sed 's/.*HWaddr...:..:\(..:..:..:..\).*/\1/g'`"
}
if ! test -d /dev/net; then
mkdir /dev/net;
mknod /dev/net/tun c 10 200
chmod 0666 /dev/net/tun
modprobe tun
fi
exec edge.bin $* -m `make_mac`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment