Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KTDMp-00069y-Qv for mharc-grub-devel@gnu.org; Wed, 13 Aug 2008 06:14:12 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KTDMk-000696-RH for grub-devel@gnu.org; Wed, 13 Aug 2008 06:14:07 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KTDMh-00068Y-34 for grub-devel@gnu.org; Wed, 13 Aug 2008 06:14:05 -0400 Received: from [199.232.76.173] (port=38522 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KTDMg-00068N-BC for grub-devel@gnu.org; Wed, 13 Aug 2008 06:14:02 -0400 Received: from smtp-vbr17.xs4all.nl ([194.109.24.37]:3099) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KTDMf-00036W-Rg for grub-devel@gnu.org; Wed, 13 Aug 2008 06:14:02 -0400 Received: from localhost.localdomain (249-174.surfsnel.dsl.internl.net [145.99.174.249]) by smtp-vbr17.xs4all.nl (8.13.8/8.13.8) with ESMTP id m7DAE05E096392 for ; Wed, 13 Aug 2008 12:14:01 +0200 (CEST) (envelope-from mgerards@xs4all.nl) From: Marco Gerards To: The development of GRUB 2 References: <87zlnkd9w8.fsf@xs4all.nl> <87zlnj6z28.fsf@xs4all.nl> <877ialdhtz.fsf@xs4all.nl> Mail-Copies-To: mgerards@xs4all.nl Date: Wed, 13 Aug 2008 12:17:36 +0200 In-Reply-To: (bean123ch@gmail.com's message of "Wed, 13 Aug 2008 09:46:15 +0800") Message-ID: <8763q59q2n.fsf@xs4all.nl> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by XS4ALL Virus Scanner X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.6-4.9 Subject: Re: [PATCH] New command checktime X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Aug 2008 10:14:08 -0000 Hi, Bean writes: > > Oh, please take a look at my other post "Idea: implementation of the > password command", it sugguest to implement password with hooks, for > example, reading $GET_PASSWORD would prompt the user for password and > return the encrypted form. > > BTW, I'm thinking perhaps it's better to move the hook function from > datetime.mod to datehook.mod, and datetime.mod only contain > grub_get_datetime, grub_set_datetime, grub_get_weekday and > grub_get_weekday_name. Module like date.mod only need the datetime > functions, it's a little wired to install the hook as a side effect. Fine for me :-) -- Marco