diff options
Diffstat (limited to 'src/sliceuser')
-rwxr-xr-x | src/sliceuser | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/sliceuser b/src/sliceuser new file mode 100755 index 0000000..16d441f --- /dev/null +++ b/src/sliceuser | |||
@@ -0,0 +1,13 @@ | |||
1 | #!/bin/sh | ||
2 | . sliceweasel.lib.sh | ||
3 | |||
4 | set -e | ||
5 | IO_ROOT_DIR=$HOME/.cache/mozilla/firefox/ | ||
6 | [ -d "$IO_ROOT_DIR" ] | ||
7 | [ "$(id -un)" = 0 ] && AS_ROOT= || AS_ROOT='sudo --' | ||
8 | |||
9 | group=$(get_current_group) | ||
10 | set -x | ||
11 | set_max_ratio "$group" memory 3/4 | ||
12 | set_max_ratio "$group" io 8/10 | ||
13 | |||