>> ln -sf /rom/etc/init./boot /etc/init.d/boot

> Hrm.  But in my case, those files are effectively the same (where
> hotplug counts).  See:

> # diff -u /rom/etc/init.d/boot /etc/init.d/boot
> --- /rom/etc/init.d/boot      Mon Jun 16 23:08:04 2008
> +++ /etc/init.d/boot  Fri Jul 11 00:16:00 2008
> @@ -20,8 +20,12 @@
>       config_get log_ip "$cfg" log_ip 
>       config_get log_size "$cfg" log_size
>       # but what if we want to use syslog-ng here?
> -     syslogd -C${log_size:-16} ${log_ip:+-L -R $log_ip}
> -     klogd
> +     if [ -x /etc/init.d/syslog-ng ]; then
> +             /etc/init.d/syslog-ng start
> +     else
> +             syslogd -C${log_size:-16} ${log_ip:+-L -R $log_ip}
> +             klogd
> +     fi
>  }

> As you can see, the only difference is in regard to a local patch I have
> for syslog/syslog-ng handling.

Then I don't know what's going on.

>> Starting it twice is fairly normal: once in the "initramfs" (aka
>> "miniroot" in Irix parlance) before the real rootfs is mounted, and once
>> after the real rootfs is mounted.

> But only one of them is actually active, yes?

Only one of them is active at any particular time: the first gets killed
before the seconed is started.

> Why keep a second one around consuming RAM if it's been superseded and
> doing nothing?

It's not on purpose.

> I guess I wonder why, even without an externally mounted rootfs, this
> issue of having two hotplug2s running is not being addressed.

In a normal OpenWRT install, there's only one hotplug2 running at any time.


        Stefan

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

Reply via email to