#! /bin/sh
set -e

# ask for device name here
echo "BottleRocket requires the use of a serial device to access the"
echo "X10 FireCracker interface. Please enter the device you wish"
echo "to use below."
echo ""
echo -n "[ttyS0]? "
read device

if [ "x$device" = "x" ]; then
  device="ttyS0"
fi
device=${device##/dev/}

ln -sf $device /dev/firecracker

echo -e "\nThis may be run at any time from /usr/sbin/brconfig"
