mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 22:34:23 -07:00
usr/lib/byobu/disk_io: conditionally use readlink -f, LP: #764584
This commit is contained in:
parent
34b3d7c567
commit
d73ea2ae2e
2 changed files with 3 additions and 1 deletions
1
debian/changelog
vendored
1
debian/changelog
vendored
|
@ -1,6 +1,7 @@
|
||||||
byobu (3.33) unreleased; urgency=low
|
byobu (3.33) unreleased; urgency=low
|
||||||
|
|
||||||
* usr/bin/byobu-launch: make sure this finishes with a true
|
* usr/bin/byobu-launch: make sure this finishes with a true
|
||||||
|
* usr/lib/byobu/disk_io: conditionally use readlink -f, LP: #764584
|
||||||
|
|
||||||
-- Dustin Kirkland <kirkland@ubuntu.com> Sun, 17 Apr 2011 13:30:34 -0500
|
-- Dustin Kirkland <kirkland@ubuntu.com> Sun, 17 Apr 2011 13:30:34 -0500
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,8 @@ 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=$(readlink "$disk" | sed -e "s: .*$::" -e "s:^.*/::" -e "s:\([hsv]d[a-z]\)[0-9]*$:\1:")
|
which greadlink 2>/dev/null && READLINK="greadlink" || READLINK="readlink"
|
||||||
|
disk=$($READLINK -f "$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