]> git.puffer.fish Git - mirror/frr.git/commitdiff
redhat: spec file: all supported Fedora versions use systemd
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Tue, 5 Jun 2018 15:10:13 +0000 (17:10 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Tue, 19 Jun 2018 07:57:52 +0000 (09:57 +0200)
Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
redhat/frr.spec.in

index 730dc395723e5816cdee8101f4964cfec72971ee..58fc20b3a87bc235502df9d73d62ceccad34b7ee 100644 (file)
 
 #### Check for systemd or init.d (upstart)
 # Check for init.d (upstart) as used in CentOS 6 or systemd (ie CentOS 7)
-%if 0%{?fedora} >= 15 || 0%{?rhel} >= 7 || 0%{?suse_version} >= 1210
+%if 0%{?fedora} || 0%{?rhel} >= 7 || 0%{?suse_version} >= 1210
     %global initsystem systemd
 %else
-%if (0%{?fedora} && 0%{?fedora} < 15) || (0%{?rhel} && 0%{?rhel} < 7)
+%if 0%{?rhel} && 0%{?rhel} < 7
     %global initsystem upstart
 %else
     %{expand: %%global initsystem %(if [[ `/sbin/init --version 2> /dev/null` =~ upstart ]]; then echo upstart; elif [[ `readlink -f /sbin/init` = /usr/lib/systemd/systemd ]]; then echo systemd; elif [[ `systemctl` =~ -\.mount ]]; then echo systemd; fi)}