#! /bin/sh
#
# hwtest: manufacturing test program
#
# description: Interactive peripheral test
#              start at boot time.
#

# See how we were called.
case "$1" in
  start)
    if [ -x /sred/root/hwtest/hwtest ] 
    then                
	   # Run once until user exists but block furter startup scripts. 
       # When hwtest exists, this script is then disabled from 03-random
       /sred/root/hwtest/hwtest -f
       # Stop hwtest startup and boot-block on the next boot ...
       chmod -x /etc/platform/03-hwtest
       sync
    fi   
    ;;
  *)
    exit 2
esac

