mirror of
				https://gitea.osmocom.org/cellular-infrastructure/osmo-bts.git
				synced 2025-11-03 21:53:29 +00:00 
			
		
		
		
	add init script and screenrc for l1fwd
This commit is contained in:
		
							
								
								
									
										31
									
								
								contrib/l1fwd.init
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										31
									
								
								contrib/l1fwd.init
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,31 @@
 | 
			
		||||
#!/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
 | 
			
		||||
							
								
								
									
										3
									
								
								contrib/screenrc-l1fwd
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								contrib/screenrc-l1fwd
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
			
		||||
chdir /tmp
 | 
			
		||||
screen -t BTS 0 /etc/osmocom/respawn.sh /usr/bin/l1fwd-proxy
 | 
			
		||||
detach
 | 
			
		||||
		Reference in New Issue
	
	Block a user