Commit e8e1c208 authored by Fred's avatar Fred

Delete sms_SETTING.sh~

parent 5bbb7b0a
#!/bin/bash
################################################################################
# Author: Fred (support@qo-op.com)
# Version: 0.1
# License: GPL (http://www.google.com/search?q=GPL)
################################################################################
# LOG
echo "SETTING $1" >> /tmp/g1sms.log
PHONE=$1
source /root/G1SMS/shell/init.sh
PUB=$(cat "/root/G1SMS/keys/$PHONE.pub" | xargs)
PIN=$(/root/G1SMS/shell/sms_set_PIN.sh "$PHONE")
AMOUNT=$(/root/G1SMS/silkaj/silkaj amount --auth-scrypt -salt="$PHONE" -password="$PIN")
AMOUNTDU=$(bc <<< "scale=2;$AMOUNT/$DUFACTOR")
LOVE=$(bc <<< "$AMOUNT*100/$DUFACTOR")
# Create setting directory
mkdir "/root/G1SMS/keys/$PHONE"
# Check actual step
STEP=$(cat "/root/G1SMS/keys/$PHONE/step")
# If script control only run: NOSMS
if [ "$STEP" != "1" ]; then
MESS="[G1SMS]
S LOVE
S G1
S EMAIL
S MEMBER
Choisir? $PUB"
# Send response SMS
echo "$MESS" | gammu-smsd-inject TEXT "$PHONE"
fi
echo "$LOVE"
exit
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment