#!/bin/sh

# Copyright (c) 2010-2011, by Broadcom, Inc.                                    
# All Rights Reserved.                                                     

PATH="${BASEDIR}/usr/bin:${BASEDIR}/usr/sbin:${PATH}"
export PATH 

DRV=bge

REM_DRV=/usr/sbin/rem_drv

if [ "${BASEDIR}" = "/" ]; then
    # On a running system, modify the system files and attach the driver.
    REM_DRV_FLAGS=""
else
    # On a client, modify the system files relative to BASEDIR.
    REM_DRV_FLAGS="-b ${BASEDIR}"
fi

${REM_DRV} ${REM_DRV_FLAGS} ${DRV}

exit 0

