2021-06-08 16:16:09 +02:00
|
|
|
#!/bin/bash
|
|
|
|
################################################################################
|
|
|
|
# Author: Fred (support@qo-op.com)
|
|
|
|
# Version: 0.1
|
|
|
|
# License: AGPL-3.0 (https://choosealicense.com/licenses/agpl-3.0/)
|
|
|
|
################################################################################
|
2021-07-06 18:42:44 +02:00
|
|
|
echo "AIDE pour ($1=phone)"
|
2021-06-09 03:54:30 +02:00
|
|
|
phone="$1"
|
2021-07-06 18:42:44 +02:00
|
|
|
phonehash=$(echo $phone | sha256sum | cut -d ' ' -f1)
|
|
|
|
SMSADMIN="$(cat /home/${YOU}/.zen/SMSADMIN)"
|
2021-06-21 18:43:23 +02:00
|
|
|
|
2021-07-06 18:42:44 +02:00
|
|
|
MESS="Zones Experimentales Précaires - GUILDES SMS 160 caracteres - ADMIN : $SMSADMIN - https://oasis.astroport.com"
|
2021-06-21 18:43:23 +02:00
|
|
|
|
2021-07-06 18:42:44 +02:00
|
|
|
echo "#!/bin/bash
|
|
|
|
sudo gammu sendsms TEXT \"$phone\" -text \"$MESS\"" > /home/${YOU}/.zen/SMS/PHONE/${phonehash}/$(date -u +%s%N | cut -b1-13).tosend.sh
|
2021-06-08 16:16:09 +02:00
|
|
|
|
|
|
|
exit 0
|