mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-22 17:36:29 +02:00
Compare commits
4 commits
61bec81c44
...
d6b650147a
Author | SHA1 | Date | |
---|---|---|---|
|
d6b650147a | ||
|
9691ee45a0 | ||
|
4776b147e5 | ||
|
82021648a3 |
1 changed files with 9 additions and 2 deletions
|
@ -195,7 +195,7 @@ namespace adapters;
|
|||
'sendsms',
|
||||
'TEXT',
|
||||
escapeshellarg($destination),
|
||||
'-text',
|
||||
'-textutf8',
|
||||
escapeshellarg($text),
|
||||
'-validity',
|
||||
'MAX',
|
||||
|
@ -338,7 +338,9 @@ namespace adapters;
|
|||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
// The command returns 123 on failed execution (even if SIM is already unlocked), and returns 0 if unlock was successful
|
||||
// We can directly return true if command was succesful
|
||||
$command_parts = [
|
||||
'LC_ALL=C',
|
||||
'gammu',
|
||||
|
@ -350,8 +352,13 @@ namespace adapters;
|
|||
];
|
||||
|
||||
$result = $this->exec_command($command_parts);
|
||||
if (0 === $result['return'])
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//Check security status
|
||||
// The command returns 0 regardless of the SIM security state
|
||||
$command_parts = [
|
||||
'LC_ALL=C',
|
||||
'gammu',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue