#!/bin/sh -e

test ! -f /etc/default/init && exit

. /etc/default/init

test -z $INIT && exit

test ! -x $INIT -a ! -e /run/init-select-nocheck && \
        echo "error: $INIT either does not exist or is not executable" && \
        exit 1 || true

echo "init=$INIT"
