Add utility function to open old HLR db

This commit is contained in:
Keith Whyte 2021-02-26 04:59:26 +01:00
parent fcda7401f4
commit 2965ecdaf6

View file

@ -2,6 +2,7 @@
# Shell Functions for Rhizomatica Community Celular Network # Shell Functions for Rhizomatica Community Celular Network
# #
OSMO_HLR_OLD="/var/lib/osmocom/hlr.sqlite3"
OSMO_HLR="<%= @hlr_db %>" OSMO_HLR="<%= @hlr_db %>"
OSMO_SMS="<%= @sms_db %>" OSMO_SMS="<%= @sms_db %>"
DID="<%= @voip_did %>" DID="<%= @voip_did %>"
@ -44,6 +45,10 @@ hlr() {
sudo /usr/bin/sqlite3 -column -header $OSMO_HLR sudo /usr/bin/sqlite3 -column -header $OSMO_HLR
} }
hlr2() {
sudo /usr/bin/sqlite3 -column -header $OSMO_HLR_OLD
}
sms() { sms() {
sudo /usr/bin/sqlite3 -column -header $OSMO_SMS sudo /usr/bin/sqlite3 -column -header $OSMO_SMS
} }