From 749b878eb11f25edf3c6d3e368413f75f6bc3622 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Tue, 26 Mar 2019 16:59:53 +0100 Subject: 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 --- Makefile.am | 3 +-- contrib/l1fwd.init | 31 ------------------------------- contrib/respawn-only.sh | 13 ------------- contrib/respawn.sh | 18 ------------------ contrib/screenrc-l1fwd | 3 --- contrib/screenrc-sysmobts | 5 ----- 6 files changed, 1 insertion(+), 72 deletions(-) delete mode 100755 contrib/l1fwd.init delete mode 100755 contrib/respawn-only.sh delete mode 100755 contrib/respawn.sh delete mode 100644 contrib/screenrc-l1fwd delete mode 100644 contrib/screenrc-sysmobts 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 -- cgit v1.2.3