Skip to content

Commit

Permalink
Minor updates after latest pull request #8
Browse files Browse the repository at this point in the history
  • Loading branch information
jhubig committed Jan 12, 2020
1 parent 7414e66 commit d72df44
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ Example (Deactivates the 5Ghz on your FritzBox):
| REBOOT | Box or Repeater | Rebooting your Fritz!Box or Fritz!Repeater |
| UPNPMetaData | STATE or <filename> | Full unformatted output of tr64desc.xml to console or file |
| IGDMetaData | STATE or <filename> | Full unformatted output of igddesc.xml to console or file |
| VERSION | <N/A> | Version of the fritzBoxShell.sh |

### Notes:

Expand Down
6 changes: 3 additions & 3 deletions fritzBoxShell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ DisplayArguments() {
echo "| Action | Parameter | Description |"
echo "|--------------|------------------------|-------------------------------------------------------------------------|"
echo "|--------------|------------------------|-------------------------------------------------------------------------|"
echo "| DeviceInfo | STATE | Show information about your Fritz!Box like ModelName, SN, etc. |"
echo "| DEVICEINFO | STATE | Show information about your Fritz!Box like ModelName, SN, etc. |"
echo "| WLAN_2G | 0 or 1 or STATE | Switching ON, OFF or checking the state of the 2,4 Ghz WiFi |"
echo "| WLAN_2G | STATISTICS | Statistics for the 2,4 Ghz WiFi easily digestible by telegraf |"
echo "| WLAN_5G | 0 or 1 or STATE | Switching ON, OFF or checking the state of the 5 Ghz WiFi |"
Expand Down Expand Up @@ -499,7 +499,7 @@ then
DisplayArguments
elif [ -z "$2" ]
then
if [ "${option1^^}" = "VERSION" ]; then
if [ "$option1" = "VERSION" ]; then
script_version
else DisplayArguments
fi
Expand Down Expand Up @@ -548,7 +548,7 @@ else
UPNPMetaData "$option2";
elif [ "$option1" = "IGDMetaData" ]; then
IGDMetaData "$option2";
elif [ "${option1^^}" = "DEVICEINFO" ]; then
elif [ "$option1" = "DEVICEINFO" ]; then
Deviceinfo "$option2";
elif [ "$option1" = "LED" ]; then
LEDswitch "$option2";
Expand Down
6 changes: 3 additions & 3 deletions fritzBoxShellTest.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ do
[[ "$words" -ge ${minwords[$counter]} ]] && echo -e "\tis working!" || echo -e "\tis not working!"
counter=$((counter+1))
done
/bin/bash "$DIRECTORY/fritzBoxShell.sh" Deviceinfo 3 | grep NewModelName
/bin/bash "$DIRECTORY/fritzBoxShell.sh" Deviceinfo 3 | grep NewSoftwareVersion
/bin/bash "$DIRECTORY/fritzBoxShell.sh" Version
/bin/bash "$DIRECTORY/fritzBoxShell.sh" DEVICEINFO 3 | grep NewModelName
/bin/bash "$DIRECTORY/fritzBoxShell.sh" DEVICEINFO 3 | grep NewSoftwareVersion
/bin/bash "$DIRECTORY/fritzBoxShell.sh" VERSION

0 comments on commit d72df44

Please sign in to comment.