diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:20:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:20:55 +0000 |
commit | 751abe5af6e60af060ea7979512574d903a49eb0 (patch) | |
tree | 991d21305c4f60a4b0c13964436f8b8e08fee34b /debian/patches/0004-use-echo-n-as-fallback-for-log_daemon_msg.patch | |
parent | Adding upstream version 3.0.10. (diff) | |
download | dkms-debian.tar.xz dkms-debian.zip |
Adding debian version 3.0.10-8+deb12u1.debian/3.0.10-8+deb12u1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/0004-use-echo-n-as-fallback-for-log_daemon_msg.patch')
-rw-r--r-- | debian/patches/0004-use-echo-n-as-fallback-for-log_daemon_msg.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/debian/patches/0004-use-echo-n-as-fallback-for-log_daemon_msg.patch b/debian/patches/0004-use-echo-n-as-fallback-for-log_daemon_msg.patch new file mode 100644 index 0000000..d06fe3f --- /dev/null +++ b/debian/patches/0004-use-echo-n-as-fallback-for-log_daemon_msg.patch @@ -0,0 +1,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 + |