Autoexec.nos Scripts
Additionally called-out scripts for JNOS...
As has been noted, an autoexec.nos file may call
out to other supplemental scripts by using the
source
command word. This encourages a very "lean" autoexec and should,
in theory, promote clear organization and a clarity of documentation style.
The
autoexec.nos
file that has been included here
on this site is just such a file, although it probably could still be
better organized. There are several significant source call-outs to
sub-sections by topic or function that remain "invisible" in the main
runtime config.
In an effort to be more explicit about the
complete workings of the autoexec, the sub-component scripts have been
listed out below. Even though these scripts are called out as separate
items, they have been grouped into one file named "scripts" for mailing
purposes, just in case you need to obtain a copy for your system.
|
A Detailed Listing of Scripts
As usual, I have left many comments in the
scripts that indicate an "inheritance" from a previous config, or my
current changes and tests! This listing, as noted, is contained in one file,
so you will need to break it up using your favorite editor and rename
the various code sections so that they can be called by "source." Also, you
must edit these scripts to suit your system needs! (Obtaining
the file might save you a bit of typing... )
On my system, all these scripts "live" in the
directory /jnos/scripts. They are called into service from the
autoexec.nos file with this generic command line:
- source /jnos/scripts/<some_script>
- do_kisskam
-
# Script to put the KAM into kiss mode
comm ax0 "MONITOR OFF"
comm ax0 "CD /SOFT"
comm ax0 "INTFACE KISS"
comm ax0 "RESET"
- do_screen
-
# 09-19-00
# Screen control options.
#
# Turn on or off the flow control "--more--" pager
#session 0 flow on
session 0 flow off
#
# Make the "main" session the trace session instead of F9
strace off
- do_hf
-
# HF script for 14.105
# 06-26-00, 08-06-00
# on the KAM
#
attach kiss ax0 1 hf
#
# Configs...
ifc hf linkaddress ka1fsb-7
ifc hf ax25 bctext "JNOS/Linux 1.11f * Network 105 * 14.105<>145.090, Wellesley, MA"
# ifc hf ax25 bctext "Happy New Year Network 105, - Karl in Wellesley, MA"
# ifc hf ax25 bctext "JNOS/Linux 1.11f * NET105 * 14.105<>(MBOS9,MEMA) Wellesley, MA"
# ifc hf netmask 0xffffff00
# ifc hf broadcast 44.56.26.255
ifc hf ax25 maxframe 1
# ifc hf ax25 paclen 128
# Changed on 04-19-02
ifc hf ax25 paclen 64
ifc hf ax25 t2 400
# ifc hf tcp mss 108
# ifc hf tcp win 216
# arp pub 44.108.0.46 ax25 wu3v-2 hf
ip hp hf on
ifconfig hf descr " HF port on 14.105 KAM TNC 300 baud (NET105:VE1AMA-7)"
#
# TNC params...
param hf 1 25 # tx delay, was 30
param hf 2 192 # persist
param hf 3 5 # slot
param hf 4 10 # tx tail
param hf 5 0 # half dup
param hf dtr 1 # Data terminal ready
param hf rts 1 # ?
#
ax25 bcport hf on
ax25 digipeat hf on
# mode hf datagram
mbox hideport hf off
trace hf 311
#
# Routes...
#
# End of do_hf
- do_netrom
-
#******************** NET/ROM SETUP *******************************
# 12-27-01, 12-29-01
# 01-14-02
# 08-11-02
# Put the attach and start in the right locations in autoexec.nos (OK)
#
netrom call KA1FSB-7
netrom alias WELLS
#
# w1jli doesn't do netrom! ( netrom interface ax3 192 0 )
# netrom interface ax3 192 0
netrom interface ax2 192 0
netrom interface ax0 192 0
netrom interface hf 192 0
#----- I want it to push entire table to IPFSB, so no 0
netrom interface axip0 192
netrom interface axip1 192
netrom interface axip2 192
#
netrom acktime 3000
#
#----- in milliseconds...
netrom choke 180000
netrom derate on
netrom hidden off
#
#----- irtt was 2000, 5000, 15000, 12000
netrom irtt 10000
#
#----- minquality might want to be higher... was 10, 45
netrom minquality 140
#
#----- was 1800, 1200
netrom nodetimer 900
netrom obsotimer 1200
netrom promiscuous off
#
#----- Was 1024
netrom qlimit 2048
netrom retries 10
netrom timertype linear
#
#----- ttl was 10
netrom ttl 10
netrom tdisc 600
#
#----- Was 10
netrom window 4
netrom nodefilter mode none
netrom g8bpq on
mode netrom vc
#
netrom bcpoll hf on
# netrom bcpoll ax3 on
# netrom bcpoll ax2 on
netrom bcpoll ax0 on
#netrom bcpoll axip0 on
#netrom bcpoll axip1 on
#
netrom bcnodes hf on
# netrom bcnodes ax3 on
# netrom bcnodes ax2 on
netrom bcnodes ax0 on
#netrom bcnodes axip0 on
#netrom bcnodes axip1 on
#
#----- Some basics here, routes, arps, etc...
# Assume they will always be there and up...
# netrom route add MEMA WC1ABL-7 ax2 192 WC1ABL-7
# netrom route add MBOS9 N1CSI ax0 192 N1CSI
# netrom route add MBOS1 N1CSI-1 ax0 192 N1CSI-9
# netrom route add BBSUGM K1UGM ax0 192 N1CSI-9
# netrom route add WHIT W1GMF-7 ax0 192 W1GMF-7
# netrom route add HOLBRK KA1EUI-2 ax0 192 N1CSI-9
#
netrom route add IPFSB KA1FSB-9 axip0 192 KA1FSB-9
#
#netrom route add LNXFSB KA1FSB-5 axip1 192 KA1FSB-5
#netrom route add JWELLS KA1FSB-11 axip2 192 KA1FSB-11
#
# netrom route add BBSGMF W1GMF ax0 192 N1CSI-9
# netrom route add ABBIE W1GMF-4 ax0 192 N1CSI-9
#----- GLSTBY rare, but does happen in AM more than PM...
# Don't "book", let him show up on his own in the node list!
# netrom route add GLSTBY W1EDH-10 ax0 192 N1CSI-9
#
# This is not enough. He has no ax25 route back to you thru 9
# ax25 route add n1otx-7 ax0 n1csi-9
# netrom route add BROCK N1OTX-7 ax0 192 N1CSI-9
#
#----- Larry
# route add ka1tuk netrom
# arp add ka1tuk netrom KA1TUK-5
# netrom route add DERRY KA1TUK-5 ax2 192 WC1ABL-7
# netrom route add DERRY KA1TUK-5 ax2 192 W1UU
#
#----- Tom
# route add w1fje netrom
# arp add w1fje netrom W1FJE
#----- Or is it W1FJE-11
# netrom route add IPNH W1FJE ax2 192 WC1ABL-7
# netrom route add IPNH W1FJE ax2 192 W1UU
#
#----- Peter ???
# netrom route add MASS W1UU ax2 192 W1RK
#
#----- End of netrom setups
- do_convers
-
# ************************* CONVERS ****************************
# convers host WELLS
convers umaxq 0
convers hmaxq 0
convers maxwait 600
convers channel 0
# convers mycall ka1fsb-7
# convers interface lan on
convers interface ax0 on
convers interface hf on
# convers interface ax2 on
# convers interface ax3 on
convers link 44.56.26.10
# convers link hydra
- do_pk-kw
-
# do_pk-kw
# 09-24-00
# This places the pk-232 into KISS mode. Will stay there as long as
# the battery is good! Now using COM4 or ttyS3 at 9600 8N1
# NOTE: 04-05-01: May have to change the interface!
#
comm ax3 "PACKET"
comm ax3 "AWLEN 8"
comm ax3 "PARITY 0"
comm ax3 "TRACE OFF"
comm ax3 "HID OFF"
comm ax3 "BEACON EVERY 0"
comm ax3 "CONMODE TRANS"
comm ax3 "PPERSIST ON"
comm ax3 "RAWHDLC ON"
comm ax3 "HPOLL OFF"
comm ax3 "START $00"
comm ax3 "STOP $00"
comm ax3 "XON $00"
comm ax3 "XOFF $00"
comm ax3 "KISS ON"
comm ax3 "HOST ON"
- do_bc0
-
# do_bc0
# 05-01-05
# Install script for device bc0
# Use "net2kiss -i bc0 /dev/ptyqa"
#
attach asy ttyqa - ax25 bc0 1024 256 1200
asyconfig bc0 txq 5
asyconfig bc0 rxq 5
#
ifc bc0 description " VHF port on 145.070 BAY MDM 1200 baud
ifc bc0 broadcast 44.56.26.255
ifc bc0 netmask 0xffffff00
ifc bc0 ax25 bctext "JNOS/Linux 1.11f [44.56.26.17] 145.070, Wellesley, MA"
#
ax25 digipeat bc0 on
mode bc0 vc
trace bc0 311
#
AX25 route add ID bc0 we1ct ka1oxq
#
Mail Document Request for:
scripts
|
A Few Caveats:
-
- Be sure your local mailer is properly "hooked" into your browser.
- Allow up to 24 hours for delivery, although 3-6 is typical...
- Mailed copy, being the latest "on-line" version, may differ slightly from above.
- Click on "Mail it to me" below to activate your mailer, then send from there.
- Please don't change the subject field. (Additional text body comments OK.)
- Sometimes server is down for extended periods of time... (1-10+ days)
- (You obtain, modify and run all data/code at your own risk.)
|
Enough "excuses," just
Mail it to me!
|
What if ...
-
- If your
browser-linked mailer doesn't seem to respond, you may send a
null-bodied email to ka1fsb@att.net with a subject of
"Code Request - scripts" not including the quotes...
(Some browsers and their mail agents do not like excessive string data
in the mailto format.)
|
(Courtesy KBNorton Computer Services)
|