#!/bin/sh # Change these VARS to your license. SPID="NAC3355-SVR" VPID="V01" Serial="123456" Platform="CAM" # Nothing below here needs to change. RUN=0 function usage () { echo 'Ha ha!' } function spid() { echo $SPID RUN=1 } function vpid() { echo $VPID RUN=1 } function serial() { echo $Serial RUN=1 } function platform() { echo $Platform RUN=1 } #Get options from the command line. while getopts "::qpvsth" option do case $option in q ) exit 0 ;; p ) spid ;; v ) vpid ;; s ) serial ;; t ) platform ;; h ) usage;exit 0 ;; esac done if [ $RUN -eq 0 ] then echo "SPID: $SPID" echo "VPID: $VPID" echo "Serial: $Serial" fi