summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Robin Obůrka <r.oburka@gmail.com> 2015-02-22 19:56:22 +0100
committerGravatar Robin Obůrka <r.oburka@gmail.com> 2015-02-22 19:56:22 +0100
commit79004afdd302d14fdf1eb14e2d20f8fa1138abe1 (patch)
tree213e92ce3c0bd9c6b3c65cdeeeb9a563a2d0b2ac
parentAdd read auto detection to autodetect.sh (diff)
downloaddisplay_autoset-79004afdd302d14fdf1eb14e2d20f8fa1138abe1.tar.xz
Fix regexp
-rwxr-xr-xautodetect.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/autodetect.sh b/autodetect.sh
index 5ce4774..478fb0c 100755
--- a/autodetect.sh
+++ b/autodetect.sh
@@ -23,11 +23,11 @@ detect_status() {
}
detect_connected() {
- sed -n -e 's/^\([[A-Za-z0-9-]*\)\s*connected.*$/\1/p'
+ sed -n -e 's/^\([A-Za-z0-9-]*\)\s*connected.*$/\1/p'
}
detect_disconnected() {
- sed -n -e 's/^\([[A-Za-z0-9-]*\)\s*disconnected.*$/\1/p'
+ sed -n -e 's/^\([A-Za-z0-9-]*\)\s*disconnected.*$/\1/p'
}
rest_off() {