#!/bin/sh

. /etc/init.d/functions.sh

case $1 in
	start|restart)
		begin "Checking the for the existence of a shadow file..."
		if [ ! -s /etc/shadow ]; then
			information "Converting /etc/passwd to /etc/shadow..."
			pwconv || error "Conversion failed!"
		fi
		end $?
		;;
	stop)
		;;
	*)
		error "Usage: $0 start|stop|restart"
		;;
esac
