#!/bin/sh
#
#    Copyright (c) 2006 Brocade Communications Systems, Inc.
#    All rights reserved.
#
#    File name:   password
#    Module name: fabos/bfos/setup
#
#    This script is wrapper to the traditional /bin/passwd command
#    to sync up both partitions if any password change occurs.
#

/bin/passwd $1
if [ $? -eq 0 ] ; then
	/bin/cp2 /etc/passwd /mnt/etc/passwd
	/bin/sync
else
	exit 1
fi
