From 5e1a84ab74d5e97582427f016f291a8c11e66f99 Mon Sep 17 00:00:00 2001 From: jutteau Date: Fri, 11 May 2007 18:10:19 +0000 Subject: Completion du script de mise à jour de la pc-104 : * Ajout des sources de busybox dans ./conf/busybox/ * Ajout d'un fichier réclamé par les script dans ./conf/busybox.links --- i/pc104/initrd/conf/busybox/shell/ash_test/zecho.c | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 i/pc104/initrd/conf/busybox/shell/ash_test/zecho.c (limited to 'i/pc104/initrd/conf/busybox/shell/ash_test/zecho.c') diff --git a/i/pc104/initrd/conf/busybox/shell/ash_test/zecho.c b/i/pc104/initrd/conf/busybox/shell/ash_test/zecho.c new file mode 100644 index 0000000..621d06d --- /dev/null +++ b/i/pc104/initrd/conf/busybox/shell/ash_test/zecho.c @@ -0,0 +1,39 @@ +/* zecho - bare-bones echo */ + +/* Copyright (C) 1996-2002 Free Software Foundation, Inc. + + This file is part of GNU Bash, the Bourne Again SHell. + + Bash is free software; you can redistribute it and/or modify it under + the terms of the GNU General Public License as published by the Free + Software Foundation; either version 2, or (at your option) any later + version. + + Bash is distributed in the hope that it will be useful, but WITHOUT ANY + WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + for more details. + + You should have received a copy of the GNU General Public License along + with Bash; see the file COPYING. If not, write to the Free Software + Foundation, 59 Temple Place, Suite 330, Boston, MA 02111 USA. */ + +#include +#include + +int +main(argc, argv) +int argc; +char **argv; +{ + argv++; + + while (*argv) { + (void)printf("%s", *argv); + if (*++argv) + putchar(' '); + } + + putchar('\n'); + exit(0); +} -- cgit v1.2.3