Skip to content

Instantly share code, notes, and snippets.

@nilox94
Created June 13, 2018 18:05
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 nilox94/7eb75851e8c51fdc620d50227107e336 to your computer and use it in GitHub Desktop.
Save nilox94/7eb75851e8c51fdc620d50227107e336 to your computer and use it in GitHub Desktop.
create a WiFi hotspot with `create_ap` bridging the wired network interface
#!/bin/sh
sudo create_ap `ifconfig -a | awk '/^w.*Ethernet/ { print $1; exit }` `ifconfig -a | awk '/^w.*Ethernet/ { print $1; exit }` $*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment