From: David Disseldorp Date: Fri, 7 Aug 2015 17:30:43 +0000 (+0200) Subject: rbdnamer: drop unneccessary tr usage X-Git-Tag: v9.1.0~417^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=b98b104829abec3e1965f233c8a18ab8c926ccb9;p=ceph.git rbdnamer: drop unneccessary tr usage tr is not present by default in Dracut generated initramfs images. The same logic can anyhow be performed via the existing sed call. Signed-off-by: David Disseldorp --- diff --git a/src/ceph-rbdnamer b/src/ceph-rbdnamer index efb68043cad0f..846f321e475b4 100755 --- a/src/ceph-rbdnamer +++ b/src/ceph-rbdnamer @@ -1,7 +1,7 @@ #!/bin/sh DEV=$1 -NUM=`echo $DEV | sed 's#p.*##g' | tr -d 'a-z'` +NUM=`echo $DEV | sed 's#p.*##g; s#[a-z]##g'` POOL=`cat /sys/devices/rbd/$NUM/pool` IMAGE=`cat /sys/devices/rbd/$NUM/name` SNAP=`cat /sys/devices/rbd/$NUM/current_snap`