mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-01 07:10:12 +01:00
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.
14 lines
195 B
Bash
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
|