mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 11:44:16 +00:00
Merge pull request #2 from silasm/rpm-fixes-2.0
redhat: use %initsystem check that works when chrooted
This commit is contained in:
commit
bedc9ac10f
@ -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 [[ `systemctl` =~ -\.mount ]]; 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; fi)}
|
||||
#
|
||||
# If init system is systemd, then always disable watchfrr
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user