#!/bin/sh

echo -n "Enter device number: "
exec 2>/dev/null
if ! read device; then exit 1; fi
if ! [ "$device" -ge 1 ]; then exit 1; fi
if   [ "$device" -gt 512 ]; then exit 1; fi
device=$((10000 + $device))
telnet localhost $device
