Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Weird messages from hotplug scripts at boot
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
wilburpan
l33t
l33t


Joined: 21 Jan 2003
Posts: 977

PostPosted: Mon May 05, 2003 2:10 pm    Post subject: Weird messages from hotplug scripts at boot Reply with quote

I have an anal question about the output that I am seeing when my laptop boots up. I have a Dell Inspiron 5000e, with a USB mouse hooked up via a 4 port USB hub.

When my computer boots and the boot sequence gets to the part where the scripts are run (after the dmesg output section), I see a number of messages that read

Code:
Starting USB and PCI hotplugging.....
pcilib:cannot open /proc/bus/pci/02/00.0
pcilib:cannot open /proc/bus/pci/02/00.1
/etc/hotplug/pci.agent:  line 167: [: =: unary operator expected

The pcilib and /etc/hotplug lines repeat themselves a couple dozen times or so, then the bootup sequence finishes. I do get an "ok" after the repeated lines.

My computer runs fine. I just would like to know what these messages are, and if there is anything I can do to make them go away.


Last edited by wilburpan on Mon May 05, 2003 7:57 pm; edited 1 time in total
Back to top
View user's profile Send private message
Braempje
l33t
l33t


Joined: 31 Jan 2003
Posts: 748

PostPosted: Mon May 05, 2003 4:44 pm    Post subject: Reply with quote

As far as I know hotplug pci enables you to remove pci cards from a working computer. I don't know how great your laptop is, but it probably won't support that :wink: So recompile your kernel without this option and those error messages should be gone. (Btw I think pci hotplug is an experimental kernel feature...)
Back to top
View user's profile Send private message
wilburpan
l33t
l33t


Joined: 21 Jan 2003
Posts: 977

PostPosted: Mon May 05, 2003 5:08 pm    Post subject: Reply with quote

The reason I have the hotplug script installed is so that my USB mouse can work. For grins, I tried taking out the hotplug script and rebooting to see what would happen. My USB mouse no longer worked, and I was getting errors with sound from within KDE. The boot messages did go away, though. I put the hotplug script back in the default level, since I do want to use my mouse with my laptop, and I also want to listen to music.
Back to top
View user's profile Send private message
wilburpan
l33t
l33t


Joined: 21 Jan 2003
Posts: 977

PostPosted: Sun May 18, 2003 11:18 pm    Post subject: Reply with quote

I've partially solved my problem, thanks to another thread. There is a bug in /etc/hotplug.functions which can be easily fixed with this patch:
Code:
--- hotplug.functions.orig   2003-05-12 23:23:51.000000000 +0000
+++ hotplug.functions   2003-05-12 23:22:56.000000000 +0000
@@ -164,7 +164,7 @@
        LOADED=true
    fi
 
-   if [ $LOADED = false ]; then
+   if [ "$LOADED" = false ]; then
        mesg "missing kernel or user mode driver $MODULE "
    fi
     done

This got rid of the unary operator expected message, but I still have this output at boot time:
Code:
Starting USB and PCI hotplugging.....
pcilib:cannot open /proc/bus/pci/02/00.0
pcilib:cannot open /proc/bus/pci/02/00.1
pcilib:cannot open /proc/bus/pci/02/00.0
pcilib:cannot open /proc/bus/pci/02/00.1
pcilib:cannot open /proc/bus/pci/02/00.0
pcilib:cannot open /proc/bus/pci/02/00.1
pcilib:cannot open /proc/bus/pci/02/00.0
pcilib:cannot open /proc/bus/pci/02/00.1

My computer still runs fine. I just would like to know what these messages are, and if there is anything I can do to make them go away.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum