From: Chuck Hast <wchast@gmail.com>
To: Linux-hams List <linux-hams@vger.kernel.org>
Subject: Re: Trying to get Ax25 running.
Date: Sat, 16 Oct 2004 08:08:17 -0700 [thread overview]
Message-ID: <620c90570410160808749d301@mail.gmail.com> (raw)
In-Reply-To: <1097934722.1296.8.camel@oh2bns.ampr.org>
On Sat, 16 Oct 2004 16:52:02 +0300, Tomi Manninen <oh2bns@sral.fi> wrote:
> On Sat, 2004-10-16 at 16:16, Chuck Hast wrote:
>
> > I have done that, but I still have a problem. When I run the ax25-up file that
> > is set up for for the mkiss line, it starts up ok the first time, but
> > when I run the
> > ax25-down file that ax25-config generates it does not shut down a mkiss entry
>
> Hmm.. I guess the simple solution would be to do a "killall mkiss"
> somewhere near the top of the script. It should be placed before the
> kissattach processes are killed.
>
> > if I do a ps -e I see a PID and mkiss if I do a ps -r I see that it is
> > the attachment
> > to the ttyz0 port that does not go away.
>
> This makes me wonder if the pty behaviour has changed along the way and
> if my suggestion about the order of kissattach/mkiss is valid anymore...
> Oh well... :)
>
>
>
here is the ax25-down script that is supposed to kill it all.
I am not using any of this but just the AX25 stuff. I run listen
manually right now.
I am just trying to sort through it all.
-----------------------------------------------------------------
#!/bin/bash
#
# Einen eventuell laufenden ax25d beenden
if [ -s /var/run/ax25d.pid ]; then
tmp="`cat /proc/\`cat /var/run/ax25d.pid\`/cmdline`"
if [ "$tmp" == "/usr/sbin/ax25d" ]; then
kill `cat /var/run/ax25d.pid`
else
echo "stale \"ax25d\" pid-file, deleting..."
fi
rm -f /var/run/ax25d.pid
fi
# Monitor beenden
if [ -s /var/run/listen.pid ]; then
tmp="`cat /proc/\`cat /var/run/listen.pid\`/cmdline`"
if [ "$tmp" = "/usr/bin/listen" ]; then
kill `cat /var/run/listen.pid`
else
echo "stale \"listen\" pid-file, deleting..."
fi
rm -f /var/run/listen.pid
fi
echo "$(ls /proc/sys/net/ax25)" > /tmp/ax25-config.tmp
read Auswahl < /tmp/ax25-config.tmp
i=0
while [ "$Auswahl" != "" ]
do
let i=i+1
awk ' NR == '$i' { print $1 }' /tmp/ax25-config.tmp > /tmp/ax25-config-tmp
read Auswahl < /tmp/ax25-config-tmp
if [ "$Auswahl" != "" ]; then
ifconfig "$Auswahl" down
fi
done
# Startkiss0
killproc -KILL /usr/sbin/kissattach > /dev/null
modprobe -r ax25; modprobe -r kiss; modprobe -r mkiss > /dev/null
# Endkiss0
--------------------------------------------------------------
--
Chuck Hast
To paraphrase my flight instructor;
"the only dumb question is the one you DID NOT ask resulting in my going
out and having to identify your bits and pieces in the midst of torn
and twisted metal."
next prev parent reply other threads:[~2004-10-16 15:08 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <620c9057041013094421cbf279@mail.gmail.com>
[not found] ` <20041014025505.66938.qmail@web40824.mail.yahoo.com>
2004-10-14 13:00 ` Trying to get Ax25 running Chuck Hast
2004-10-14 13:13 ` Dennis Boone
2004-10-15 16:57 ` Chuck Hast
2004-10-15 17:15 ` Tomi Manninen
2004-10-15 17:37 ` Dennis Boone
2004-10-15 17:59 ` Gérard / F6FGZ
2004-10-15 18:26 ` Tomi Manninen
2004-10-15 18:33 ` Pontus Falk
2004-10-15 18:53 ` Tomi Manninen
2004-10-15 19:22 ` Curt, WE7U
2004-10-15 19:55 ` Chuck Hast
2004-10-15 23:18 ` Chuck Hast
2004-10-16 1:15 ` Chuck Hast
2004-10-16 1:28 ` Dennis Boone
2004-10-16 2:52 ` Chuck Hast
2004-10-16 3:40 ` Dennis Boone
2004-10-16 12:45 ` Tomi Manninen
2004-10-16 13:16 ` Chuck Hast
2004-10-16 13:52 ` Tomi Manninen
2004-10-16 15:08 ` Chuck Hast [this message]
[not found] ` <41700FDB.383C6084@free.fr>
2004-10-15 18:02 ` Dennis Boone
2004-10-13 2:40 Ron
2004-10-14 1:55 ` Chuck Hast
-- strict thread matches above, loose matches on Subject: below --
2004-10-12 13:32 Chuck Hast
2004-10-12 13:41 ` Jeroen Vreeken
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=620c90570410160808749d301@mail.gmail.com \
--to=wchast@gmail.com \
--cc=linux-hams@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox