#!/data/data/com.termux/files/usr/bin/bash
# ----------------------------------------------------------------------------------
# Filename:     Stop-Kodirsync.bash
# Description:  Default Android widget 'Stop-Kodirsync' script
# ----------------------------------------------------------------------------------

#---- Source -----------------------------------------------------------------------
#---- Dependencies -----------------------------------------------------------------
#---- Static Variables -------------------------------------------------------------
#---- Other Variables --------------------------------------------------------------
#---- Other Files ------------------------------------------------------------------
#---- Functions --------------------------------------------------------------------
#---- Body -------------------------------------------------------------------------

# Display message
echo -e "\e[93m[WARNING]\e[39m \e[97mKodirsync is stopping in 3 seconds...\n\e[39m"
sleep 3

# Exit & close Termux
am startservice -a com.termux.service_stop com.termux/.app.TermuxService

#-----------------------------------------------------------------------------------