modem: use XDG_CONFIG_HOME to save logs

Signed-off-by: Miles Alan <m@milesalan.com>
This commit is contained in:
Anjandev Momi 2020-06-04 21:26:16 -07:00 committed by Miles Alan
parent 66eeb46a55
commit 1b78c3cf2f
5 changed files with 10 additions and 6 deletions

View file

@ -1,6 +1,6 @@
#!/usr/bin/env sh
TIMEOUT=3
LOGDIR=/home/$USER/.sxmo
LOGDIR="$XDG_CONFIG_HOME"/sxmo/modem
ACTIVECALL="NONE"
trap "kill 0" SIGINT