blob: 1f197a4cecb6fd813e1764677ee6cf3a1a508116 (
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)
systemctl stop rclone-mount-rc-local.service -s stop
;;
esac
fi
fi
|