Last active
October 20, 2018 15:51
-
-
Save syaifulnizamyahya/132110664686265f487a9a1cfb46bb35 to your computer and use it in GitHub Desktop.
Autorun script to mount rclone and encfs for libreelec
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #/bin/sh | |
| cd /storage/downloads/Tool/RcloneTool/tmp | |
| curl -O https://downloads.rclone.org/rclone-current-linux-arm64.zip | |
| unzip -o rclone-current-linux-arm64.zip | |
| cd rclone-*-linux-arm64 | |
| cp * /storage/downloads/Tool/RcloneTool/bin | |
| chown root:root /storage/downloads/Tool/RcloneTool/bin/rclone | |
| chmod 755 /storage/downloads/Tool/RcloneTool/bin/rclone | |
| cd /storage/downloads/Tool/RcloneTool/bin | |
| screen -dmS rclonemount /storage/downloads/Tool/RcloneTool/bin/rclone mount ijm: /storage/downloads/mount/ijm/ -vvv --max-read-ahead 256M --buffer-size 64M --dir-cache-time 24h --poll-interval 5m --allow-other --vfs-cache-mode writes | |
| sleep 10s && | |
| echo password | ENCFS6_CONFIG='/storage/downloads/Tool/RcloneTool/.encfs6.xml' encfs \ | |
| -S -o rw -o allow_other -o uid=99 -o gid=100 \ | |
| /storage/downloads/mount/ijm/encfs \ | |
| /storage/downloads/mount/encfs | |
| sleep 1s && | |
| echo password | ENCFS6_CONFIG='/storage/downloads/Tool/RcloneTool/.encfs6.xml' encfs \ | |
| -S -o rw -o allow_other -o uid=99 -o gid=100 \ | |
| /storage/downloads/mount/ijm/amzn \ | |
| /storage/downloads/mount/amzn |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment