summarylogtreecommitdiffstats
path: root/10-cdrom
diff options
context:
space:
mode:
Diffstat (limited to '10-cdrom')
-rw-r--r--10-cdrom4
1 files changed, 1 insertions, 3 deletions
diff --git a/10-cdrom b/10-cdrom
index 61f2fa8a66f9..c8cde28b61c0 100644
--- a/10-cdrom
+++ b/10-cdrom
@@ -1,3 +1 @@
-if [[ $(echo $DEVNAME | 'sr[0-9]') ]]; then
- ln -sf /dev/$DEVNAME /dev/cdrom
-fi
+[ $(echo $DEVNAME | grep 'sr[0-9]') ] && ln -sf /dev/$DEVNAME /dev/cdrom