inject (295B)
1 # 2 # This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. 3 # 4 # Copyright 2007-2019 Broadcom Inc. All rights reserved. 5 6 if [ -z "$1" ]; then 7 echo >&2 "Usage: inject packetfile" 8 exit 1 9 fi 10 11 cp $1 $1.tmp 12 mv $1.tmp pkt