mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 22:34:23 -07:00
usr/lib/byobu/disk_io: fix regex to support RAID devices, LP: #572855
This commit is contained in:
parent
375bc26616
commit
a98683767b
2 changed files with 2 additions and 2 deletions
2
debian/changelog
vendored
2
debian/changelog
vendored
|
@ -1,6 +1,6 @@
|
||||||
byobu (2.74) unreleased; urgency=low
|
byobu (2.74) unreleased; urgency=low
|
||||||
|
|
||||||
* UNRELEASED
|
* usr/lib/byobu/disk_io: fix regex to support RAID devices, LP: #572855
|
||||||
|
|
||||||
-- Dustin Kirkland <kirkland@ubuntu.com> Wed, 28 Apr 2010 23:11:14 -0500
|
-- Dustin Kirkland <kirkland@ubuntu.com> Wed, 28 Apr 2010 23:11:14 -0500
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ case $MP in
|
||||||
/dev/*) disk="$MP" ;;
|
/dev/*) disk="$MP" ;;
|
||||||
*) disk=$(grep -m 1 " $MP " /etc/mtab | sed -e "s: .*$::") ;;
|
*) disk=$(grep -m 1 " $MP " /etc/mtab | sed -e "s: .*$::") ;;
|
||||||
esac
|
esac
|
||||||
disk=$(echo "$disk" | sed -e "s: .*$::" -e "s:^.*/::" -e "s:[0-9]*$::")
|
disk=$(echo "$disk" | sed -e "s: .*$::" -e "s:^.*/::" -e "s:\([hsv]d[a-z]\)[0-9]*$:\1:")
|
||||||
|
|
||||||
if [ "$1" = "--detail" ]; then
|
if [ "$1" = "--detail" ]; then
|
||||||
if which iostat >/dev/null; then
|
if which iostat >/dev/null; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue