1#!/bin/sh 2 3DRIVER_TITLE="USBVision" 4DRIVER_NAME=usbvision 5 6answer=`alert "Do you really want to install the $DRIVER_TITLE driver?" "No" "Yes"` 7if [ $answer == "No" ]; then 8 exit 9fi 10 11/boot/beos/bin/install -d ~/config/add-ons/kernel/drivers/bin/ 12/boot/beos/bin/install -d ~/config/settings/kernel/drivers/ 13/boot/beos/bin/install -d ~/config/add-ons/kernel/drivers/dev/video/ 14/boot/beos/bin/install `dirname $0`/$DRIVER_NAME ~/config/add-ons/kernel/drivers/bin/ 15/boot/beos/bin/cp `dirname $0`/$DRIVER_NAME.settings.sample ~/config/settings/kernel/drivers/$DRIVER_NAME 16 17mimeset ~/config/add-ons/kernel/drivers/bin/$DRIVER_NAME 18mimeset ~/config/settings/kernel/drivers/$DRIVER_NAME 19 20ln -sf ../../bin/$DRIVER_NAME ~/config/add-ons/kernel/drivers/dev/video/$DRIVER_NAME 21 22rescan $DRIVER_NAME 23 24alert "The $DRIVER_TITLE driver has been installed in your system." 25