Skip to content

Commit

Permalink
Improve custom params
Browse files Browse the repository at this point in the history
  • Loading branch information
Geofferey committed Aug 3, 2019
1 parent 7bf799d commit 149a1b6
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions common/service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,8 @@ sd_binder () {
su -M -c mount --bind ${CLOUDROOTMOUNTPOINT}/${remote} ${BINDPOINT} >> /dev/null 2>&1

fi

echo "[$remote] available at: -> [/sdcard/Cloud/${remote}]"

else

Expand Down Expand Up @@ -244,6 +246,8 @@ sd_binder () {

fi

echo "[$remote] available at: -> [/sdcard/${SDBINDPOINT}]"

fi

fi
Expand Down Expand Up @@ -290,7 +294,9 @@ rclone_mount () {

su -M -p -c nice -n 19 ionice -c 2 -n 7 $HOME/rclone mount ${remote}: ${CLOUDROOTMOUNTPOINT}/${remote} --config ${CONFIGFILE} ${RCLONE_PARAMS} --daemon & >> /dev/null 2>&1

sleep 5
unset RCLONE_PARAMS
unset REPLACE_PARAMS
unset ADD_PARAMS

}

Expand All @@ -313,8 +319,6 @@ DECRYPT_CHK () {

}

sleep 5

if [[ ${COUNT} -eq 240 ]] || [[ ! -d /sdcard/Android ]]; then

echo "Not decrypted" >> /data/local/tmp/rclone-remount.log
Expand Down Expand Up @@ -427,6 +431,7 @@ ${HOME}/rclone listremotes --config ${CONFIGFILE}|cut -f1 -d: |
global_params >> /dev/null 2>&1

remote=${list_remote}

custom_params

if [[ ${DISABLE} = 1 ]] || [[ -e ${USER_CONFDIR}/.${remote}.disable ]]; then
Expand Down

0 comments on commit 149a1b6

Please sign in to comment.