summaryrefslogtreecommitdiff
path: root/e3372.sh
blob: 1e1ad164331b8a40c12269f4d2126e6bb2b9ada6 (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" >> $SIGNAL_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"