From 321273f8d4aaac3f9676dccecb8c4a3b0e037d7b Mon Sep 17 00:00:00 2001 From: peepsnet Date: Thu, 1 Jun 2017 10:49:55 -0400 Subject: [PATCH] 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 --- image/stxAliases.txt | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/image/stxAliases.txt b/image/stxAliases.txt index 17238f77..bd6df9c6 100644 --- a/image/stxAliases.txt +++ b/image/stxAliases.txt @@ -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 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' function _stxhelp() { +clear 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 " Common tools " +echo "########################################################" +echo "" +echo "secure Turns on WiFi Security" +echo "open Turns off WiFi Security" 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 "stxrestart Restart Startux service only" 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 "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 "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" }