mirror of
https://github.com/thorsten-gehrig/alexa-remote-control.git
synced 2025-11-10 18:52:41 +01:00
Added -login command
Logs in to Amazon, but executes no further commands
This commit is contained in:
@@ -133,6 +133,7 @@ usage()
|
||||
echo " -a : list available devices"
|
||||
echo " -m : delete multiroom and/or create new multiroom containing devices"
|
||||
echo " -lastalexa : print serial number that received the last voice command"
|
||||
echo " -login : Logs in, without further command"
|
||||
echo " -l : logoff"
|
||||
echo " -h : help"
|
||||
}
|
||||
@@ -250,6 +251,9 @@ while [ "$#" -gt 0 ] ; do
|
||||
DEVICE=$2
|
||||
shift
|
||||
;;
|
||||
-login)
|
||||
LOGIN="true"
|
||||
;;
|
||||
-l)
|
||||
LOGOFF="true"
|
||||
;;
|
||||
@@ -920,6 +924,11 @@ if [ ! -f ${DEVTXT} -o ! -f ${DEVALL} ] ; then
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -n "$LOGIN" ] ; then
|
||||
echo "logged in"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ -n "$COMMAND" -o -n "$QUEUE" -o -n "$NOTIFICATIONS" ] ; then
|
||||
if [ "${DEVICE}" = "ALL" ] ; then
|
||||
while IFS= read -r DEVICE ; do
|
||||
|
||||
Reference in New Issue
Block a user