PREIN
/bin/sh
grep -q '^alias autofs autofs4' /etc/modules.conf || { echo "alias autofs autofs4" >> /etc/modules.conf }
PREUN
/bin/sh
/usr/share/rpm-helper/del-service autofs $1 autofs
POSTIN
/bin/sh
/usr/share/rpm-helper/add-service autofs $1 autofs
POSTUN
/bin/sh
if [ $1 = "0" ]; then # removal perl -ni -e 'print unless ( m!^.*autofs.*$! || /^\s*$/)' /etc/modules.conf fi