#!/bin/sh
#
#  Configure the controller so that on next boot, the "backup" partition
#  set will be used.
#  -- properly configure /etc/fstab on the "backup" root file system.
#  -- write to the next u-boot environment to mount the "backup" partition set.
#
export PATH="$PATH:/usr/bin:/bin:/sbin:/usr/sbin:/mnt/apps/bin"

/sbin/changeover_opin
if [ $? -eq 0 ]; then
    /sbin/rollback_opin
    if [ $? -eq 0 ]; then
        reboot
        exit 0
    fi
fi
exit 1
