#! /bin/bash

error=0; trap 'error=$(($?>$error?$?:$error))' ERR # save maximum error code

# set root password

if [ -n "$ROOTPW" ] ; then
    $ROOTCMD usermod -p "$ROOTPW" root
fi

exit $error
