On Mon, Apr 25, 2022 at 01:49:38PM +0200, Philipp Rudo wrote:
Hi Coiby,
BTW, you could get rid of the local variable by simply moving the "cat"
to the heredoc, i.e.
cat <<- EOF ...
match-device=$(cat "/tmp/$$-netif_allowlist")
...
EOF
or maybe even go full bash with $(< /tmp/$$-netif_allowlist)
Thanks for the tip! I'll apply it in the future since v1 has some change
that makes this suggestion invalid.
Thanks
Philipp
>
> >
> >Thanks
> >Philipp
> >
> >> + managed=false
> >> + EOF
> >> +
> >> + inst "/tmp/$$-10-kdump-netif.conf"
"/etc/NetworkManager/conf.d/10-kdump-netif.conf"
> >> + rm -f "/tmp/$$-10-kdump-netif.conf"
> >> + rm -f "/tmp/$$-netif_allowlist"
> >> +}
> >> +
> >> kdump_setup_bridge() {
> >> local _netdev=$1
> >> local _brif _dev _mac _kdumpdev
> >
>
--
Best regards,
Coiby