[Buildroot] [PATCH v1 2/3] package/iwd: add basic configuration file
Peter Seiderer
ps.report at gmx.net
Mon Jun 15 18:41:54 UTC 2020
Hello Yann,
On Sun, 14 Jun 2020 22:57:15 +0200, "Yann E. MORIN" <yann.morin.1998 at free.fr> wrote:
[...]
> > > Also, the condiotion on BR2_INIT_SYSTEMD is already handled by the
> > > infra, by using the appropriate INIT_INSTALL hooks:
> > >
> > > define IWD_INSTALL_INIT_SYSV
> > > sed -r -e '$s/$/\n[Network]\nNameResolvingService=resolvconf/' \
> > > $(IWD_PKGDIR)main.conf \
> > > >$(TARGET_DIR)/etc/iwd/main.conf
> > > endef
> >
> > Does not work, gives:
> >
> > sed: -e expression #1, char 46: missing command
>
> This is Makefile, I forgot to duplicate the $ signs when copy-pasting
> from my shell experiment...
>
O.k. thanks for explanation, the following works as expected:
sed -r -e '$$s/$$/\n[Network]\nNameResolvingService=systemd/' \
$(IWD_PKGDIR)main.conf > $(TARGET_DIR)/etc/iwd/main.conf
But nevertheless I would like to keep the split into copy of plain file and
append of extra options (in case more options with different dependencies
follow)...
Regards,
Peter
More information about the buildroot
mailing list