1 --- ./smstools3/scripts/sendsms.old 2010-07-08 16:41:13.000000000 +0400
2 +++ ./smstools3/scripts/sendsms 2010-10-30 13:37:44.000000000 +0400
4 # When creating keys, remember to use -n for echo:
5 # echo -n "key" | md5sum
10 # Will need echo which accepts -n argument:
17 -if [ -f /etc/passwd ]; then
18 - if grep $smsd_user: /etc/passwd >/dev/null; then
21 +if [ -f /etc/group ]; then
22 + if grep $smsd_group: /etc/group >/dev/null; then
28 $ECHO -n "$TEXT" | iconv -t UNICODEBIG >> $TMPFILE
31 - if [ "x$owner" != x ]; then
32 - chown $owner $TMPFILE
33 + if [ "x$group" != x ]; then
34 + chgrp $group $TMPFILE
38 FILE=`mktemp /var/spool/sms/outgoing/send_XXXXXX`