X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id E7744DC1408 for ; Thu, 27 Jun 2013 07:32:31 +0000 (UTC) Received: from compute4.internal (compute4.nyi.mail.srv.osa [10.202.2.44]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 777DA20EE5 for ; Thu, 27 Jun 2013 03:32:23 -0400 (EDT) Received: from frontend2.nyi.mail.srv.osa ([10.202.2.161]) by compute4.internal (MEProxy); Thu, 27 Jun 2013 03:32:23 -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=iS+vbUuidZGaUQ/kH2ALofZz+PzRL15rpjoi8KPbCDJZRDuGoy2OFsj8O 3Nd8L+Gwo5u6zImBKDIUBdBjqWr91UW4OtANNAyfVtpzBANd/UF3iuPfxjYyb+LR tQMTVsjDmazDxlfWRCvi0e42sGZIqMTfDbwJZOPewzjFnCdW/E= X-Sasl-enc: XzoepNhsg10wN+Aj9tJ3csd7s5ZUq20BKvKXhP1jrDVD 1372318343 Received: from localhost (unknown [69.86.161.244]) by mail.messagingengine.com (Postfix) with ESMTPA id 4D3EB68021D for ; Thu, 27 Jun 2013 03:32:23 -0400 (EDT) From: Dubiousjim To: alpine-devel@lists.alpinelinux.org Subject: [alpine-devel] [PATCH 4/8] main/syslinux: reorganize menu layout Date: Thu, 27 Jun 2013 03:32:17 -0400 Message-Id: <73b486bf32bcfc437d016f53031fcef21812a767.1372318132.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 ---