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 863F5DC6A8A for ; Sat, 29 Jun 2013 20:41:40 +0000 (UTC) Received: from compute6.internal (compute6.nyi.mail.srv.osa [10.202.2.46]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 1E24021107 for ; Sat, 29 Jun 2013 16:41:32 -0400 (EDT) Received: from frontend2.nyi.mail.srv.osa ([10.202.2.161]) by compute6.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=JkAv0+cwoKOX5TrjD7sNv6jT4 w8=; b=J0NsF19rXkYEfe/ZAks9NGkG14LzpbWCxSyh26ThdI+ZPFt5sZkwzC/Rr ZXFGIvfnFkusudPCAob29gWbMxlxogy6jBQq6ApzZU2Hq+X/qyNuvslHpdZJs2ld iknf0HxiSLX2AENEqoD8AyNSTT+pPE8Tdg9MsQ+BAZ749cFNd4= X-Sasl-enc: 0+HmON4OaD0CN5t2NGEuKVscBHCb6VTs2TiIrmozyanR 1372538491 Received: from localhost (unknown [69.86.161.244]) by mail.messagingengine.com (Postfix) with ESMTPA id A304B68048E for ; Sat, 29 Jun 2013 16:41:31 -0400 (EDT) From: Dubiousjim To: alpine-devel@lists.alpinelinux.org Subject: [alpine-devel] [PATCH 5/9] main/syslinux: add reboot entry Date: Sat, 29 Jun 2013 16:41:25 -0400 Message-Id: <7536bea479a93af22260b90c7d221d2fc470ea3f.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: 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 | 4 ++++ 2 files changed, 11 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..5a36a1f 100644 --- a/main/syslinux/update-extlinux.conf +++ b/main/syslinux/update-extlinux.conf @@ -42,3 +42,7 @@ 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 + +# if you copy /usr/share/syslinux/reboot.c32 to /boot/, a menu entry will be auto-generated for it + +# a menu entry will also be auto-generated for /boot/memtest, if you download it and install it -- 1.8.3.1 --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---