X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id B2E7EDC5483 for ; Sat, 29 Jun 2013 20:41:40 +0000 (UTC) Received: from compute2.internal (compute2.nyi.mail.srv.osa [10.202.2.42]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 1E0B521100 for ; Sat, 29 Jun 2013 16:41:32 -0400 (EDT) Received: from frontend2.nyi.mail.srv.osa ([10.202.2.161]) by compute2.internal (MEProxy); Sat, 29 Jun 2013 16:41:34 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=from:to:subject:date:message-id :in-reply-to:references; s=smtpout; bh=evMtvKCuk6kBxahD6sEB5byVc iw=; b=Q4WwmJIZwp1vpgtJIOYWD16MoqayARWY0UTLFKDuOYtuIo5B8/b7RSpnt M1Hw+RfNYjIfqSCXl/7JbNyO8Jxa0P86UkjMjcNK3vdLmOVnvBx6WElp8ceMHv8K xOHkqIc5UdSBnS4jPKKzTlaDyQHbMSI4ZYTH8UwXm9j77sqzSw= X-Sasl-enc: 0+H1O8sMZyMdMI5uN2EuKVscBHCb6VTs2TiIrmozyanR 1372538491 Received: from localhost (unknown [69.86.161.244]) by mail.messagingengine.com (Postfix) with ESMTPA id 5114168048D for ; Sat, 29 Jun 2013 16:41:31 -0400 (EDT) From: Dubiousjim To: alpine-devel@lists.alpinelinux.org Subject: [alpine-devel] [PATCH 4/9] main/syslinux: reorganize menu layout Date: Sat, 29 Jun 2013 16:41:24 -0400 Message-Id: <0434a4f3a3c2562757089f9d1f95704a61a19246.1372538321.git.dubiousjim@gmail.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: References: X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: 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 @@ -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 -- 1.8.3.1 --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---