[Suzaku:00372] Re: suzakuの時計機能について

Tetsuya Ohkawa email@hidden
2005年 7月 14日 (木) 19:55:06 JST


大川です。

強引な解決策ですが、msh の場合、
以下の patch をあててもらうと設定できます。

ex.)
# date -s '2005.7.14-20:0:0'
Thu Jul 14 20:00:00 JST 2005

--- user/busybox/msh.c.org 2005-07-08 13:26:20.000000000 +0900
+++ user/busybox/msh.c 2005-07-12 12:15:54.000000000 +0900
@@ -300,6 +300,7 @@
static struct var *path; /* search path for commands */
static struct var *shell; /* shell to interpret command files */
static struct var *ifs; /* field separators */
+static struct var *tz; /* timezone */

static int yyparse(void);
static struct var *lookup(char *n);
@@ -450,6 +451,7 @@
*/
static char shellname[] = "/bin/sh";
static char search[] = ":/bin:/usr/bin";
+static char tzone[] = "JST-9";

static void (*qflag) (int) = SIG_IGN;

@@ -516,6 +518,11 @@
if (path->value == null)
setval(path, search);
export(path);
+
+ tz = lookup("TZ");
+ if (tz->value == null)
+ setval(tz, tzone);
+ export(tz);

ifs = lookup("IFS");
if (ifs->value == null)



村上 健次 wrote:

>大川様
>
>村上です。お世話になります。
>
>回答ありがとうございます。
>
># date -s "1990.5.5-10:15"
>上記の設定はできました。
>
># date -s "1993.5.5-10:15"
>date: invalid date `1993.5.5-10:15'
>1993年以降を設定しようとするとだめなようですね。
>
>  
>



suzaku メーリングリストの案内