mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-10-31 18:58:01 +00:00
easy-mode script and icon for wlanpro
This commit is contained in:
15
WlanPro.desktop
Executable file
15
WlanPro.desktop
Executable file
@@ -0,0 +1,15 @@
|
|||||||
|
#!/usr/bin/env xdg-open
|
||||||
|
[Desktop Entry]
|
||||||
|
Version=1.0
|
||||||
|
Encoding=UTF-8
|
||||||
|
Name=WLANPro Test
|
||||||
|
Name[en_US.ISO8859-1]=WLANPro Test
|
||||||
|
Comment=WLANPro Test
|
||||||
|
Comment[en_US.ISO8859-1]=WLANPro Test
|
||||||
|
Path=/home/lanforge/Desktop
|
||||||
|
Exec=/home/lanforge/Desktop/wpro.sh
|
||||||
|
Icon=/usr/share/icons/Adwaita/scalable/apps/utilities-terminal-symbolic.svg
|
||||||
|
Type=Application
|
||||||
|
Terminal=true
|
||||||
|
Categories=Network;X-Candela-Technologies
|
||||||
|
GenericName[en_US]=WLANPro Test
|
||||||
37
wpro.sh
Executable file
37
wpro.sh
Executable file
@@ -0,0 +1,37 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
ssid=""
|
||||||
|
security="open"
|
||||||
|
passphrase=""
|
||||||
|
|
||||||
|
read -p "Name of SSID: " SSID
|
||||||
|
read -p "open or wpa2: " SECURITY
|
||||||
|
if [[ "$SECURITY" = "wpa2" ]]; then
|
||||||
|
read -p "Passphrase: " PASSPHRASE
|
||||||
|
fi
|
||||||
|
if [ -z "$SSID" ]; then
|
||||||
|
echo "Blank SSID, bye."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
ssid="--ssid \"$SSID\""
|
||||||
|
|
||||||
|
if [ -z "$SECURITY" ]; then
|
||||||
|
echo "Blank SECURITY, bye."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
security="--security $SECURITY"
|
||||||
|
|
||||||
|
if [[ "$SECURITY" = "wpa2" ]]; then
|
||||||
|
passphrase="--passphrase \"$PASSPHRASE\""
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd /home/lanforge/scripts
|
||||||
|
cmd="./wlanpro_test.pl --manager lanforge-74bb \
|
||||||
|
--gui_host localhost --gui_port 7777 \
|
||||||
|
--ip 5.5.5.2 --netmask 255.255.255.0 \
|
||||||
|
--upstream_resource 1 --upstream_port eth4 --interferer_cx inter_r3_w0 \
|
||||||
|
--ssid "$SSID" $security $passphrase \
|
||||||
|
--testcase -1"
|
||||||
|
echo "$cmd"
|
||||||
|
read -p "Look good?"
|
||||||
|
$cmd
|
||||||
Reference in New Issue
Block a user