Debian Codegraph @

src/applications/pack

raw symbols SCIP
1 #! /bin/sh
2 ###########################################################################
3 # LinPac - packet radio terminal for Linux
4 # (c) 1999 Radek Burget <[email protected]>
5 #
6 # This script provides the user interface for pack.pl
7 #
8 # Usage: delmsg <message_number>
9 ###########################################################################
10
11 #lpapi should be in PATH when LinPac is running
12 LPAPI="lpapi"
13
14 #Test if LinPac is running
15 $LPAPI 0
16 if [ ! $? -eq 0 ]; then
17 echo LinPac is not running
18 exit 1
19 fi
20
21 #Get the home BBS address
22 HOMEADDR=`$LPAPI 0 get HOME_ADDR`
23
24 #Get the callsign
25 TTT=`echo $HOMEADDR | tr "." ","`
26 CALL=`echo $TTT | sed s/,.*//`
27
28 #Call pack.pl
29 pack.pl $CALL
30 exit $?