Mini Shell

Direktori : /lib/dracut/modules.d/99memstrack/
Upload File :
Current File : //lib/dracut/modules.d/99memstrack/memstrack-report.sh

#!/usr/bin/sh
. /lib/dracut-lib.sh

if ! [ "$DEBUG_MEM_LEVEL" -ge 4 ]; then
    return 0
fi

if command -v systemctl > /dev/null; then
    systemctl stop memstrack.service
else
    pkill --signal INT '[m]emstrack'
    while pgrep -c '[m]emstrack' > /dev/null; do
        sleep 1
    done
fi

cat /.memstrack

Zerion Mini Shell 1.0