linuxOS_D21X/package/third-party/skeleton-init-sysv/skeleton/usr/bin/p
2025-06-05 14:33:02 +08:00

22 lines
323 B
Bash
Executable File

#!/bin/sh
if [ $# -eq 1 ]; then
ADDR=$1
CNT=16
elif [ $# -eq 2 ]; then
ADDR=$1
CNT=$2
elif [ $# -ne 2 ]; then
echo Please input as follow:
echo " $0 PhyAddress Len"
exit 1
fi
which reg-dump > /dev/null
if [ $? -ne 0 ]; then
pr_err "The command 'reg-dump' does not exist!"
exit 100
fi
reg-dump -a $ADDR -c $CNT