summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-fs/udev/files/udev-116-path-to-logger.diff')
-rw-r--r--sys-fs/udev/files/udev-116-path-to-logger.diff15
1 files changed, 15 insertions, 0 deletions
diff --git a/sys-fs/udev/files/udev-116-path-to-logger.diff b/sys-fs/udev/files/udev-116-path-to-logger.diff
new file mode 100644
index 000000000000..aa12517d71cd
--- /dev/null
+++ b/sys-fs/udev/files/udev-116-path-to-logger.diff
@@ -0,0 +1,15 @@
+diff --git a/extras/firmware/firmware.sh b/extras/firmware/firmware.sh
+index 89b985e..49845ba 100755
+--- a/extras/firmware/firmware.sh
++++ b/extras/firmware/firmware.sh
+@@ -4,8 +4,8 @@ FIRMWARE_DIRS="/lib/firmware /usr/local/lib/firmware"
+
+ err() {
+ echo "$@" >&2
+- if [ -x /bin/logger ]; then
+- /bin/logger -t "${0##*/}[$$]" "$@"
++ if type logger >/dev/null; then
++ logger -t "${0##*/}[$$]" "$@"
+ fi
+ }
+