#!/sbin/sh

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

seteeprom()
{
    eeprom "$1=$2"
}
geteeprom()
{
    expr "`eeprom $1`" : "$1="'\(.*\)'
}

if [ `geteeprom diag-switch?` = true ]
then
    seteeprom diag-switch? false
    echo "resetting diag-switch"
fi
if [ `geteeprom security-mode` != none ]
then
    touch $newroot/security-full
    seteeprom security-mode command
    echo security mode set to full.
fi
