unos-repository

APK repository for unos
git clone git://git.finwo.net/misc/unos-repository
Log | Files | Refs | README

runsvchdir (197B)


      1 #!/bin/sh
      2 set -eu
      3 
      4 d=${1:?usage: runsvchdir <runlevel>}
      5 [ -d "/etc/runit/runsvdir/${d}" ] || {
      6   echo "runsvchdir: no such runlevel: ${d}" >&2
      7   exit 1
      8 }
      9 ln -sfn "${d}" /etc/runit/runsvdir/current