diff options
Diffstat (limited to 'bin/workstation-duplicity')
-rwxr-xr-x | bin/workstation-duplicity | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/workstation-duplicity b/bin/workstation-duplicity index f46fd0b9..d4f7e246 100755 --- a/bin/workstation-duplicity +++ b/bin/workstation-duplicity @@ -19,6 +19,11 @@ if ! [ -e "$HOME/.duply/$DUPLY_PROFILE/conf" ]; then exit 1 fi +offline () { + test "$(wget -q -O- --tries=10 -T20 http://www.msftncsi.com/ncsi.txt)" \ + != "Microsoft NCSI" +} + # fewer checks if we're running at a terminal (this is a bashism) if ! [ -t 1 ]; then # check when we last ran; don't run if it was less than four hours ago |