#!/bin/sh echo "Adding poweroff option." >&2 cat << EOF menuentry 'Poweroff' --class tool --id poweroff { halt } EOF