summaryrefslogtreecommitdiffstats
path: root/debian/patches/0004-use-echo-n-as-fallback-for-log_daemon_msg.patch
blob: d06fe3f3b9f59231bbb19215354e71502b1b2447 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From 1d95db4b07e31848335824e3facc78dd51e11f45 Mon Sep 17 00:00:00 2001
From: Andreas Beckmann <anbe@debian.org>
Date: Wed, 22 Mar 2023 16:39:22 +0100
Subject: [PATCH] use 'echo -n' as fallback for log_daemon_msg

the final newline is supplied by log_end_msg
---
 dkms_autoinstaller | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/dkms_autoinstaller b/dkms_autoinstaller
index 2cd31b9..bff9ac5 100755
--- a/dkms_autoinstaller
+++ b/dkms_autoinstaller
@@ -23,13 +23,11 @@ elif [ -f /etc/rc.d/init.d/functions ]; then
     . /etc/rc.d/init.d/functions
 fi
 
-# We only have these functions on debian/ubuntu
+# We only have these functions on Debian/Ubuntu
 # so on other distros just stub them out
 if [ ! -f /etc/debian_version ]; then
-    alias log_daemon_msg=/bin/echo
+    alias log_daemon_msg='/bin/echo -n'
     log_end_msg() { if [ "$1" = "0" ]; then echo " Done. "; else echo " Failed. "; fi; }
-    alias log_action_begin_msg=log_daemon_msg
-    alias log_action_end_msg=log_end_msg
 fi
 
 exec="/usr/sbin/dkms"
-- 
2.20.1