#!/bin/sh
set -e

#DEBHELPER#

invoke-rc.d udev restart

if [ -f /etc/security/limits.conf ]; then
    if ! grep -q "EMC2" /etc/security/limits.conf; then
	echo '* - memlock 20480 #EMC2' >> /etc/security/limits.conf
    fi
fi
