aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorDavid Kaspar [Dee'Kej] <dkaspar@redhat.com>2018-05-30 14:17:42 +0200
committerDavid Kaspar [Dee'Kej] <dkaspar@redhat.com>2018-05-30 14:33:01 +0200
commit277be5ed064caaa86b9582d27bbb0472779edf3a (patch)
tree6592829906238b67fd1c580c7b178ce0b2dfd854 /Makefile
parent3424690ff366fa2e7ca3cf5806f9601249bea6df (diff)
downloadinitscripts-277be5ed064caaa86b9582d27bbb0472779edf3a.tar
initscripts-277be5ed064caaa86b9582d27bbb0472779edf3a.tar.gz
initscripts-277be5ed064caaa86b9582d27bbb0472779edf3a.tar.bz2
initscripts-277be5ed064caaa86b9582d27bbb0472779edf3a.tar.xz
initscripts-277be5ed064caaa86b9582d27bbb0472779edf3a.zip
network-scripts: ifup & ifdown -- use alternatives system
This installs the real scripts into /etc/sysconfig/network-scripts while leaving the management of the launchers in /usr/sbin to the alternatives system. This allows coexistence with alternative implementations of ifup and ifdown, notably NetworkManager. A priority of 90 is chosen rather arbitrarily, NetworkManager will use a lower one (50) so that our implementation takes precedence over NetworkManaager in case both are installed. In an unlikely event the user will want to switch to NetworkManager implementations when both are installed they can override the default with: $ update-alternatives --config ifup
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 0 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index cec6c103..c5b6d3a4 100644
--- a/Makefile
+++ b/Makefile
@@ -74,10 +74,6 @@ install-network-scripts: install-usr install-etc
install -m 0755 -d $(DESTDIR)$(sysconfdir)/sysconfig/network-scripts
cp -a network-scripts/* $(DESTDIR)$(sysconfdir)/sysconfig/network-scripts/
(cd $(DESTDIR)$(sysconfdir)/sysconfig/network-scripts; \
- mv ifup $(DESTDIR)$(sbindir)/; \
- mv ifdown $(DESTDIR)$(sbindir)/; \
- ln -sf $(sbindir)/ifup . ; \
- ln -sf $(sbindir)/ifdown . ; \
ln -sf ifup-ippp ifup-isdn ; \
ln -sf ifdown-ippp ifdown-isdn ; \
)