From 84b3d31b4382022434c8d188ee63f76667c1d0d2 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Sun, 17 Feb 2019 20:58:10 +0000 Subject: [PATCH] etc/profile.d/sys.sh --- etc/profile.d/sys.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/etc/profile.d/sys.sh b/etc/profile.d/sys.sh index faebb4c7..9e075ecc 100644 --- a/etc/profile.d/sys.sh +++ b/etc/profile.d/sys.sh @@ -11,6 +11,8 @@ nproc${s}$(sys_nproc) date_install${s}$(sys_date_install) ips${s}$(echo -n $(ips 2>/dev/null)) public_ip${s}$( (http_get http://nicolas.boisselier.free.fr/myip/) 2>/dev/null) +model${s}$([ -r /proc/device-tree/model ] && printf '%s\t%s\n' model "$(cat /proc/device-tree/model)") +debian version${s}$([ -r /etc/debian_version ] && cat /etc/debian_version) EOF } @@ -27,7 +29,7 @@ sys_arch() { } sys_df() { - df -P -l | tail -n +2 | while read -r -a i; do + df -k -l | tail -n +2 | while read -r -a i; do mount=${i[0]} [ -e "$mount" ] || continue used=${i[2]} -- 2.47.3