* usr/lib/byobu/disk_io:

- Ensure the detected mount point device exists
This commit is contained in:
Jeffery To 2019-05-27 03:12:21 +08:00
commit 558da18bf3
2 changed files with 3 additions and 0 deletions

2
debian/changelog vendored
View file

@ -24,6 +24,8 @@ byobu (5.128) unreleased; urgency=medium
usr/bin/byobu-janitor.in:
- Test if $HOME/.bashrc exists before modifying it (and potentially
creating it)
* usr/lib/byobu/disk_io:
- Ensure the detected mount point device exists
* usr/lib/byobu/logo:
- Add logo for OpenWrt
* usr/share/byobu/keybindings/f-keys.tmux:

View file

@ -50,6 +50,7 @@ __disk_io() {
/dev/*) part="${mount_point}";;
*) part=$(awk '$2 == mp { print $1 ; exit(0); }' "mp=$mount_point" /etc/mtab);;
esac
[ -e "$part" ] || return
getdisk "$part"
local disk=${_RET}
local t2=$(date +%s) t1=