Skip to content

Instantly share code, notes, and snippets.

@Oskang09
Created January 12, 2019 10:27
Show Gist options
  • Save Oskang09/21da0912cb1e5cfa9e6bfceeb39f8434 to your computer and use it in GitHub Desktop.
Save Oskang09/21da0912cb1e5cfa9e6bfceeb39f8434 to your computer and use it in GitHub Desktop.
Local Area Network Setup Bash
#!/bin/bash
printf "Setting up for Local Hosted Network\n\n"
interface_name=`iw dev | awk '$1 == "Interface"{print $2}'`
printf "=======================\n"
printf "Wifi Interface Name: \n";
count=1;
for i in $(echo $interface_name | tr ";" "\n");
do
printf " $count. $i\n"
((count++))
done;
printf "=======================\n\n"
printf " Input your Interface Name : "
read interface
printf " Input your AP : "
read ap
printf " Input your Password : "
read pw
printf "\n"
printf "Your local hosted network will be hosted using\n"
printf " Interface : $interface\n"
printf " AP : $ap\n"
printf " Password : $pw\n"
printf "\n"
sudo create_ap $interface $interface $ap $pw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment