diff options
author | Andrew Cady <d@jerkface.net> | 2022-08-06 13:20:44 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2022-08-06 13:20:44 -0400 |
commit | 3e65c82842c3d0798ff8e2e9693baecc012f23d3 (patch) | |
tree | a582df32cd79eb47fff6311f724f7a4054c23eac | |
parent | 4e81ea3c5d7cadfceca5610aa270313fdaa36c53 (diff) |
use config file
-rwxr-xr-x | firestart | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -7,6 +7,12 @@ MEMORY_MAX=50% | |||
7 | READ_OPS=1G | 7 | READ_OPS=1G |
8 | WRITE_OPS=$READ_OPS | 8 | WRITE_OPS=$READ_OPS |
9 | 9 | ||
10 | cfg=$HOME/.config/firestart/conf | ||
11 | if [ -e "$cfg" ] | ||
12 | then | ||
13 | . "$cfg" | ||
14 | fi | ||
15 | |||
10 | if systemctl --user is-active "$UNIT" >/dev/null | 16 | if systemctl --user is-active "$UNIT" >/dev/null |
11 | then | 17 | then |
12 | exec "$CMD" "$@" | 18 | exec "$CMD" "$@" |