Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!cica!tut.cis.ohio-state.edu!emory!stiatl!rsiatl!jgd From: jgd@rsiatl.UUCP (John G. De Armond) Newsgroups: alt.sources.d Subject: Re: Trailblazer configuration awk script Message-ID: <643@rsiatl.UUCP> Date: 22 Nov 89 18:12:56 GMT References: <4268@helios.ee.lbl.gov> Reply-To: jgd@rsiatl.UUCP (John G. De Armond) Organization: Radiation Systems, Inc. (a thinktank, motorcycle, car and gun works facility) Lines: 93 In article <4268@helios.ee.lbl.gov> leres@helios.ee.lbl.gov (Craig Leres) writes: >Here's an awk script I wrote to munge the configuration output of my >Trailblazer T2500's so that I could more easily restore a config (when >doing rom upgrades, for example). My awk is vanilla SunOS 3.5. > Well, here's a KISS version of the same program using your friend and mine, SED :-). to use, simply fix the stty statement for the proper baud rate, change the port name and uncomment, add or delete appropriate lines. John ----------------------- #set -xv # Setup for Telebit with a getty trap 'trap "" 1 2 3 9 15; rm -f /usr/spool/locks/LCK..tty01 exit 2' 1 2 3 15 if [ -f /usr/spool/locks/LCK..acu1 ] then echo "Port locked" exit # can't do anything with the port locked else touch /usr/spool/locks/LCK..acu1 ( stty 9600 ; cat </dev/acu1 rm -f /usr/spool/locks/LCK..acu1 fi exit # ------ end of file ---- -- John De Armond, WD4OQC | Manual? ... What manual ?!? Radiation Systems, Inc. Atlanta, GA | This is Unix, My son, You emory!rsiatl!jgd **I am the NRA** | just GOTTA Know!!!