mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-21 14:03:18 -07:00
* usr/lib/byobu/hostname:
- Read from /proc/sys/kernel/hostname if the hostname command is not available
This commit is contained in:
parent
558da18bf3
commit
7cd5821d80
2 changed files with 9 additions and 2 deletions
3
debian/changelog
vendored
3
debian/changelog
vendored
|
@ -26,6 +26,9 @@ byobu (5.128) unreleased; urgency=medium
|
|||
creating it)
|
||||
* usr/lib/byobu/disk_io:
|
||||
- Ensure the detected mount point device exists
|
||||
* usr/lib/byobu/hostname:
|
||||
- Read from /proc/sys/kernel/hostname if the hostname command is not
|
||||
available
|
||||
* usr/lib/byobu/logo:
|
||||
- Add logo for OpenWrt
|
||||
* usr/share/byobu/keybindings/f-keys.tmux:
|
||||
|
|
|
@ -20,12 +20,16 @@
|
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
__hostname_detail() {
|
||||
hostname -f
|
||||
hostname -f 2>/dev/null
|
||||
}
|
||||
|
||||
__hostname() {
|
||||
local h=
|
||||
if eval $BYOBU_TEST hostname >/dev/null 2>&1; then
|
||||
h=$(hostname -s 2>/dev/null || hostname)
|
||||
elif [ -r /proc/sys/kernel/hostname ]; then
|
||||
read h < /proc/sys/kernel/hostname
|
||||
fi
|
||||
if metadata_available; then
|
||||
local cache="$BYOBU_RUN_DIR/cache.$BYOBU_BACKEND/hostname"
|
||||
# Background a retrieval of our public hostname
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue