From d2e451a0dd4a6801e79ab517d5d813c7676d01a3 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Tue, 19 Feb 2019 04:50:22 +0000 Subject: [PATCH] etc/profile.d/sys.sh --- etc/profile.d/sys.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.47.3