mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-10-15 20:45:32 +00:00
ifcfg-rh: add nm-ifup and nm-ifdown scripts
They're intended to be used via update-alternatives(8) as compatibility shims for Red Hat systems without the legacy network control scripts. While they're not strictly parts of the settings plugin, they're best just installed along with it, since they're supposed to be available on systems that use the ifcfg files.
This commit is contained in:
parent
d52573d125
commit
d815130468
|
@ -19,6 +19,7 @@ noinst_DATA =
|
||||||
sbin_PROGRAMS =
|
sbin_PROGRAMS =
|
||||||
bin_PROGRAMS =
|
bin_PROGRAMS =
|
||||||
libexec_PROGRAMS =
|
libexec_PROGRAMS =
|
||||||
|
dist_libexec_SCRIPTS =
|
||||||
lib_LTLIBRARIES =
|
lib_LTLIBRARIES =
|
||||||
plugin_LTLIBRARIES =
|
plugin_LTLIBRARIES =
|
||||||
core_plugins =
|
core_plugins =
|
||||||
|
@ -2201,6 +2202,10 @@ src_settings_plugins_ifcfg_rh_tests_test_ifcfg_rh_LDADD = \
|
||||||
|
|
||||||
$(src_settings_plugins_ifcfg_rh_tests_test_ifcfg_rh_OBJECTS): $(libnm_core_lib_h_pub_mkenums)
|
$(src_settings_plugins_ifcfg_rh_tests_test_ifcfg_rh_OBJECTS): $(libnm_core_lib_h_pub_mkenums)
|
||||||
|
|
||||||
|
dist_libexec_SCRIPTS += \
|
||||||
|
src/settings/plugins/ifcfg-rh/nm-ifup \
|
||||||
|
src/settings/plugins/ifcfg-rh/nm-ifdown
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
EXTRA_DIST += \
|
EXTRA_DIST += \
|
||||||
|
|
3
src/settings/plugins/ifcfg-rh/nm-ifdown
Normal file
3
src/settings/plugins/ifcfg-rh/nm-ifdown
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
nmcli connection load "/etc/sysconfig/network-scripts/ifcfg-$1" &&
|
||||||
|
exec nmcli connection down filename "/etc/sysconfig/network-scripts/ifcfg-$1"
|
3
src/settings/plugins/ifcfg-rh/nm-ifup
Normal file
3
src/settings/plugins/ifcfg-rh/nm-ifup
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
nmcli connection load "/etc/sysconfig/network-scripts/ifcfg-$1" &&
|
||||||
|
exec nmcli connection up filename "/etc/sysconfig/network-scripts/ifcfg-$1"
|
Loading…
Reference in a new issue