From deef8f463ffc842c263d59adae370d3c126d2f00 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Thu, 1 Dec 2016 13:00:17 +0100 Subject: [PATCH] sys_activity --- etc/profile.d/sys.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/etc/profile.d/sys.sh b/etc/profile.d/sys.sh index 0bd3e3e8..c2955c4f 100644 --- a/etc/profile.d/sys.sh +++ b/etc/profile.d/sys.sh @@ -2,7 +2,12 @@ sys_is_vm() { grep -q ^flags.*\ hypervisor /proc/cpuinfo && echo "This machine is a VM" } -sys_watch() { +sys_activity() { +# if [ -z "$@" ]; then +# export -f $FUNCNAME +# watch -d echo $FUNCNAME _ +# return +# fi local tmp=/tmp/ [ -d /dev/shm/ ] && tmp=/dev/shm/ tmp="$tmp/$FUNCNAME.$$" -- 2.47.3