Merge "Support sysv init system used by Debian Wheezy"

This commit is contained in:
Jenkins 2016-12-20 03:31:30 +00:00 committed by Gerrit Code Review
commit f9055b938d
2 changed files with 10 additions and 2 deletions

View file

@ -22,8 +22,12 @@ case "$DIB_INIT_SYSTEM" in
# let dib-init-system's postinstall handle enabling init scripts
exit 0
;;
sysv)
# ssh is enabled by default, nothing to do
exit 0
;;
*)
echo "Unsupported init system"
echo "Unsupported init system $DIB_INIT_SYSTEM"
exit 1
;;
esac

View file

@ -24,8 +24,12 @@ case "$DIB_INIT_SYSTEM" in
# let dib-init-system's postinstall handle enabling init scripts
exit 0
;;
sysv)
# nothing to do
exit 0
;;
*)
echo "Unsupported init system"
echo "Unsupported init system $DIB_INIT_SYSTEM"
exit 1
;;
esac