[Buildroot] mstpd install location
Colin Foster
colin.foster at in-advantage.com
Fri Jul 8 19:26:02 UTC 2022
Hello,
I'm finally getting mstpd to start working in buildroot. I noticed two
blockers:
mstpd was running "pidof -c" while busybox doesn't support the -c
option. As a result, mstpd would fail entirely. I'm working with mstpd
to either remove the -c option if it isn't necessary, or detect
capabilities.
Also, the bridge-stp script gets called by the kernel, and needs to be
in /sbin. However, the install directory is /usr/sbin. I'm confused,
since Makefile.in seems to use $(DESTDIR)/sbin.
It seems there are two options:
1. Change the install directory of mstpd to /sbin, or
2. Add a post-install hook to soft link /sbin files to
/usr/sbin/{mstpd,mstpctl,bridge-stp}
I'm not familiar with autotools-package, so I'm not sure why option 1
isn't already happening. If option 1 couldn't, or shouldn't happen, I
can certainly look into implementing option 2.
Any feedback is appreciated.
More information about the buildroot
mailing list