From: Nicolas Boisselier Date: Tue, 19 Feb 2019 04:50:22 +0000 (+0000) Subject: etc/profile.d/sys.sh X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=d2e451a0dd4a6801e79ab517d5d813c7676d01a3;p=nb.git etc/profile.d/sys.sh --- diff --git a/etc/profile.d/sys.sh b/etc/profile.d/sys.sh index d2a0f564..9badcaff 100644 --- a/etc/profile.d/sys.sh +++ b/etc/profile.d/sys.sh @@ -21,7 +21,7 @@ arch${s}$(sys_arch) nproc${s}$(sys_nproc) ips${s}$(echo -n $(ips 2>/dev/null)) interfaces${s}$(echo -n $(sys_interfaces)) -model${s}$([ -r /proc/device-tree/model ] && printf '%s\t%s\n' model "$(cat /proc/device-tree/model)") +model${s}$([ -r /proc/device-tree/model ] && printf '%s\t%s\n' model "$(tr -d '\000' < /proc/device-tree/model)") os${s}$(sys_os) date_install${s}$(sys_date_install) mem_total${s}$(sys_mem_total)