aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2014-04-29 06:04:37 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2014-04-29 06:04:37 +0200
commit72461e7136c507c2f37447b05d6556cc9098e75b (patch)
treee7b158d3a9cf1edca4d0d3a14e25c47de21f8af3
parentInitial commit. (diff)
downloadOpenBSC-Bootstrap-72461e7136c507c2f37447b05d6556cc9098e75b.tar.xz
OpenBSC-Bootstrap-72461e7136c507c2f37447b05d6556cc9098e75b.zip
Quite start, and add stop.
-rwxr-xr-xstart.sh8
-rwxr-xr-xstop.sh9
2 files changed, 13 insertions, 4 deletions
diff --git a/start.sh b/start.sh
index cc9e27e..885cf1a 100755
--- a/start.sh
+++ b/start.sh
@@ -34,10 +34,10 @@ tmux send-keys -t BTS-Control "while ! /sbin/ss -n -l -t state listening src \"*
tmux new-window -n HLR -t "$window_title"
tmux send-keys -t HLR "watch -t -n 1 \"sqlite3 -column -header '$hlr_db' 'SELECT * from Subscriber ORDER BY expire_lu DESC'\"" Enter
-tmux set-option -t "$window_title" status on
-tmux set-option -t "$window_title" set-titles on
-tmux set-option -t "$window_title" set-titles-string "GSM Base Station"
-tmux set-option -t "$window_title" status-right ""
+tmux set-option -q -t "$window_title" status on
+tmux set-option -q -t "$window_title" set-titles on
+tmux set-option -q -t "$window_title" set-titles-string "GSM Base Station"
+tmux set-option -q -t "$window_title" status-right ""
tmux kill-window -t close-me
tmux select-window -t OpenBSC
tmux attach -t "$window_title"
diff --git a/stop.sh b/stop.sh
new file mode 100755
index 0000000..30bfc98
--- /dev/null
+++ b/stop.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+pkill -f 'watch.*sqlite3.*hlr'
+pkill -f 'telnet 127.0.0.1 424[12]'
+pkill osmo-nitb
+pkill osmobts-trx
+pkill osmo-trx
+pkill lcr
+tmux kill-session -t GSM