procd, possible hotplug issue?

e9hack e9hack at gmail.com
Wed Feb 21 13:01:30 PST 2024


Am 21.02.2024 um 01:21 schrieb Daniel Golle:
> 
> Yep, I didn't think about empty variables when I built this...
> 
> Can you test this please:
> https://github.com/openwrt/procd/pull/3
> 

This does fix the issue.

If I test a modified executable, I replaced it by a link to a link on a automatically mounted usb stick. The link on the usb stick points to the modified executable. e.g.:

/sbin/dnsmasq is renamed to /sbin/dnsmasq.old
/sbin/dnsmasq -> /mnt/test/dnsmasq/dnsmasq
/mnt/test/dnsmasq/dnsmasq -> /mnt/test/dnsmasq/dnsmasq-test-something

If the modification bricks the router, I replace the last link on the usb stick by

/mnt/test/dnsmasq/dnsmasq -> /sbin/dnsmasq.old

or

/mnt/test/dnsmasq/dnsmasq -> /rom/sbin/dnsmasq

and the router is operational again.

This doesn't work for procd since procd is needed before the usb stick is mounted.

How can I do similar things for procd?

Regards,
Hartmut




More information about the openwrt-devel mailing list