#!/bin/bash

LOCKFILE="/mnt/user/Cloud/gdrive/ApplicationData/watching.chk"
UNLOCKFILE="/mnt/user/Cloud/gdrive/ApplicationData/watching1.chk"

if [ -e "$LOCKFILE" ] ; then
  SOURCE="$LOCKFILE"
  DESTINATION="$UNLOCKFILE"
else
  SOURCE="$UNLOCKFILE"
  DESTINATION="$LOCKFILE"
fi
echo "mv $SOURCE $DESTINATION"
mv $SOURCE $DESTINATION

/bin/bash /scripts/rclone/rclone_bw_ctrl.sh
