From 277be5ed064caaa86b9582d27bbb0472779edf3a Mon Sep 17 00:00:00 2001 From: "David Kaspar [Dee'Kej]" Date: Wed, 30 May 2018 14:17:42 +0200 Subject: 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 --- Makefile | 4 ---- 1 file changed, 4 deletions(-) (limited to 'Makefile') 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 ; \ ) -- cgit v1.2.1