Skip to content

Instantly share code, notes, and snippets.

@bkutil
Created March 19, 2015 07:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bkutil/4d27a6b3118a3379137c to your computer and use it in GitHub Desktop.
Save bkutil/4d27a6b3118a3379137c to your computer and use it in GitHub Desktop.
#!/bin/bash
rm -rf $(pwd)/build
make clean
CFLAGS='-ggdb -g2 -gdwarf-2 -O0' ./configure --prefix=$(pwd)/build --disable-install-doc
make
make install
sudo ./build/bin/ruby -rsocket -e 'SIOCETHTOOL = 0x8946; i = ["lo", 10.chr].pack("a16p"); s = Socket.new(Socket::AF_INET, Socket::SOCK_DGRAM, 0); s.ioctl(SIOCETHTOOL, i); p i.unpack("a16p")[1]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment