1 2 3 4 5 6 7 8 9
#!/bin/sh echo "Adding poweroff option." >&2 cat << EOF menuentry 'Poweroff' --class tool --id poweroff { halt } EOF