aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-03-26 16:59:53 +0100
committerHarald Welte <laforge@gnumonks.org>2019-03-27 09:57:41 +0000
commit749b878eb11f25edf3c6d3e368413f75f6bc3622 (patch)
treeca381188255af6ad6b5143d5a4ae999bcf5b1b2d
parent2f5e7093bfbc146598b26630ec7d55b9e72414fe (diff)
contrib: Remove deprecated screen script helpers
Nowadays only known users (OE images) use systemd and don't require this kind of screen setup. In any case, this kind of file belongs to scpeific setup and are not needed here. Change-Id: I65b0eee44336e4627620443861092b8988f2e01d
-rw-r--r--Makefile.am3
-rwxr-xr-xcontrib/l1fwd.init31
-rwxr-xr-xcontrib/respawn-only.sh13
-rwxr-xr-xcontrib/respawn.sh18
-rw-r--r--contrib/screenrc-l1fwd3
-rw-r--r--contrib/screenrc-sysmobts5
6 files changed, 1 insertions, 72 deletions
diff --git a/Makefile.am b/Makefile.am
index e403f5ea..62bad698 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -5,8 +5,7 @@ SUBDIRS = include src tests doc contrib
# package the contrib and doc
EXTRA_DIST = \
- contrib/dump_docs.py contrib/screenrc-l1fwd \
- contrib/l1fwd.init contrib/screenrc-sysmobts contrib/respawn.sh \
+ contrib/dump_docs.py \
git-version-gen .version \
README.md
diff --git a/contrib/l1fwd.init b/contrib/l1fwd.init
deleted file mode 100755
index b228580e..00000000
--- a/contrib/l1fwd.init
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/sh
-### BEGIN INIT INFO
-# Provides: l1fwd
-# Required-Start:
-# Required-Stop: $local_fs
-# Default-Start: 5
-# Default-Stop: 0 6
-# Short-Description: Start screen session with l1fwd software
-# Description:
-### END INIT INFO
-
-. /etc/default/rcS
-
-case "$1" in
- start)
- /usr/bin/screen -d -m -c /etc/osmocom/screenrc-l1fwd
- ;;
- stop)
- echo "This script doesn't support stop"
- exit 1
- ;;
- restart|reload|force-reload)
- exit 0
- ;;
- show)
- ;;
- *)
- echo "Usage: sysmobts {start|stop|show|reload|restart}" >&2
- exit 1
- ;;
-esac
diff --git a/contrib/respawn-only.sh b/contrib/respawn-only.sh
deleted file mode 100755
index 478abd66..00000000
--- a/contrib/respawn-only.sh
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/sh
-
-PID=$$
-echo "-1000" > /proc/$PID/oom_score_adj
-
-trap "{ kill 0; kill -2 0; }" EXIT
-
-while [ -f $1 ]; do
- (echo "0" > /proc/self/oom_score_adj && exec nice -n -20 $*) &
- LAST_PID=$!
- wait $LAST_PID
- sleep 10s
-done
diff --git a/contrib/respawn.sh b/contrib/respawn.sh
deleted file mode 100755
index 196edadc..00000000
--- a/contrib/respawn.sh
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/sh
-
-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
- cat /lib/firmware/sysmobts-v?.out > /dev/dspdl_dm644x_0
- sleep 1s
- echo "0" > /sys/class/leds/activity_led/brightness
- (echo "0" > /proc/self/oom_score_adj && exec nice -n -20 $*) &
- LAST_PID=$!
- wait $LAST_PID
- sleep 10s
-done
diff --git a/contrib/screenrc-l1fwd b/contrib/screenrc-l1fwd
deleted file mode 100644
index 4256a381..00000000
--- a/contrib/screenrc-l1fwd
+++ /dev/null
@@ -1,3 +0,0 @@
-chdir /tmp
-screen -t BTS 0 /etc/osmocom/respawn.sh /usr/bin/l1fwd-proxy
-detach
diff --git a/contrib/screenrc-sysmobts b/contrib/screenrc-sysmobts
deleted file mode 100644
index 9c810d9f..00000000
--- a/contrib/screenrc-sysmobts
+++ /dev/null
@@ -1,5 +0,0 @@
-chdir /tmp
-screen -t BTS 0 /etc/osmocom/respawn.sh /usr/bin/osmo-bts-sysmo -c /etc/osmocom/osmo-bts.cfg -r 1 -M
-screen -t PCU 1 /etc/osmocom/respawn-only.sh /usr/bin/osmo-pcu -c /etc/osmocom/osmo-pcu.cfg -e
-screen -t MGR 2 /etc/osmocom/respawn-only.sh /usr/bin/sysmobts-mgr -n -c /etc/osmocom/sysmobts-mgr.cfg
-detach