Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KT5RN-0002kT-KH for mharc-grub-devel@gnu.org; Tue, 12 Aug 2008 21:46:21 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KT5RL-0002js-T2 for grub-devel@gnu.org; Tue, 12 Aug 2008 21:46:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KT5RK-0002jU-Gu for grub-devel@gnu.org; Tue, 12 Aug 2008 21:46:19 -0400 Received: from [199.232.76.173] (port=57370 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KT5RK-0002jR-7o for grub-devel@gnu.org; Tue, 12 Aug 2008 21:46:18 -0400 Received: from ti-out-0910.google.com ([209.85.142.190]:30036) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KT5RK-00087e-3X for grub-devel@gnu.org; Tue, 12 Aug 2008 21:46:18 -0400 Received: by ti-out-0910.google.com with SMTP id u5so1319806tia.10 for ; Tue, 12 Aug 2008 18:46:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=ULO2LQKdLn2DETMxfNUKBGjaONXgXhyKEVVJY+TznU8=; b=XVmkqG4iXBhi1r0L//ausQ6LiN8Jsd84xleB49CgyCGM227/tP3+DMrpKzZjgHuH7f EiEdbVBoe208DZmfuU2E0uHcxSu6NU5j4FVL+RH0ciMUW+5jn537KaDt7e2SEOav4fLj 7zQHFMyo4SqtFUABeGZhls0lee3r9iDgpVkTc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=g0PbUdWfvkn0ur/HWBbkL5KgDsvmCyi2dD3Euua89Wlsny/jFPFS1cZz9+Zl6EPKHa vrm0WJNkUoLPuo/JgDwQ2e3hgPOvDg2bXqr2eTJNC3fptCvJjQNKBBmewQcda1SAW3d6 SbB32iUs6jOopd1C7UPwDevnCdx06ZE8bO3is= Received: by 10.110.57.6 with SMTP id f6mr10204757tia.38.1218591975600; Tue, 12 Aug 2008 18:46:15 -0700 (PDT) Received: by 10.110.16.5 with HTTP; Tue, 12 Aug 2008 18:46:15 -0700 (PDT) Message-ID: Date: Wed, 13 Aug 2008 09:46:15 +0800 From: Bean To: "The development of GRUB 2" In-Reply-To: <877ialdhtz.fsf@xs4all.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <87zlnkd9w8.fsf@xs4all.nl> <87zlnj6z28.fsf@xs4all.nl> <877ialdhtz.fsf@xs4all.nl> X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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 01:46:20 -0000 On Wed, Aug 13, 2008 at 5:49 AM, Marco Gerards wrote: > Bean writes: > >> On Tue, Aug 12, 2008 at 5:07 AM, Marco Gerards wrote: >>> >>>> * commands/date.c: New file. >>>> >>>> * commands/datetime.c: Likewise. >>> >>> This is not a command. But I do not really know a good place for this >>> module... >> >> How about the /hook directory ? > > Perhaps? Do you have suggestions what we can place there, besides > this? > > Otherwise the patch looks fine to me :-) Hi, 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. -- Bean