#!/bin/sh if [ $# -ne 2 ]; then echo Please input as follow: echo " $0 PhyAddress Value" exit 1 fi which devmem > /dev/null if [ $? -ne 0 ]; then pr_err "The command 'devmem' does not exist!" exit 100 fi devmem $1 32 $2