summaryrefslogtreecommitdiff
path: root/e3372.sh
blob: 1a8693b058a3fa5d6925789065b9eff413b85873 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd)"
. "$DIR/include.sh"

get_token
get_xml "device/information" > $STATUS_FILE
get_xml "device/signal" >> $STATUS_FILE

wmode=$(cat $STATUS_FILE | grep workmode | sed -e 's/<[^>]*>//g')
rssi=$(cat $STATUS_FILE | grep rssi | sed -e 's/<[^>]*>//g')

echo "mode: $wmode"
echo "signal: $rssi"