#!/bin/sh -e

if [ ! -f /.THIS_IS_THE_FAI_NFSROOT ]; then
    echo "ERROR: The package fai-nfsroot can only be installed inside the nfsroot."
    exit 1
fi

dpkg-divert --package fai-nfsroot --add --rename /etc/init.d/rcS

#DEBHELPER#

exit 0
