Mail archive
alpine-devel

Re: [alpine-devel] [PATCH 4/8] main/syslinux: reorganize menu layout

From: Natanael Copa <ncopa_at_alpinelinux.org>
Date: Fri, 28 Jun 2013 16:41:13 +0200

On Thu, 27 Jun 2013 03:32:17 -0400
Dubiousjim <dubiousjim_at_gmail.com> wrote:

> Add a blank line between any entries added from /etc/update-extlinux.d/*.
>
> Move the memtest entry (if any) after a separator line, below these.
> ---
> main/syslinux/update-extlinux | 14 +++++++++-----
> 1 file changed, 9 insertions(+), 5 deletions(-)
>
> diff --git a/main/syslinux/update-extlinux b/main/syslinux/update-extlinux
> index 014df1b..0dc3601 100755
> --- a/main/syslinux/update-extlinux
> +++ b/main/syslinux/update-extlinux
> _at_@ -134,20 +134,24 @@ for kernel in $(find /boot -name "vmlinuz-*" -type f); do
> lst=$(($lst + 1))
> done
>
> +everbose "$lst entries found."
> +
> +for entry in /etc/update-extlinux.d/*; do
> + [ -f "$entry" ] && { cat $entry; echo ""; } >> $conf.new
> +done
> +
> +echo "MENU SEPARATOR" >> $conf.new
> +echo "" >> $conf.new
> +
> if [ -f "/boot/memtest" ]; then
> everbose "Found memtest86+: /boot/memtest"
> echo "LABEL memtest" >> $conf.new
> echo " MENU LABEL Memtest86+" >> $conf.new
> echo " KERNEL memtest" >> $conf.new
> echo "" >> $conf.new
> - lst=$(($lst + 1))
> fi
>
> -everbose "$lst entries found."
>
> -for entry in /etc/update-extlinux.d/*; do
> - [ -f "$entry" ] && cat $entry >> $conf.new
> -done
>
> if [ "$overwrite" != "1" ]; then
> exit 0

ACK

-nc


---
Unsubscribe:  alpine-devel+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-devel+help_at_lists.alpinelinux.org
---
Received on Fri Jun 28 2013 - 16:41:13 UTC