added an easy alias for securing/opening WiFI

Added "open" and "secure" as aliases to easily open or secure your WiFi

It simply calls the hostapd_manager.sh script with either -o or -e
pull/611/head
peepsnet 2017-06-01 10:49:55 -04:00 zatwierdzone przez GitHub
rodzic a72219bae5
commit 321273f8d4
1 zmienionych plików z 17 dodań i 5 usunięć

Wyświetl plik

@ -24,18 +24,32 @@ alias kalChan1='function _kalChan1 () { kal -d 1 -g 47 -c $1; unset -f _kalChan1
alias setSerial0='function _setSerial0 () { rtl_eeprom -d 0 -s stx:0:$1; unset -f _setSerial0; }; _setSerial0' alias setSerial0='function _setSerial0 () { rtl_eeprom -d 0 -s stx:0:$1; unset -f _setSerial0; }; _setSerial0'
alias setSerial1='function _setSerial1 () { rtl_eeprom -d 1 -s stx:0:$1; unset -f _setSerial1; }; _setSerial1' alias setSerial1='function _setSerial1 () { rtl_eeprom -d 1 -s stx:0:$1; unset -f _setSerial1; }; _setSerial1'
alias secure='hostapd_manager.sh -e'
alias open='hostapd_manager.sh -o'
alias stratux-help='_stxhelp' alias stratux-help='_stxhelp'
function _stxhelp() { function _stxhelp() {
clear
echo "" echo ""
echo "###################################################" echo "########################################################"
echo "" echo ""
echo "These are commands avalible to you to debug Stratux" echo "These are commands avalible to you. Use at your own Risk"
echo "" echo ""
echo "###################################################" echo "########################################################"
echo "" echo ""
echo " Common tools "
echo "########################################################"
echo ""
echo "secure Turns on WiFi Security"
echo "open Turns off WiFi Security"
echo "stratux-off Shutdown Stratux" echo "stratux-off Shutdown Stratux"
echo "hostapd_manager.sh Sets the Change SSID, Channel, or Encryption for your Stratux"
echo "sdr-tool.sh Tool to walk you though setting your SDRs Serials"
echo ""
echo " Developer Tools "
echo "########################################################"
echo ""
echo "sa List all services running" echo "sa List all services running"
echo "stxrestart Restart Startux service only" echo "stxrestart Restart Startux service only"
echo "stxstop Stop Stratux Service." echo "stxstop Stop Stratux Service."
@ -52,8 +66,6 @@ echo "kalChan0 Use the Chan from above to get ppm pf SDR0. Exam
echo "kalChan1 Use the Chan from above to get ppm pf SDR1. Example: kalChan1 151" echo "kalChan1 Use the Chan from above to get ppm pf SDR1. Example: kalChan1 151"
echo "setSerial0 Set the PPM error to SDR0. Value from kalChan0. Example: setSerial0 -45" echo "setSerial0 Set the PPM error to SDR0. Value from kalChan0. Example: setSerial0 -45"
echo "setSerial1 Set the PPM error to SDR1. Value from kalChan1. Example: setSerial1 23" echo "setSerial1 Set the PPM error to SDR1. Value from kalChan1. Example: setSerial1 23"
echo "hostapd_manager.sh Sets the Change SSID, Channel, or Encryption for your Stratux"
echo "sdr-tool.sh Tool to walk you though setting your SDRs Serials"
echo "raspi-config Open Raspberry Pi settings to expand filesystem" echo "raspi-config Open Raspberry Pi settings to expand filesystem"
} }