Re: [SLUG] ifconfig not gettting set

From: Chuck Hast (wchast@gmail.com)
Date: Sun May 08 2005 - 17:07:21 EDT


On 5/8/05, Mike Branda <realraccoon@tampabay.rr.com> wrote:
> On Sun, 2005-05-08 at 00:40 -0600, Chuck Hast wrote:
>
> >
> > I am running a variant of Knoppix called Knoppix AFU which is a version
> > done for Amateur radio.
> > All of the rcN.d directories are located in /etc/ (0 thru 6) There is also a
> > rcS.d directory.
> >
> > I checked each of the directories and there is not a symlink to networking
> > which is in the etc/init.d directory.
> >
> > Here is a ls -al of the rc5.d directory
> > root@fpac-dev:/etc/rc5.d# ls -al
> > total 12
> > drwxr-xr-x 2 root root 4096 Nov 10 19:49 .
> > drwxr-xr-x 150 root root 8192 May 6 16:37 ..
> > lrwxrwxrwx 1 root root 16 Aug 30 2004 K42ax25 ->
> > /etc/init.d/ax25
> > lrwxrwxrwx 1 root root 18 Aug 30 2004 S10sysklogd ->
> > ../init.d/sysklogd
> > lrwxrwxrwx 1 root root 15 Aug 30 2004 S11klogd ->
> > ../init.d/klogd
> > lrwxrwxrwx 1 root root 17 Aug 30 2004 S12kerneld ->
> > ../init.d/kerneld
> > lrwxrwxrwx 1 root root 13 Aug 30 2004 S14ppp -> ../init.d/ppp
> > lrwxrwxrwx 1 root root 16 Aug 30 2004 S15pcmcia ->
> > ../init.d/pcmcia
> > lrwxrwxrwx 1 root root 15 Aug 30 2004 S20inetd ->
> > ../init.d/inetd
> > lrwxrwxrwx 1 root root 17 Aug 30 2004 S20logoutd ->
> > ../init.d/logoutd
> > lrwxrwxrwx 1 root root 17 Aug 30 2004 S20makedev ->
> > ../init.d/makedev
> > lrwxrwxrwx 1 root root 13 Aug 30 2004 S20ssh -> ../init.d/ssh
> > lrwxrwxrwx 1 root root 17 Aug 30 2004 S40hotplug ->
> > ../init.d/hotplug
> > lrwxrwxrwx 1 root root 16 Aug 30 2004 S80ax25 ->
> > /etc/init.d/ax25
> > lrwxrwxrwx 1 root root 13 Aug 30 2004 S89atd -> ../init.d/atd
> > lrwxrwxrwx 1 root root 14 Aug 30 2004 S89cron ->
> > ../init.d/cron
> > lrwxrwxrwx 1 root root 19 Aug 30 2004 S99rmnologin
> > -> ../init.d/rmnologin
> > root@fpac-dev:/etc/rc5.d#
> >
> > As you can see it is not in there nor is it in the lower ones, of
> > course rc6.d is
> > the shutdown sequence directory...
> >
> > But it IS in the rcS.d directory, here is a ls-al of that one...
> > root@fpac-dev:/etc/rcS.d# ls -al
> > total 16
> > drwxr-xr-x 2 root root 4096 Aug 30 2004 .
> > drwxr-xr-x 150 root root 8192 May 6 16:37 ..
> > -rw-r--r-- 1 root root 701 Sep 1 1997 README
> > lrwxrwxrwx 1 root root 19 Aug 30 2004 S05keymap.sh
> > -> ../init.d/keymap.sh
> > lrwxrwxrwx 1 root root 22 Aug 30 2004
> > S10checkroot.sh -> ../init.d/checkroot.sh
> > lrwxrwxrwx 1 root root 16 Aug 30 2004 S15isapnp ->
> > ../init.d/isapnp
> > lrwxrwxrwx 1 root root 18 Aug 30 2004 S20modutils ->
> > ../init.d/modutils
> > lrwxrwxrwx 1 root root 20 Aug 30 2004 S30checkfs.sh
> > -> ../init.d/checkfs.sh
> > lrwxrwxrwx 1 root root 19 Aug 30 2004 S30procps.sh
> > -> ../init.d/procps.sh
> > lrwxrwxrwx 1 root root 19 Aug 30 2004 S30setserial
> > -> ../init.d/setserial
> > lrwxrwxrwx 1 root root 19 Aug 30 2004 S35devpts.sh
> > -> ../init.d/devpts.sh
> > lrwxrwxrwx 1 root root 21 Aug 30 2004 S35mountall.sh
> > -> ../init.d/mountall.sh
> > lrwxrwxrwx 1 root root 19 Aug 30 2004 S39dns-clean
> > -> ../init.d/dns-clean
> > lrwxrwxrwx 1 root root 21 Aug 30 2004 S40hostname.sh
> > -> ../init.d/hostname.sh
> > lrwxrwxrwx 1 root root 18 Aug 30 2004 S40ifupdown ->
> > ../init.d/ifupdown
> > lrwxrwxrwx 1 root root 20 Aug 30 2004 S40networking
> > -> ../init.d/networking
> > lrwxrwxrwx 1 root root 17 Aug 30 2004 S41portmap ->
> > ../init.d/portmap
> > lrwxrwxrwx 1 root root 21 Aug 30 2004 S45mountnfs.sh
> > -> ../init.d/mountnfs.sh
> > lrwxrwxrwx 1 root root 27 Aug 30 2004
> > S48console-screen.sh -> ../init.d/console-screen.sh
> > lrwxrwxrwx 1 root root 20 Aug 30 2004 S50hwclock.sh
> > -> ../init.d/hwclock.sh
> > lrwxrwxrwx 1 root root 21 Aug 30 2004 S55bootmisc.sh
> > -> ../init.d/bootmisc.sh
> > lrwxrwxrwx 1 root root 17 Aug 30 2004 S55urandom ->
> > ../init.d/urandom
> > root@fpac-dev:/etc/rcS.d#
> >
> > The README in this directory says that this rc directory is scanned at
> > boot time, I
> > think I see the problem now, network is run from this directory but it
> > is not run in
> > any of the rcN.d directories, BUT pcmcia is run from those directories
> > so this would
> > indicate to me that network gets run prior to pcmcia so the pcmcia nic
> > card is not
> > ready to go yet. So, should I add SXXpcmcia and symlink it to pcmcia
> > in the init.d
> > directory or add network in the rcN.d directories?
> >
>
> Chuck,
>
> I'm pretty sure that S is synonymous for single user mode (init 1). If
S = boot level start up (I think it is init 1) it is the only place that network
is called in all of the rcX.d files....

