Marcel Holtmann wrote: > Hi Ryan, > >> --- >> test/enable-sim | 18 ++++++++++++++++++ >> 1 files changed, 18 insertions(+), 0 deletions(-) >> create mode 100755 test/enable-sim >> >> diff --git a/test/enable-sim b/test/enable-sim >> new file mode 100755 >> index 0000000..bbfd34f >> --- /dev/null >> +++ b/test/enable-sim >> @@ -0,0 +1,18 @@ >> +#!/usr/bin/python >> + >> +import dbus >> +import sys >> + >> +bus = dbus.SystemBus() >> + >> +manager = dbus.Interface(bus.get_object('org.ofono', '/'), >> + 'org.ofono.Manager') >> + >> +properties = manager.GetProperties() >> + >> +path = properties["Modems"][0] >> + >> +modem = dbus.Interface(bus.get_object('org.ofono', path), >> + 'org.ofono.SimManager') >> + >> +modem.EnterPin(sys.argv[1], sys.argv[2]) > > call this script enter-pin and have it check if a PIN is actually > required. > No prob. Thanks, Ryan > Regards > > Marcel > > > _______________________________________________ > ofono mailing list > ofono(a)ofono.org > http://lists.ofono.org/listinfo/ofono