#!/bin/bash


echo "Do you want:"
echo -e "1.NT\n2.TE"
read nt
echo
echo "Do you want:"
echo -e "1.PTP\n2.PTMP"
read ptp
echo

#dss1
bits=2 

if [ $nt = 1 ] ; then
	bits=$(($bits + 2**4))
	layermask="0x3"
fi

if [ $ptp = 1 ] ; then
	bits=$(($bits + 2**5))
	layermask="0xf"
fi

printf "protocol must be: 0x%x\n" $bits
echo "layermask must be: $layermask"

