]> git.puffer.fish Git - mirror/frr.git/commitdiff
redhat: fix previous merge. initsystem detection should now work for mock builds...
authorMartin Winter <mwinter@opensourcerouting.org>
Mon, 22 May 2017 11:04:35 +0000 (04:04 -0700)
committerMartin Winter <mwinter@opensourcerouting.org>
Mon, 22 May 2017 11:04:35 +0000 (04:04 -0700)
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
redhat/frr.spec.in

index 3f39f007e6219d44bddf733cde9263d649442549..133ed1fcd0eb0b0eddee6b3f397fba5951017a8c 100644 (file)
@@ -49,7 +49,7 @@
 
 #### Check for systemd or init.d (upstart)
 # Check for init.d (upstart) as used in CentOS 6 or systemd (ie CentOS 7)
-%{expand: %%global initsystem %(if [[ `/sbin/init --version 2> /dev/null` =~ upstart ]]; then echo upstart; elif [[ `file /sbin/init` =~ "symbolic link to \`../lib/systemd/systemd'" ]]; then echo systemd; fi)}
+%{expand: %%global initsystem %(if [[ `/sbin/init --version 2> /dev/null` =~ upstart ]]; then echo upstart; elif [[ `file /sbin/init` =~ "symbolic link to \`../lib/systemd/systemd'" ]]; then echo systemd; elif [[ `systemctl` =~ -\.mount ]]; then echo systemd; fi)}
 #
 # If init system is systemd, then always disable watchfrr
 #
@@ -539,7 +539,7 @@ rm -rf %{buildroot}
 %endif
 
 %changelog
-* Thu Apr 17 2017 Martin Winter <mwinter@opensourcerouting.org> - %{version}
+* Mon Apr 17 2017 Martin Winter <mwinter@opensourcerouting.org> - %{version}
 - new subpackage frr-pythontools with python 2.7 restart script
 - remove PIMd from CentOS/RedHat 6 RPM packages (won't work - too old)
 - converted to single frr init script (not per daemon) based on debian init script