diff options
author | Toby Vincent <tobyv13@gmail.com> | 2021-07-12 13:06:48 -0500 |
---|---|---|
committer | Toby Vincent <tobyv13@gmail.com> | 2021-07-12 13:06:48 -0500 |
commit | 4f1537252bcd551c15847d3cd6ac2a9a35fbc09a (patch) | |
tree | 40ebc43da502f860981e0d050b39a7f19294a9dc | |
parent | 219befe5c8fe2fd311bd527b846cee0831bc6ed3 (diff) |
feat: added drop-cache cron command for wsl
-rw-r--r-- | sh/wsl.sh | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -42,3 +42,6 @@ function winget() { powershell.exe -NoProfile -c "$cmd" } + +# https://github.com/validatedev/drop-cache-if-idle +[ -z "$(ps -ef | grep cron | grep -v grep)" ] && sudo /etc/init.d/cron start &> /dev/null
\ No newline at end of file |