summarylogtreecommitdiffstats
path: root/10-rclone
diff options
context:
space:
mode:
authordameck2020-12-15 13:16:36 +0800
committerdameck2020-12-15 13:16:36 +0800
commit3fac92a88f6b5935752b820d5e2bac9c683bf391 (patch)
tree68501c8c20bda75fb1974f8eedd707cd7aa9bc49 /10-rclone
downloadaur-3fac92a88f6b5935752b820d5e2bac9c683bf391.tar.gz
init commit
Diffstat (limited to '10-rclone')
-rw-r--r--10-rclone18
1 files changed, 18 insertions, 0 deletions
diff --git a/10-rclone b/10-rclone
new file mode 100644
index 000000000000..4b24e46a5257
--- /dev/null
+++ b/10-rclone
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+
+if [ -e /sys/fs/cgroup/systemd ]; then
+ case "$2" in
+ up)
+ systemctl start rclone-mount-rc-local.service
+ ;;
+ down)
+ systemctl stop rclone-mount-rc-local.service
+ ;;
+ esac
+else
+
+ if [ -e "/etc/rclone-mount-rc.local.d/rc5-mount-remote-google.sh" ]; then
+ /etc/rclone-mount-rc.local.d/rc5-mount-remote-google.sh
+ fi
+fi