On Mon, 2009-02-02 at 22:01 -0500, Stefan Monnier wrote:
> 
> I updated my USB (really IDE in my case) rootfs.

Ahhh.  Care to post the patch?

> More specifically, the
> /etc/init.d/boot script

The one on the flash, that calls /sbin/mount_root?

> needs to "killall -q hotplug2" before starting
> hotplug2

So where is this first hotplug2 being started from if /etc/init.d/boot
is starting the second one?  Surely this must be a bug (i.e. two
hotplug2 processes) even on installations with no externally mounted /,
no?

So something like:

         chown 0700 /tmp/.uci
         touch /var/log/wtmp                      
         touch /var/log/lastlog                              
         ln -sf /tmp/resolv.conf.auto /tmp/resolv.conf                          
  
         [ "$FAILSAFE" = "true" ] && touch /tmp/.failsafe
                                                         
+        killall -q hotplug2
         [ -x /sbin/hotplug2 ] && /sbin/hotplug2 --override --persistent \
                         --max-children 1 --no-coldplug &                 
                                                                          
         # the coldplugging of network interfaces needs to happen later, so we 
do it manually here
         for iface in $(awk -F: '/:/ {print $1}' /proc/net/dev); do             
                  
                 /usr/bin/env -i ACTION=add INTERFACE="$iface" 
/sbin/hotplug-call net             
         done                                                                   
                  

> (I did that by changing it into a symlink to
> /rom/etc/init.d/boot).

Hrm.  I must be missing what you mean.  /etc/init.d/boot
and /rom/etc/init.d/boot for all intents and purposes are the same on my
router.

> You can try killing the process 207.

Yes, that was the ticket.  Now I want to make the change permanent.

Thanx!

b.

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
openwrt-devel mailing list
[email protected]
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to