#!/bin/sh

PATH=/bin:/usr/bin:/sbin:/usr/sbin
export PATH

[ -x /usr/sbin/debian-edu-fsautoresize ] || exit 0 
[ -x /usr/bin/innetgr ] || exit 0

# Automatically extend full LVM volumes if the host is a member of the
# fsautoresize-hosts netgroup.
hostname=$(uname -n)
if innetgr -h $hostname fsautoresize-hosts ; then
    debian-edu-fsautoresize -n
fi
