common/environment/setup: add vsv command to add runit services.
This commit is contained in:
parent
379d3d103f
commit
33fd83f6be
1 changed files with 13 additions and 1 deletions
|
@ -13,10 +13,22 @@ _noglob_helper() {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Apply _noglob to v* commands
|
# Apply _noglob to v* commands
|
||||||
for cmd in vinstall vcopy vmove vmkdir vbin vman vdoc vconf vsconf vlicense; do
|
for cmd in vinstall vcopy vmove vmkdir vbin vman vdoc vconf vsconf vlicense vsv; do
|
||||||
alias ${cmd}="set -f; _noglob_helper _${cmd}"
|
alias ${cmd}="set -f; _noglob_helper _${cmd}"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
_vsv() {
|
||||||
|
local service="$1"
|
||||||
|
|
||||||
|
if [ $# -lt 1 ]; then
|
||||||
|
msg_red "$pkgver: vsv: 1 argument expected: <service>\n"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
vmkdir etc/sv
|
||||||
|
vcopy "${FILESDIR}/$service" etc/sv
|
||||||
|
}
|
||||||
|
|
||||||
_vbin() {
|
_vbin() {
|
||||||
local file="$1" targetfile="$2"
|
local file="$1" targetfile="$2"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue