aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/respawn.sh
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2013-03-16 23:18:23 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2013-03-16 23:29:59 +0100
commit4ad8d4d3c0e46fa50fe421c6957db1ea4b048b62 (patch)
tree04cbfbd1e6f7a31c5aa60740b4ce956b39470ec9 /contrib/respawn.sh
parente45fc8635926f70b0e19d5214f1f8b8fd06068aa (diff)
sysmobts: Name the screen and use '-X quit' to shut it down
Use "kill -2 0" for the PCU as SIGTERM is not handled yet. With the current set of code the stop function will stop both the PCU and the BTS.
Diffstat (limited to 'contrib/respawn.sh')
-rwxr-xr-xcontrib/respawn.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/respawn.sh b/contrib/respawn.sh
index 44e4fdc3..196edadc 100755
--- a/contrib/respawn.sh
+++ b/contrib/respawn.sh
@@ -3,6 +3,8 @@
PID=$$
echo "-1000" > /proc/$PID/oom_score_adj
+trap "kill 0" EXIT
+
while [ -e /etc/passwd ]; do
cat /lib/firmware/sysmobts-v?.bit > /dev/fpgadl_par0
sleep 2s