mirror of
https://github.com/tomasriveral/nixos.git
synced 2026-10-11 01:12:43 +02:00
kdrive: wait for an internet connection before attempting to mount
This commit is contained in:
1 parent
42dc5f8792
commit
be9b959212
2 files changed
+219
-211
No files matched your search
@@ -13,6 +13,14 @@ writeShellApplication {
|
||||
libnotify
|
||||
];
|
||||
text = ''
|
||||
|
||||
# waits for an internet connection. It pings both Google DNS and Cloudfare dns in case one of them is down
|
||||
until ping -c1 -W1 1.1.1.1 >/dev/null 2>&1 || \
|
||||
ping -c1 -W1 8.8.8.8 >/dev/null 2>&1
|
||||
do
|
||||
sleep 1
|
||||
done
|
||||
|
||||
set +e
|
||||
|
||||
output=$(rclone lsd kdrive: 2>&1)
|
||||
|
||||
Reference in new issue
Block a user