#!/bin/sh
# chkconfig: 2345 99 01
### BEGIN INIT INFO
# Provides:          pwconv
# Required-Start:    $local_fs
# Required-Stop:     
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start pwconv at boot time
# Description:       Enable service provided by pwconv.
# X-Start-Before:    x fb
# X-Stop-After:      
# X-Timesys-Start-Number:  99
# X-Timesys-Stop-Number:  01
### END INIT INFO


PATH=/usr/bin:/usr/sbin:/bin:/sbin

case "$1" in
	'start')
		if [ ! -f /etc/shadow ]; then
			pwconv
		fi
		if [ ! -f /etc/gshadow ]; then
			grpconv
		fi
	;;
esac
