<p>Rodrigo Ramirez Norambuena has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/9895">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">make config: os-release output error.<br><br>Fix not show the error<br>"/bin/sh: /etc/os-release: No such file or directory" when the command<br>'make config' is run in a System without systemv.<br><br>The instruction 'make config' pre execute the syntax<br>"$(shell . /etc/os-release && echo $$ID)" to identified if system is a<br>Slackware and Opensuse.<br><br>This change prevent show the message and is send to the /dev/null<br><br>Change-Id: I7f43e281a8d9405b2519fc653de82d9b8b645fdf<br>---<br>M Makefile<br>1 file changed, 2 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/95/9895/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/Makefile b/Makefile</span><br><span>index 562b11e..8911c6a 100644</span><br><span>--- a/Makefile</span><br><span>+++ b/Makefile</span><br><span>@@ -946,7 +946,7 @@</span><br><span> if [ -z "$(DESTDIR)" ] ; then \</span><br><span> /sbin/chkconfig --add asterisk ; \</span><br><span> fi ; \</span><br><span style="color: hsl(0, 100%, 40%);">- elif [ -f /etc/os-release ] && [ "opensuse" = "$(shell . /etc/os-release && echo $$ID)" ] ; then \</span><br><span style="color: hsl(120, 100%, 40%);">+ elif [ -f /etc/os-release ] && [ "opensuse" = "$(shell . /etc/os-release 2>/dev/null && echo $$ID)" ] ; then \</span><br><span> ./build_tools/install_subst contrib/init.d/rc.suse.asterisk "$(DESTDIR)/etc/init.d/asterisk"; \</span><br><span> if [ ! -f /etc/sysconfig/asterisk ] ; then \</span><br><span> $(INSTALL) -m 644 contrib/init.d/etc_default_asterisk "$(DESTDIR)/etc/sysconfig/asterisk" ; \</span><br><span>@@ -958,7 +958,7 @@</span><br><span> ./build_tools/install_subst contrib/init.d/rc.archlinux.asterisk "$(DESTDIR)/etc/init.d/asterisk"; \</span><br><span> elif [ -f /etc/slackware-version ]; then \</span><br><span> ./build_tools/install_subst contrib/init.d/rc.slackware.asterisk "$(DESTDIR)/etc/rc.d/rc.asterisk"; \</span><br><span style="color: hsl(0, 100%, 40%);">- elif [ -f /etc/os-release ] && [ "slackware" = "$(shell . /etc/os-release && echo $$ID)" ] ; then \</span><br><span style="color: hsl(120, 100%, 40%);">+ elif [ -f /etc/os-release ] && [ "slackware" = "$(shell . /etc/os-release 2>/dev/null && echo $$ID)" ] ; then \</span><br><span> ./build_tools/install_subst contrib/init.d/rc.slackware.asterisk "$(DESTDIR)/etc/rc.d/rc.asterisk"; \</span><br><span> elif [ -d "$(DESTDIR)/Library/LaunchDaemons" ]; then \</span><br><span> if [ ! -f "$(DESTDIR)/Library/LaunchDaemons/org.asterisk.asterisk.plist" ]; then \</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/9895">change 9895</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/9895"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I7f43e281a8d9405b2519fc653de82d9b8b645fdf </div>
<div style="display:none"> Gerrit-Change-Number: 9895 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Rodrigo Ramirez Norambuena <a@rodrigoramirez.com> </div>