You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
591 B
Fish
19 lines
591 B
Fish
# Defined in /tmp/fish.ZxMSyI/bayern-login.fish @ line 2
|
|
function bayern-login
|
|
wificonnect @BayernWLAN
|
|
set root /home/anton/projects/bavaria-wifi
|
|
|
|
set_color -o green; echo -e "CONNECTED"; set_color normal
|
|
sleep 2
|
|
bw-check
|
|
#set fname all.min-(date +%Y-%m-%d-%H-%M-%S).js
|
|
#set js (curl https://hotspot.vodafone.de/bayern/dist/js/all.min.js)
|
|
#set sha (echo -n "$js" | sha1sum | string split " ")[1]
|
|
|
|
#if ! cat $root/shasums | grep $sha
|
|
# echo "$js" > $root/scripts/$fname
|
|
# echo "Found new script! sha: $sha. Saved in $root/scripts/$fname"
|
|
# echo "$sha" >> $root/shasums
|
|
#end
|
|
end
|