diff options
author | Tomasz Kramkowski <tk@the-tk.com> | 2020-12-30 21:04:34 +0000 |
---|---|---|
committer | Tomasz Kramkowski <tk@the-tk.com> | 2020-12-30 21:04:34 +0000 |
commit | 8ddc2e446b7f0dfcc2ce10de9cd91201598e88a1 (patch) | |
tree | 11a9a45e5ead367d3bd079f16c339241f250a20a | |
parent | b4c5251ad58cf60d00700db34e104fd75f78edea (diff) | |
download | battd-8ddc2e446b7f0dfcc2ce10de9cd91201598e88a1.tar.gz battd-8ddc2e446b7f0dfcc2ce10de9cd91201598e88a1.tar.xz battd-8ddc2e446b7f0dfcc2ce10de9cd91201598e88a1.zip |
Include 'install' script
-rw-r--r-- | README.md | 7 | ||||
-rwxr-xr-x | install | 9 |
2 files changed, 15 insertions, 1 deletions
@@ -8,7 +8,12 @@ status the `failed` function is called. ## Installation -Directly install `run`, `conf` and `battcheck` in a service directory. +``` +# ./install /etc/sv/battd +# ln -s /etc/sv/battd /var/service +``` + +Adjust the above as needed. ## Usage @@ -0,0 +1,9 @@ +#!/bin/sh + +if [ -z "$1" ]; then + echo "Usage: $0 dest" >&2 + exit 1 +fi + +install -Dm755 -t "$1" run battcheck +install -Dm644 -t "$1" conf |