From d3feed5c4c81d445e94b3ba8934583310b77bd98 Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Thu, 23 Jan 2014 17:55:38 +0200 Subject: [PATCH] dahdi_span_types: hush warning of missing attribute Don't warn when a sysfs attribute does not exist. Signed-off-by: Tzafrir Cohen Acked-By: Russ Meyerriecks --- dahdi_span_types | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dahdi_span_types b/dahdi_span_types index 38dc347..85204d8 100755 --- a/dahdi_span_types +++ b/dahdi_span_types @@ -166,7 +166,7 @@ fi # Beware of special characters in attributes attr_clean() { - cat "$1" | tr -d '\n' | tr '!' '/' | tr -c 'a-zA-Z0-9/:.-' '_' + cat "$1" 2>/dev/null | tr -d '\n' | tr '!' '/' | tr -c 'a-zA-Z0-9/:.-' '_' } show_spantypes() {