From 72461e7136c507c2f37447b05d6556cc9098e75b Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Tue, 29 Apr 2014 06:04:37 +0200 Subject: Quite start, and add stop. --- start.sh | 8 ++++---- stop.sh | 9 +++++++++ 2 files changed, 13 insertions(+), 4 deletions(-) create mode 100755 stop.sh 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 -- cgit v1.2.3-59-g8ed1b