#!/bin/sh if command -v zzz >/dev/null; then zzz "$@" else echo 'mem' > /sys/power/state fi