Created
September 9, 2014 05:39
-
-
Save flashvoid/1d551900bf143d6a5387 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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