blob: 273825c4a96dc7d0d6a8f21076fcc18bd4085fb5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/bin/sh
os=$(cat /tmp/os)
case $os in
1)
ping -c1 -w1 1.1.1.1 >/dev/null 2>&1 || exit
;;
2)
ping -c1 -w1 1.1.1.1 >/dev/null 2>&1 || exit
;;
3)
ping -c1 -t1 1.1.1.1 >/dev/null 2>&1 || exit
;;
esac
echo 'WEATHER ${hr}
${font2}${color #ebdbb2}${alignc}${exec curl wttr.in/Lyon?T0 --silent --max-time 3}${font}'
|