summaryrefslogtreecommitdiff
path: root/debian/linuxcnc.postinst
blob: fa272c207f91e3050f4e16a7013664394ca30ac7 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

#DEBHELPER#

[ -x /etc/init.d/udev ] && /etc/init.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