> indeed you are in runlevel 5 (execute the command "runlevel" in the root
> shell path) then I would try running it by hand first

>From the command prompt I indeed get run level 5.

> (/etc/init.d/networking start) then add the symlink if it fixes your
> problem. The weird thing is that you say it tries to set it up but
> fails. That would suggest that the init is crossing something that
> tries to set the card up. You said it's a pcmcia card right?? Maybe
> S15pcmcia is doing something....
>

Just to get int up and running I put the following hack in my ax25 start
up file
ifdown eth0 (generates a error code but if I do not do it the next one fails)
ifup eth0 (this gets it all up and running just fine, but the hack is UGLY)

I can do a "/etc/init.d/networking restart" manually and it will restart the
network just fine (it was already running just eth0 was hosed).
I was thinking about how to get the simlink to call networking restart as it
just looks like it is pointing to the file, I guess there must be some way to
pass a command to it in order to do a restart...

> -----------------------------------------------------------------------
> This list is provided as an unmoderated internet service by Networked
> Knowledge Systems (NKS). Views and opinions expressed in messages
> posted are those of the author and do not necessarily reflect the
> official policy or position of NKS or any of its employees.
>

-- 
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."

----------------------------------------------------------------------- This list is provided as an unmoderated internet service by Networked Knowledge Systems (NKS). Views and opinions expressed in messages posted are those of the author and do not necessarily reflect the official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 18:46:11 EDT