summarylogtreecommitdiffstats
path: root/10-rclone
blob: 4b24e46a525795e38e831bdf8e7dd03af86b8380 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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