aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-12-26 17:25:31 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-12-26 17:27:05 +0100
commit51889889e41f7e3f5864ceb940691daa161a6fde (patch)
tree63e993fd0cb8ab523c89c74c7aa33426606ce88f
parent68cdcdb88bd648fad677686dfd7006ffa8c3516f (diff)
shadysim: Make it work with the SMPP mode
-rwxr-xr-xshadysim/shadysim.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/shadysim/shadysim.py b/shadysim/shadysim.py
index fde10c5..bab254c 100755
--- a/shadysim/shadysim.py
+++ b/shadysim/shadysim.py
@@ -407,8 +407,13 @@ if args.pcsc is not None:
elif args.serialport is not None:
from pySim.transport.serial import SerialSimLink
sl = SerialSimLink(device=args.serialport, baudrate=9600)
+elif args.smpp is not None:
+ class DummySL:
+ pass
+ sl = DummySL()
+ pass
else:
- raise RuntimeError("Need to specify either --serialport or --pcsc")
+ raise RuntimeError("Need to specify either --serialport, --pcsc or --smpp")
sc = SimCardCommands(sl)
ac = AppLoaderCommands(sl)