Files
dsfin-ansible/roles/smbclient/files/smb-session.sh
mpelle426 ed7eabd399 -numerous changes to work with Raspbian 10
-redo of some roles, particularly GUI
-modifications to support working from a "Raspbian Lite" install
2019-07-10 14:24:34 +01:00

19 lines
361 B
Bash

#! /bin/bash
file=$(i=$RANDOM
if [ $i -lt 20000 ]; then echo 'test_file_50M'
elif [ $i -lt 29490 ]; then echo 'test_file_100M'
elif [ $i -gt 31129 ]; then echo 'test_file_500M'
else echo 'test_file_200M';
fi)
cd ~/Documents/smb
if pgrep -f test_file >/dev/null
then
exit 0
else
smbclient //192.168.88.230/share -c "get $file" -A ~/.credentials
fi