Skip to content

Commit

Permalink
Update sledovanitv-register.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
krejcipetr authored Dec 6, 2019
1 parent 194f330 commit e13429e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sledovanitv-register.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ read -p "SledovaniTV.cz email:" weblogin
read -s -p "Heslo:" webpasswd
echo

mac=$( ( find /sys/class/net -mindepth 1 -maxdepth 1 ! -name lo -execdir cat {}/address \; ) | head -n 1 )
mac=$( ( find /sys/class/net -mindepth 1 -maxdepth 1 ! -name lo -exec cat {}/address \; ) | head -n 1 )
regaddress=https://sledovanitv.cz/api/create-pairing?username=${weblogin}\&password=${webpasswd}\&type=xbmc\&product=$(hostname)\&serial=${mac}
regstring=$(wget -q -O - --no-check-certificate ${regaddress})
echo "${regstring}" | grep -q -E "\"status\":1"
Expand Down

0 comments on commit e13429e

Please sign in to comment.