stop unwanted generic

Upload: smaikol

Post on 04-Feb-2018

215 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/21/2019 Stop Unwanted Generic

    1/1

    #!/bin/sh

    #Strip down to just the port number# Import serial port variableport=`config -g config.ports | grep "$1" | sed -r 's/([^0-9]*([0-9]*)){1}.*/\2/'`

    # 0 pad ports 1-9dev=`printf "%02d" $port`

    #Execute three CTRL+C to Cancel Command and display message.printf "\003\003" > /dev/port${dev}

    echo -en "

    ################################################### #### THE COMMAND YOU ENTERED IS NOT VALID #### #### PLEASE AVOID DANGEROUS COMMANDS FOR #### #### THE LAB #### ###################################################" > /dev/port${dev}exit 0