summary refs log tree commit diff
path: root/debian/runit.preinst
blob: 2772b899be5a472ec10627c204e7f2e18326ab8e (plain) (blame)
1
2
3
4
5
6
#!/bin/sh
set -e

test "$1" = 'upgrade' || exit 0
test ! -x /sbin/runit || test -e /sbin/runit.old || \
  ln /sbin/runit /sbin/runit.old