mirror of
https://github.com/RangeNetworks/openbts.git
synced 2025-10-23 07:42:01 +00:00
8 lines
257 B
Bash
Executable File
8 lines
257 B
Bash
Executable File
#!/bin/bash
|
|
if [ $# -eq '1' ]
|
|
then
|
|
sqlite3 /etc/OpenBTS/OpenBTS.db "select KEYSTRING,VALUESTRING from CONFIG where KEYSTRING like '%$1%'";
|
|
else
|
|
sqlite3 /etc/OpenBTS/OpenBTS.db "insert or replace into CONFIG (VALUESTRING,KEYSTRING) values ('$2','$1')";
|
|
fi
|