PREIN
/bin/sh
getent group autotest >/dev/null || groupadd -r autotest getent passwd autotest >/dev/null || \ useradd -r -g autotest -d /var/lib/autotest -s /bin/bash \ -c "User account for the autotest harness" autotest exit 0
POSTIN
/bin/sh
if [ "$1" -eq 1 ] ; then su -c "ssh-keygen -q -t rsa -N '' -f /var/lib/autotest/.ssh/id_rsa" - autotest || exit 0 fi