NetworkManager/tools/nm-guest-data/bin-nm-deploy.sh.in
Íñigo Huguet d00a5d2a8b tools: nm-in-container: don't generate files from the script
The script was generating the data-* files that later copies to the
container.

In order to the files being reusable for nm-in-vm, put them as separate
files inside the data directory.

However, some of the files need the full path to NetworkManager project,
which varies for each user. Instead, make a sed replacement on them and
generate the actual files that will be copied. Replacement:
{{BASEDIR_NM}} -> $BASEDIR_NM

Also, rename the files to more descriptive names, using some prefixes
that give a hint of where those files will be put, and the .in extension
to indicate that they will be processed.
2023-09-21 15:53:03 +02:00

14 lines
195 B
Bash

#!/bin/bash
set -ex
cd /NetworkManager
if [ -f ./config.log ] ; then
make -j 5 install
else
meson install -C build
fi
systemctl daemon-reload
systemctl restart NetworkManager.service