summaryrefslogtreecommitdiff
path: root/sliceweasel
diff options
context:
space:
mode:
authorAndrew Cady <d@cryptonomic.net>2022-11-29 12:00:08 -0500
committerAndrew Cady <d@cryptonomic.net>2022-11-29 12:00:08 -0500
commit61564e4d18058031d96e207862f72f0628934ea3 (patch)
tree1a43ee54623384f0b09387c68062905aeefe36f5 /sliceweasel
parent42a4367a83645b2bca1f0a4d48917fb9ec3bbf5b (diff)
move files to src; add README.txt
Diffstat (limited to 'sliceweasel')
-rwxr-xr-xsliceweasel15
1 files changed, 0 insertions, 15 deletions
diff --git a/sliceweasel b/sliceweasel
deleted file mode 100755
index f9df2c8..0000000
--- a/sliceweasel
+++ /dev/null
@@ -1,15 +0,0 @@
1#!/bin/sh
2. sliceweasel.lib.sh
3
4set -e
5IO_ROOT_DIR=$HOME/.cache/mozilla/firefox/
6[ -d "$IO_ROOT_DIR" ]
7[ "$(id -un)" = 0 ] && AS_ROOT= || AS_ROOT='sudo --'
8
9group=/sys/fs/cgroup/user.slice/user-$(id -u).slice/firefox
10join_group "$group"
11set_max_ratio "$group" memory 1/2
12set_max_ratio "$group" io 7/10
13exec firefox "$@"
14
15