#!/bin/bash
#
# TI 3410/5052 USB Serial Driver Hotplug
#
# Copyright (C) 2004 Texas Instruments
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# For questions or problems with this driver, contact Texas Instruments
# technical support, or Al Borchers <alborchers@steinerpoint.com>, or
# Peter Berger <pberger@brimson.com>.
#

BOOT_CONFIG=1
ACTIVE_CONFIG=2

CONFIG_PATH=/sys${DEVPATH%/?*}/bConfigurationValue

if test "$ACTION" = "add"
then
	if test `cat $CONFIG_PATH` -eq $BOOT_CONFIG
	then
		echo $ACTIVE_CONFIG > $CONFIG_PATH
	fi
fi
