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