File: start-linpac.sh

package info (click to toggle)
linpac 0.24-3
  • links: PTS
  • area: main
  • in suites: buster
  • size: 3,764 kB
  • ctags: 2,761
  • sloc: cpp: 17,368; sh: 10,621; ansic: 4,033; makefile: 186; perl: 101
file content (27 lines) | stat: -rwxr-xr-x 795 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash

# /usr/local/sbin/start-linpac.sh
# dranch@arrl.net

# 12/11/14 - Enabled screen logging to a specific file
# 08/30/14 - disabled screen logging
# 02/06/14 - Added screen loggin
# 06/28/13 - Added screen resume
# 11/19/12
#

#Linpac cannot play notification bells via the PC speaker nor listen to axlistend 
# w/o being root If you do NOT want to run as root, you can use axspyd to allow 
# monitoring
#
#   Don't enable screen logging (-L) as it just creates ANSI trash in the logs

if [ -n "`ps aux | grep -i screen | grep -i linpac`" ]; then
   echo -e "\nLinpac already running under Screen.  Resuming"
   screen -d -r linpac
  else
   echo -e "\nPrevious Linpac not found.  Starting"
   date > /var/log/linpac.log
   screen -c $HOME/.screenrc-svxlink -S linpac sudo linpac
fi