- ## see if nvsetenv or nvram exists and is executable
- for program in nvsetenv nvram ; do
- if (command -v $program > /dev/null 2>&1) && [ -x `command -v $program` ] ; then
- NVRAM_PROG=$program
- break
- fi
- done
- if [ -z "$NVRAM_PROG" ] ; then
- nonvram=1
- echo 1>&2 "$PRG: Warning: \`nvsetenv' and \`nvram' could not be found, nvram will not be updated"
- fi
+ ## see if nvsetenv exists and is executable
+ if (command -v nvsetenv > /dev/null 2>&1) ; then
+ [ -x `command -v nvsetenv` ] || MISSING=1 ; else MISSING=1