forked from pool/ipmiutil
Accepting request 928352 from home:seife:branches:systemsmanagement
try to fix postinstall scripts (they are totally broken and useless anyway, but at least fix obvious errors) OBS-URL: https://build.opensuse.org/request/show/928352 OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/ipmiutil?expand=0&rev=45
This commit is contained in:
parent
d3f84bf279
commit
037888d932
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Oct 31 09:23:58 UTC 2021 - Stefan Seyfried <seife+obs@b1-systems.com>
|
||||||
|
|
||||||
|
- try to fix postinstall scripts (they are totally broken and
|
||||||
|
useless anyway, but at least fix obvious errors)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Oct 15 12:12:08 UTC 2021 - Johannes Segitz <jsegitz@suse.com>
|
Fri Oct 15 12:12:08 UTC 2021 - Johannes Segitz <jsegitz@suse.com>
|
||||||
|
|
||||||
|
@ -178,6 +178,7 @@ autoreconf -fiv
|
|||||||
|
|
||||||
%post devel -p /sbin/ldconfig
|
%post devel -p /sbin/ldconfig
|
||||||
%postun devel -p /sbin/ldconfig
|
%postun devel -p /sbin/ldconfig
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
%service_add_pre ipmi_port.service ipmiutil_evt.service ipmiutil_asy.service ipmiutil_wdt.service
|
%service_add_pre ipmi_port.service ipmiutil_evt.service ipmiutil_asy.service ipmiutil_wdt.service
|
||||||
|
|
||||||
@ -196,8 +197,10 @@ then
|
|||||||
IPMIret=1
|
IPMIret=1
|
||||||
which dmidecode >/dev/null 2>&1 && IPMIret=0
|
which dmidecode >/dev/null 2>&1 && IPMIret=0
|
||||||
if [ $IPMIret -eq 0 ]; then
|
if [ $IPMIret -eq 0 ]; then
|
||||||
|
IPMIret=1
|
||||||
%{_sbindir}/dmidecode |grep -q IPMI && IPMIret=0
|
%{_sbindir}/dmidecode |grep -q IPMI && IPMIret=0
|
||||||
if [ $IPMIret -eq 0 ]; then
|
if [ $IPMIret -eq 0 ]; then
|
||||||
|
IPMIret=1
|
||||||
# Run some ipmiutil command to see if any IPMI interface works.
|
# Run some ipmiutil command to see if any IPMI interface works.
|
||||||
# Some may not have IPMI on the motherboard, so need to check, but
|
# Some may not have IPMI on the motherboard, so need to check, but
|
||||||
# some kernels may have IPMI driver partially loaded, which breaks this
|
# some kernels may have IPMI driver partially loaded, which breaks this
|
||||||
@ -239,6 +242,7 @@ else
|
|||||||
IPMIret=1
|
IPMIret=1
|
||||||
which dmidecode >/dev/null 2>&1 && IPMIret=0
|
which dmidecode >/dev/null 2>&1 && IPMIret=0
|
||||||
if [ $IPMIret -eq 0 ]; then
|
if [ $IPMIret -eq 0 ]; then
|
||||||
|
IPMIret=1
|
||||||
%{_sbindir}/dmidecode |grep -q IPMI && IPMIret=0
|
%{_sbindir}/dmidecode |grep -q IPMI && IPMIret=0
|
||||||
if [ $IPMIret -eq 0 ]; then
|
if [ $IPMIret -eq 0 ]; then
|
||||||
if [ -d %{_sysconfdir}/cron.daily ]; then
|
if [ -d %{_sysconfdir}/cron.daily ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user