summarylogtreecommitdiffstats
path: root/10-rclone
blob: 4d84e3a1ad376513d2bcf1ede9c4e1aab56eb63c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/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
     
        case "$2" in
                up)
                        /etc/rclone-mount-rc.local.d/rc5-mount-remote-google.sh -r all
                ;;
                down)
                         /etc/rclone-mount-rc.local.d/rc5-mount-remote-google.sh -s all
                ;;
        esac
  fi
fi