comparison 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
comparison
equal deleted inserted replaced
12:0fe95ca922c7 13:b8d8f8a3cdb7
1 #!/bin/sh
2
3 if [ $# -lt 1 ]
4 then
5 echo "usage: $0 from-number [options]" 1>&2
6 exit 1
7 fi
8
9 echo "user-addr $1"
10 shift
11
12 while [ $# != 0 ]
13 do
14 case "$1" in
15 pid|sc-ts)
16 if [ $# -lt 2 ]
17 then
18 echo "error: $1 requires an argument" 1>&2
19 exit 1
20 fi
21 echo "$1 $2"
22 shift
23 shift
24 ;;
25 *)
26 echo "error: invalid option $1" 1>&2
27 exit 1
28 esac
29 done