Created
January 12, 2019 10:27
-
-
Save Oskang09/21da0912cb1e5cfa9e6bfceeb39f8434 to your computer and use it in GitHub Desktop.
Local Area Network Setup Bash
This file contains 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/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