diff options
author | Aaron Ball <nullspoon@oper.io> | 2021-05-19 12:03:41 -0600 |
---|---|---|
committer | Aaron Ball <nullspoon@oper.io> | 2021-05-19 12:03:41 -0600 |
commit | 5c1aec361c0a46dacb2a9bfb28bbda23111a7925 (patch) | |
tree | 79419d6b8e99256a78cdd7c1e5d83567ba2fddf9 | |
parent | 57c37b8e9dc43f1392b1c71f86870cc387f15fc0 (diff) | |
download | zmount-5c1aec361c0a46dacb2a9bfb28bbda23111a7925.tar.gz zmount-5c1aec361c0a46dacb2a9bfb28bbda23111a7925.tar.xz |
Improve status command
Rather than only listing what device is in use, it now lists all of the
details of the device, including usage, using the zramctl command.
-rwxr-xr-x | zram-swap | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -23,7 +23,7 @@ MEMTOTAL=$(sed -n 's/^MemTotal: \+\([0-9]\+\) kB/\1/p' /proc/meminfo) status() { if [ -f "${RUNFILE}" ]; then - cat "${RUNFILE}" + zramctl $(cat "${RUNFILE}") else printf 'stopped\n' fi |