FreeCalypso > hg > sms-coding-utils
view scripts/sms-deliver-pdu-hdr @ 13:b8d8f8a3cdb7
scripts: wrappers for network-side SMS-DELIVER PDU generation
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 27 Aug 2023 05:11:21 +0000 |
parents | |
children | dc1cc851025c |
line wrap: on
line source
#!/bin/sh if [ $# -lt 1 ] then echo "usage: $0 from-number [options]" 1>&2 exit 1 fi echo "user-addr $1" shift while [ $# != 0 ] do case "$1" in pid|sc-ts) if [ $# -lt 2 ] then echo "error: $1 requires an argument" 1>&2 exit 1 fi echo "$1 $2" shift shift ;; *) echo "error: invalid option $1" 1>&2 exit 1 esac done