From 1a312086b268e6fc3ea84b45f61dcffd183f0ec3 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Feb 28 2019 19:24:00 +0000 Subject: Do not fail when the old initscripts pkg is not installed - rhbz#1680121 --- diff --git a/akmods b/akmods index d2af8bd..e5b5256 100644 --- a/akmods +++ b/akmods @@ -163,8 +163,19 @@ init () if [[ -r /etc/rc.d/init.d/functions ]] ; then source /etc/rc.d/init.d/functions else - echo "/etc/rc.d/init.d/functions not found" >&2 - exit 1 + # Use our own simple replacements + echo_success() { + echo -ne " [ OK ]\r" + return 0 + } + echo_failure() { + echo -ne " [FAILED]\r" + return 1 + } + echo_warning() { + echo -ne " [WARNING]\r" + return 1 + } fi # needs root permissions diff --git a/akmods.spec b/akmods.spec index 8640c24..50a694e 100644 --- a/akmods.spec +++ b/akmods.spec @@ -1,6 +1,6 @@ Name: akmods Version: 0.5.6 -Release: 18%{?dist} +Release: 19%{?dist} Summary: Automatic kmods build and install tool License: MIT @@ -185,6 +185,9 @@ fi %changelog +* Thu Feb 28 2019 Hans de Goede - 0.5.6-19 +- Do not fail when the old initscripts pkg is not installed - rhbz#1680121 + * Thu Jan 31 2019 Fedora Release Engineering - 0.5.6-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild