Pau Espin Pedrol has uploaded this change for review. ( https://gerrit.osmocom.org/13423
Change subject: contrib: Remove deprecated screen script helpers ...................................................................... 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 --- M Makefile.am D contrib/l1fwd.init D contrib/respawn-only.sh D contrib/respawn.sh D contrib/screenrc-l1fwd D contrib/screenrc-sysmobts 6 files changed, 1 insertion(+), 72 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/23/13423/1 diff --git a/Makefile.am b/Makefile.am index e403f5e..62bad69 100644 --- a/Makefile.am +++ b/Makefile.am @@ -5,8 +5,7 @@ # 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 b228580..0000000 --- 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 478abd6..0000000 --- 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 196edad..0000000 --- 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 4256a38..0000000 --- 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 9c810d9..0000000 --- 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 -- To view, visit https://gerrit.osmocom.org/13423 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-bts Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I65b0eee44336e4627620443861092b8988f2e01d Gerrit-Change-Number: 13423 Gerrit-PatchSet: 1 Gerrit-Owner: Pau Espin Pedrol <pes...@sysmocom.de>