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 EC0C9DC1451 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 C313B20F31 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=uB3R3ACoRx/4+IRf2cuGhTAJH HU=; b=Tf/E5uSff8V5f/VBbcSuGytsKKiYIkOYJFQps79PT/uyfve01Hx3t0vUp aGFCZl3ILVsmhUf1RT7eGjvbRT2GmEZy2xvlgHMfxu+GHksHlzTovWOKOyOUgkNQ yyrlP2f21K/hnJ0cvTdaLThuhdguIq7r2ToJNCyxLXKF6ObLWM= X-Sasl-enc: XzoapN57g0wvM+oj7NJ3csd7s5ZUq20BKvKXhP1jrDVD 1372318343 Received: from localhost (unknown [69.86.161.244]) by mail.messagingengine.com (Postfix) with ESMTPA id 9AC77680480 for ; Thu, 27 Jun 2013 03:32:23 -0400 (EDT) From: Dubiousjim To: alpine-devel@lists.alpinelinux.org Subject: [alpine-devel] [PATCH 5/8] main/syslinux: add reboot entry Date: Thu, 27 Jun 2013 03:32:18 -0400 Message-Id: <511cff4ffaf89ac9d5316663d6853a69b0d57368.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: We don't install /boot/reboot.c32, but if it's present (it can be copied from /usr/share/syslinux/reboot.c32), we add a menu entry for it---just like with memtest. Add a comment to /etc/update-extlinux.conf stating this. It'd already be possible to get a reboot entry using the /etc/update-extlinux.d/ folder, but this patch provides a more intelligent framework with nicer layout. The syslinux sourceball also provides a shutdown module, but I couldn't get this to work and looking at the sources reveals it to be for machines with APM enabled. Not sure how many machines that applies to anymore. --- main/syslinux/update-extlinux | 7 +++++++ main/syslinux/update-extlinux.conf | 3 +++ 2 files changed, 10 insertions(+) diff --git a/main/syslinux/update-extlinux b/main/syslinux/update-extlinux index 0dc3601..1c5fc5c 100755 --- a/main/syslinux/update-extlinux +++ b/main/syslinux/update-extlinux @@ -151,6 +151,13 @@ if [ -f "/boot/memtest" ]; then echo "" >> $conf.new fi +if [ -f "/boot/reboot.c32" ]; then + everbose "Found reboot" + echo "LABEL reboot" >> $conf.new + echo " MENU LABEL Reboot" >> $conf.new + echo " COM32 reboot.c32" >> $conf.new + echo "" >> $conf.new +fi if [ "$overwrite" != "1" ]; then diff --git a/main/syslinux/update-extlinux.conf b/main/syslinux/update-extlinux.conf index 59f9e60..7be434b 100644 --- a/main/syslinux/update-extlinux.conf +++ b/main/syslinux/update-extlinux.conf @@ -42,3 +42,6 @@ default=grsec # options to hand to xen hypervisor, useful ones are: # dom0_mem=256M (give domain-0 environment 256M ram) xen_opts=dom0_mem=256M + +# neither of /boot/memtest or /boot/reboot.c32 are installed by default +# but entries for them will be auto-generated if they're present -- 1.8.3.1 --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---