if test "$1" = "on" then exit 0 fi if test "$1" = "off" then exit 0 fi echo "error: $2 -- should be 'on' or 'off'" exit 1