slackbuilds/UNUSED/a/grub2/50_cycojesus
2016-09-18 22:25:38 +02:00

13 lines
486 B
Bash
Executable file

#!/bin/sh
#exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
for kernel in /boot/2.* ; do
if [ -e $kernel/bzImage ] ; then
echo "menuentry \"Slackware $(basename $kernel)\" {"
echo " set root=(hd0,2)"
echo " linux /boot/$kernel/bzImage root=/dev/sda6 ro resume=/dev/sda5"
echo "}"
fi
done