#!/bin/bash
. /opt/nextpi/bin/func/nextpi-globals

echo
echo "All aboard the train to dongletown..."

if [ -a "/dev/sda1" ]; then
	echo "Found Dongle"
	mount -n /dev/sda1 /mnt/dongle
else
	if [ -a "/dev/sda" ]; then
		echo "Found potentially wrongly formatted Dongle, checking anyway..."
		mount -n /dev/sda /mnt/dongle
	else
		echo "This train couldn't find dongletown..."
	fi
fi
