wok-tiny rev 0

Add busybox
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 01 09:36:49 2011 +0100 (2011-02-01)
parents
children 5d8744871068
files busybox/receipt busybox/stuff/applications/pcan.desktop busybox/stuff/applications/top.desktop busybox/stuff/busybox-1.18-cmdline.u busybox/stuff/busybox-1.18-printable.u busybox/stuff/busybox-1.18-ris.u busybox/stuff/busybox-1.18-stat.u busybox/stuff/busybox-1.18-tar.u busybox/stuff/busybox-1.18-zmodules.u busybox/stuff/busybox-1.18.config busybox/stuff/busybox.conf busybox/stuff/daemon busybox/stuff/dnsd.conf busybox/stuff/httpd_helper.sh busybox/stuff/inetd.conf busybox/stuff/init busybox/stuff/udhcp.script busybox/stuff/udhcpd.conf busybox/stuff/zcip.script
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/busybox/receipt	Tue Feb 01 09:36:49 2011 +0100
     1.3 @@ -0,0 +1,172 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="busybox"
     1.7 +VERSION="1.18.2"
     1.8 +CATEGORY="base-system"
     1.9 +SHORT_DESC="Busybox combines tiny versions of many common UNIX utilities."
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +[ -n "$TARGET" ] || TARGET="i486"
    1.12 +DEPENDS="slitaz-base-files"
    1.13 +BUILD_DEPENDS="bzip2 uclibc-cross-compiler-$TARGET"
    1.14 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.15 +WEB_SITE="http://www.busybox.net/"
    1.16 +WGET_URL="http://www.busybox.net/downloads/$TARBALL"
    1.17 +CONFIG_FILES="/etc/dnsd.conf /etc/inetd.conf /etc/udhcpd.conf /etc/resolv.conf"
    1.18 +
    1.19 +apply_bb_patchs()
    1.20 +{
    1.21 +    cd $src
    1.22 +    while read file; do
    1.23 +    	[ -f done.$file ] && continue
    1.24 +    	echo "Apply $file..."
    1.25 +    	patch -p1 < ../stuff/$PACKAGE-${VERSION%.*}-$file || return 1
    1.26 +	touch done.$file
    1.27 +    done <<EOT
    1.28 +tar.u
    1.29 +stat.u
    1.30 +ris.u
    1.31 +zmodules.u
    1.32 +printable.u
    1.33 +cmdline.u
    1.34 +EOT
    1.35 +    cp ../stuff/$PACKAGE-${VERSION%.*}.config .config
    1.36 +    var="CONFIG_CROSS_COMPILER_PREFIX"
    1.37 +    sed -i "s/.*$var.*/$var=\"uclibc-$TARGET-\"/" .config
    1.38 +}
    1.39 +
    1.40 +# Rules to compile & install the temporary toolchain.
    1.41 +cook_tmp_toolchain()
    1.42 +{
    1.43 +    { apply_bb_patchs && 
    1.44 +    make oldconfig &&
    1.45 +    make &&
    1.46 +    make CONFIG_PREFIX=/tools install
    1.47 +    } || return 1
    1.48 +    echo "Chmod 4755 on busybox binary..."
    1.49 +    chmod 4755 /tools/bin/busybox
    1.50 +}
    1.51 +
    1.52 +# Rules to configure and make the package.
    1.53 +compile_rules()
    1.54 +{
    1.55 +    { apply_bb_patchs && 
    1.56 +    make oldconfig &&
    1.57 +    make &&
    1.58 +    make install
    1.59 +    } || return 1
    1.60 +    echo "Chmod 4755 on busybox binary..."
    1.61 +    chmod 4755 _install/bin/busybox
    1.62 +}
    1.63 +
    1.64 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.65 +genpkg_rules()
    1.66 +{
    1.67 +    cp -a $src/_install/* $fs
    1.68 +    rm -f $fs/bin/bbconfig $fs/usr/bin/ar
    1.69 +    mkdir -p $fs/etc/init.d
    1.70 +    # Busybox config files.
    1.71 +    cp stuff/busybox.conf $fs/etc
    1.72 +    chmod 600 $fs/etc/busybox.conf
    1.73 +    cp stuff/dnsd.conf $fs/etc
    1.74 +    cp stuff/udhcpd.conf $fs/etc
    1.75 +    touch $fs/etc/resolv.conf
    1.76 +    cp stuff/inetd.conf $fs/etc
    1.77 +    cp stuff/daemon $fs/etc/init.d
    1.78 +    for i in crond dnsd ftpd httpd inetd klogd ntpd syslogd telnetd tftpd \
    1.79 +	     udhcpd zcip ; do
    1.80 +	grep -qi config_$i=y $src/.config &&
    1.81 +	ln -s daemon $fs/etc/init.d/$i
    1.82 +    done
    1.83 +    cp stuff/init $fs
    1.84 +    rm $fs/linuxrc
    1.85 +    mkdir -p $fs/etc/modprobe.d
    1.86 +    # Udhcpc stuff.
    1.87 +    mkdir -p $fs/usr/share/udhcpc
    1.88 +    cp stuff/udhcp.script $fs/usr/share/udhcpc/default.script
    1.89 +    chmod +x $fs/usr/share/udhcpc/default.script
    1.90 +    # ZeroConf stuff.
    1.91 +    cp stuff/zcip.script $fs/etc
    1.92 +    # Httpd stuff.
    1.93 +    cp stuff/httpd_helper.sh $fs/usr/bin
    1.94 +    chmod +x $fs/usr/bin/httpd_helper.sh
    1.95 +    # .desktop stuff
    1.96 +    mkdir -p $fs/usr/share
    1.97 +    cp -a stuff/applications $fs/usr/share
    1.98 +    # prepare rootfs.cpio for kernel-* packages
    1.99 +    mkdir -p $src/rootfs/lib
   1.100 +    cp -a $fs/. $src/rootfs/.
   1.101 +    cd $src
   1.102 +    for i in slitaz-base-files slitaz-boot-scripts ; do
   1.103 +    	tazpkg get $i
   1.104 +    	tazpkg extract $i*.tazpkg
   1.105 +    	cp -a $i*/fs/. rootfs/.
   1.106 +    	grep -qs ^post_install $i*/receipt || continue
   1.107 +    	( . $i*/receipt ; post_install rootfs )
   1.108 +    done
   1.109 +    LD_LIBRARY_PATH=/usr/share/uclibc-cross-compiler-$TARGET/lib \
   1.110 +	uclibc-$TARGET-ldd busybox 2> /dev/null | \
   1.111 +	awk '/=>/ { print $3 }' | while read file ; do
   1.112 +	cp -a $file rootfs/lib
   1.113 +	while [ -L "$file" ]; do
   1.114 +		dir="$(dirname $file)/"
   1.115 +		file="$(readlink $file)"
   1.116 +		case "$file" in
   1.117 +		/*) ;;
   1.118 +		*)  file="$dir$file";;
   1.119 +		esac
   1.120 +		cp -a "$file" rootfs/lib
   1.121 +	done
   1.122 +    done
   1.123 +    chown 0.0 rootfs/lib/*
   1.124 +    rm -rf rootfs/tmp rootfs/var/games rootfs/var/cache \
   1.125 +	rootfs/bin/bootlog rootfs/etc/modprobe.d rootfs/home \
   1.126 +	rootfs/sbin/mktazdevs.sh rootfs/usr/bin/man \
   1.127 +	rootfs/usr/share/applications rootfs/sys \
   1.128 +	rootfs/etc/nsswitch.conf rootfs/etc/zcip.script \
   1.129 +	rootfs/etc/udhcpd.conf rootfs/etc/inetd.conf \
   1.130 +	rootfs/usr/lib rootfs/usr/games rootfs/usr/share/doc \
   1.131 +	rootfs/usr/local rootfs/var/lock rootfs/var/spool rootfs/media
   1.132 +	
   1.133 +    ln -s var/tmp rootfs/tmp
   1.134 +
   1.135 +    ( cd rootfs ; find | cpio -o -H newc ) > rootfs.cpio
   1.136 +    du -h rootfs.cpio
   1.137 +}
   1.138 +
   1.139 +# Force glibc-2.7 reinstall if 2.3.6 still in use.
   1.140 +pre_install()
   1.141 +{
   1.142 +	local i
   1.143 +	cp -a /etc/resolv.conf /etc/resolv.conf-busybox-install
   1.144 +	answer=""
   1.145 +	for i in $(cat $1$INSTALLED/$PACKAGE/files.list); do
   1.146 +		[ -f $1$i ] || continue
   1.147 +		case "$i" in
   1.148 +		/bin/busybox) continue ;;
   1.149 +		*bin/*) ;;
   1.150 +		*) continue ;;
   1.151 +		esac
   1.152 +		if [ -z "$answer" ]; then
   1.153 +			echo -n "Keep installed GNU utilities ? "
   1.154 +			read -t 30 answer	# by default: keep
   1.155 +			case "$answer" in
   1.156 +			n*|N*) break;;
   1.157 +			*) answer="Y";;
   1.158 +			esac
   1.159 +		fi
   1.160 +		cp -a $1$i $1$i-busybox-install
   1.161 +	done
   1.162 +}
   1.163 +
   1.164 +post_install()
   1.165 +{
   1.166 +	local i
   1.167 +	[ -f /etc/resolv.conf-busybox-install ] &&
   1.168 +	mv -f /etc/resolv.conf-busybox-install /etc/resolv.conf
   1.169 +	while read i ; do
   1.170 +		[ -f $1$i-busybox-install ] || continue
   1.171 +		mv $1$i-busybox-install $1$i
   1.172 +	done < $1$INSTALLED/$PACKAGE/files.list
   1.173 +	chmod 4755 $1/bin/busybox
   1.174 +	sed -i "s@vcsa2txt.*\$@busybox conspy -d | sed 's/ *\$//;/^\$/d;/^Processi\\\\|^.witchi/,\$!d' > /var/log/boot.log@" $1/etc/init.d/rcS
   1.175 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/busybox/stuff/applications/pcan.desktop	Tue Feb 01 09:36:49 2011 +0100
     2.3 @@ -0,0 +1,8 @@
     2.4 +[Desktop Entry]
     2.5 +Encoding=UTF-8
     2.6 +Name=Local ports scan
     2.7 +Name[zh_CN]=本地端口扫描
     2.8 +Exec=xterm -hold -e 'pscan localhost'
     2.9 +Icon=other.png
    2.10 +Type=Application
    2.11 +Categories=Network;
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/busybox/stuff/applications/top.desktop	Tue Feb 01 09:36:49 2011 +0100
     3.3 @@ -0,0 +1,10 @@
     3.4 +[Desktop Entry]
     3.5 +Encoding=UTF-8
     3.6 +Name=Top Processes Viewer
     3.7 +Name[zh_CN]=进程管理器
     3.8 +Type=Application
     3.9 +Comment=Show System Processes
    3.10 +Exec=xterm -e top
    3.11 +Icon=other.png
    3.12 +Categories=ConsoleOnly;System;Application;
    3.13 +GenericName=Process Viewer
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/busybox/stuff/busybox-1.18-cmdline.u	Tue Feb 01 09:36:49 2011 +0100
     4.3 @@ -0,0 +1,37 @@
     4.4 +Display command line in usage output. Useful to debug scripts with variables.
     4.5 +--- busybox-1.18.1/libbb/appletlib.c
     4.6 ++++ busybox-1.18.1/libbb/appletlib.c
     4.7 +@@ -97,9 +97,16 @@
     4.8 + 
     4.9 + #endif /* FEATURE_COMPRESS_USAGE */
    4.10 + 
    4.11 +-
    4.12 ++static char **bb_argv;
    4.13 + void FAST_FUNC bb_show_usage(void)
    4.14 + {
    4.15 ++	full_write2_str("\nCommand line: ");
    4.16 ++	while (*bb_argv) {
    4.17 ++		full_write2_str(*bb_argv++);
    4.18 ++		full_write2_str(" ");
    4.19 ++	}
    4.20 ++	full_write2_str("\n\n");
    4.21 ++
    4.22 + 	if (ENABLE_SHOW_USAGE) {
    4.23 + #ifdef SINGLE_APPLET_STR
    4.24 + 		/* Imagine that this applet is "true". Dont suck in printf! */
    4.25 +@@ -635,6 +642,7 @@
    4.26 + /* If we were called as "busybox..." */
    4.27 + static int busybox_main(char **argv)
    4.28 + {
    4.29 ++	bb_argv = argv;
    4.30 + 	if (!argv[1]) {
    4.31 + 		/* Called without arguments */
    4.32 + 		const char *a;
    4.33 +@@ -785,6 +793,7 @@
    4.34 + int main(int argc UNUSED_PARAM, char **argv)
    4.35 + #endif
    4.36 + {
    4.37 ++	bb_argv = argv;
    4.38 + 	/* Tweak malloc for reduced memory consumption */
    4.39 + #ifndef PAGE_SIZE
    4.40 + # define PAGE_SIZE (4*1024) /* guess */
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/busybox/stuff/busybox-1.18-printable.u	Tue Feb 01 09:36:49 2011 +0100
     5.3 @@ -0,0 +1,24 @@
     5.4 +fix the bug of 'ls cannot display utf-8 filenames'
     5.5 +--- busybox-1.17.3/libbb/printable_string.c
     5.6 ++++ busybox-printable/libbb/printable_string.c
     5.7 +@@ -31,8 +31,8 @@
     5.8 + 		}
     5.9 + 		if (c < ' ')
    5.10 + 			break;
    5.11 +-		if (c >= 0x7f)
    5.12 +-			break;
    5.13 ++		/* if (c >= 0x7f) */
    5.14 ++			/* break; */
    5.15 + 		s++;
    5.16 + 	}
    5.17 + 
    5.18 +@@ -45,7 +45,8 @@
    5.19 + 			unsigned char c = *d;
    5.20 + 			if (c == '\0')
    5.21 + 				break;
    5.22 +-			if (c < ' ' || c >= 0x7f)
    5.23 ++			/* if (c < ' ' || c >= 0x7f) */
    5.24 ++			if (c < ' ')
    5.25 + 				*d = '?';
    5.26 + 			d++;
    5.27 + 		}
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/busybox/stuff/busybox-1.18-ris.u	Tue Feb 01 09:36:49 2011 +0100
     6.3 @@ -0,0 +1,93 @@
     6.4 +Add support for the Windows Remote Installation Service
     6.5 +--- busybox-1.17.1/networking/Config.src
     6.6 ++++ busybox-1.17.1/networking/Config.src
     6.7 +@@ -863,6 +863,15 @@
     6.8 + comment "Common options for tftp/tftpd"
     6.9 + 	depends on TFTP || TFTPD
    6.10 + 
    6.11 ++config FEATURE_TFTPD_RIS
    6.12 ++	bool "Enable \"RIS\" support"
    6.13 ++	default y
    6.14 ++	depends on TFTPD
    6.15 ++	help
    6.16 ++	  Add support for the Windows Remote Installation Service. This allows
    6.17 ++	  a client to get files starting with \ without respecting case.
    6.18 ++	  Each \ will be replaced by a /.
    6.19 ++
    6.20 + config FEATURE_TFTP_GET
    6.21 + 	bool "Enable 'tftp get' and/or tftpd upload code"
    6.22 + 	default y
    6.23 +
    6.24 +--- busybox-1.18.2/networking/tftp.c
    6.25 ++++ busybox-1.18.2/networking/tftp.c
    6.26 +@@ -641,6 +641,59 @@
    6.27 + #undef remote_file
    6.28 + }
    6.29 + 
    6.30 ++#if ENABLE_FEATURE_TFTPD_RIS
    6.31 ++#include <dirent.h>
    6.32 ++
    6.33 ++static int lookup_entry(const char *search, char *unixpath);
    6.34 ++static void unixfilename(char *filename);
    6.35 ++
    6.36 ++// lookup search and concat real filename to unixpath
    6.37 ++static int lookup_entry(const char *search, char *unixpath)
    6.38 ++{
    6.39 ++ 	int status = 0;
    6.40 ++	DIR *dirp = opendir(unixpath[0] ? unixpath : ".");
    6.41 ++ 
    6.42 ++ 	if (dirp != NULL) {
    6.43 ++		struct dirent *entry;
    6.44 ++
    6.45 ++		while ((entry = readdir(dirp))) {
    6.46 ++			if (!strcasecmp(entry->d_name, search)) {
    6.47 ++				if (unixpath[0]) strcat(unixpath, "/");
    6.48 ++				strcat(unixpath, entry->d_name);
    6.49 ++				status++;
    6.50 ++				break;
    6.51 ++			}
    6.52 ++		}
    6.53 ++		closedir(dirp);
    6.54 ++ 	}
    6.55 ++	return status;
    6.56 ++}
    6.57 ++
    6.58 ++// update filename with real file path found
    6.59 ++static void unixfilename(char *filename)
    6.60 ++{
    6.61 ++	char unixpath[PATH_MAX];
    6.62 ++	char *s = unixpath + 1;
    6.63 ++	char *check = filename + 1;
    6.64 ++	int len;
    6.65 ++
    6.66 ++	for (unixpath[0] = 0; *check; len++, s += len, check += len) {
    6.67 ++		char *seek = strchr(check, '\\');
    6.68 ++
    6.69 ++		if (!seek) { // basename of filename
    6.70 ++			if (lookup_entry(check, unixpath))
    6.71 ++				strcpy(filename, unixpath); // found
    6.72 ++			break;
    6.73 ++		}
    6.74 ++		len = seek - check;
    6.75 ++		memcpy(s, check, len);
    6.76 ++		s[len] = '\0';
    6.77 ++		if (!lookup_entry(s, unixpath))
    6.78 ++			break; // path mismatch
    6.79 ++	}
    6.80 ++}
    6.81 ++#endif
    6.82 ++
    6.83 + #if ENABLE_TFTP
    6.84 + 
    6.85 + int tftp_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
    6.86 +@@ -770,6 +823,10 @@
    6.87 + 		goto err;
    6.88 + 	}
    6.89 + 	local_file = block_buf + 2;
    6.90 ++#if ENABLE_FEATURE_TFTPD_RIS
    6.91 ++	if (local_file[0] == '\\')
    6.92 ++		unixfilename(local_file);
    6.93 ++#endif
    6.94 + 	if (local_file[0] == '.' || strstr(local_file, "/.")) {
    6.95 + 		error_msg = "dot in file name";
    6.96 + 		goto err;
     7.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2 +++ b/busybox/stuff/busybox-1.18-stat.u	Tue Feb 01 09:36:49 2011 +0100
     7.3 @@ -0,0 +1,77 @@
     7.4 +Add non standard stat -m support to display file block list
     7.5 +Useful to patch read-only filesystems such as ISO9660, for defragmentation
     7.6 +tools or boot loaders
     7.7 +--- busybox-1.18.0/include/usage.src.h
     7.8 ++++ busybox-1.18.0/include/usage.src.h
     7.9 +@@ -3654,6 +3654,7 @@
    7.10 +      "\n	-f	Display filesystem status" \
    7.11 +      "\n	-L	Follow links" \
    7.12 +      "\n	-t	Display info in terse form" \
    7.13 ++     "\n	-m	Display block list" \
    7.14 + 	IF_SELINUX( \
    7.15 +      "\n	-Z	Print security context" \
    7.16 + 	) \
    7.17 +
    7.18 +--- busybox-1.17.1/coreutils/stat.c
    7.19 ++++ busybox-1.17.1/coreutils/stat.c
    7.20 +@@ -13,11 +13,13 @@
    7.21 +  * Licensed under GPLv2 or later, see file LICENSE in this source tree.
    7.22 +  */
    7.23 + #include "libbb.h"
    7.24 ++#include <linux/fs.h>
    7.25 + 
    7.26 + #define OPT_FILESYS     (1 << 0)
    7.27 + #define OPT_TERSE       (1 << 1)
    7.28 + #define OPT_DEREFERENCE (1 << 2)
    7.29 +-#define OPT_SELINUX     (1 << 3)
    7.30 ++#define OPT_MAP         (1 << 3)
    7.31 ++#define OPT_SELINUX     (1 << 4)
    7.32 + 
    7.33 + #if ENABLE_FEATURE_STAT_FORMAT
    7.34 + typedef bool (*statfunc_ptr)(const char *, const char *);
    7.35 +@@ -359,6 +361,26 @@
    7.36 + 
    7.37 + /* Stat the file system and print what we find.  */
    7.38 + #if !ENABLE_FEATURE_STAT_FORMAT
    7.39 ++#define do_mapfile(filename, format) do_mapfile(filename)
    7.40 ++#endif
    7.41 ++static bool do_mapfile(const char *filename, const char *format)
    7.42 ++{
    7.43 ++	int i = 0;
    7.44 ++	int fd = xopen(filename, O_RDONLY);
    7.45 ++
    7.46 ++#if ENABLE_FEATURE_STAT_FORMAT
    7.47 ++	(void) format;
    7.48 ++#endif
    7.49 ++	while (1) {
    7.50 ++		int blk = i++;
    7.51 ++		if (ioctl(fd,FIBMAP,&blk) < 0 || blk == 0) break;
    7.52 ++		printf("%u\n",blk);
    7.53 ++	}	
    7.54 ++	return 1;
    7.55 ++}
    7.56 ++
    7.57 ++/* Stat the file system and print what we find.  */
    7.58 ++#if !ENABLE_FEATURE_STAT_FORMAT
    7.59 + #define do_statfs(filename, format) do_statfs(filename)
    7.60 + #endif
    7.61 + static bool do_statfs(const char *filename, const char *format)
    7.62 +@@ -648,7 +670,7 @@
    7.63 + 	statfunc_ptr statfunc = do_stat;
    7.64 + 
    7.65 + 	opt_complementary = "-1"; /* min one arg */
    7.66 +-	opts = getopt32(argv, "ftL"
    7.67 ++	opts = getopt32(argv, "ftLm"
    7.68 + 		IF_SELINUX("Z")
    7.69 + 		IF_FEATURE_STAT_FORMAT("c:", &format)
    7.70 + 	);
    7.71 +@@ -659,6 +681,9 @@
    7.72 + 		selinux_or_die();
    7.73 + 	}
    7.74 + #endif
    7.75 ++ 	if (opts & OPT_MAP) { /* -m */
    7.76 ++ 		statfunc = do_mapfile;
    7.77 ++	}
    7.78 + 	ok = 1;
    7.79 + 	argv += optind;
    7.80 + 	for (i = 0; argv[i]; ++i)
     8.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.2 +++ b/busybox/stuff/busybox-1.18-tar.u	Tue Feb 01 09:36:49 2011 +0100
     8.3 @@ -0,0 +1,15 @@
     8.4 +Accept and ignore --wildcards argument
     8.5 +--- busybox-1.18.0/archival/tar.c
     8.6 ++++ busybox-1.18.0/archival/tar.c
     8.7 +@@ -840,8 +840,10 @@
     8.8 + 	"touch\0"               No_argument       "m"
     8.9 + # endif
    8.10 + # if ENABLE_FEATURE_TAR_TO_COMMAND
    8.11 +-	"to-command\0"		Required_argument "\xfb"
    8.12 ++	"to-command\0"		Required_argument "\xfa"
    8.13 + # endif
    8.14 ++	/* ignore --wildcards */
    8.15 ++	"wildcards\0"           No_argument       "\xfb"
    8.16 + 	/* use numeric uid/gid from tar header, not textual */
    8.17 + 	"numeric-owner\0"       No_argument       "\xfc"
    8.18 + 	/* do not restore mode */
     9.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.2 +++ b/busybox/stuff/busybox-1.18-zmodules.u	Tue Feb 01 09:36:49 2011 +0100
     9.3 @@ -0,0 +1,52 @@
     9.4 +Add LZMA_DEFAULT_MAGIC support
     9.5 +--- busybox-1.18.0/include/archive.h
     9.6 ++++ busybox-1.18.0/include/archive.h
     9.7 +@@ -9,6 +9,8 @@
     9.8 + 	COMPRESS_MAGIC = 0x1f9d,
     9.9 + 	GZIP_MAGIC  = 0x1f8b,
    9.10 + 	BZIP2_MAGIC = 'B' * 256 + 'Z',
    9.11 ++	/* lzma default options: lc=3 lp=0 pb=2, historic % 256 == 0 */
    9.12 ++	LZMA_DEFAULT_MAGIC = 0x5d00,
    9.13 + 	/* .xz signature: 0xfd, '7', 'z', 'X', 'Z', 0x00 */
    9.14 + 	/* More info at: http://tukaani.org/xz/xz-file-format.txt */
    9.15 + 	XZ_MAGIC1   = 0xfd * 256 + '7',
    9.16 +@@ -20,6 +22,8 @@
    9.17 + 	COMPRESS_MAGIC = 0x9d1f,
    9.18 + 	GZIP_MAGIC  = 0x8b1f,
    9.19 + 	BZIP2_MAGIC = 'Z' * 256 + 'B',
    9.20 ++	/* lzma default options: lc=3 lp=0 pb=2, historic % 256 == 0 */
    9.21 ++	LZMA_DEFAULT_MAGIC = 0x5d,
    9.22 + 	XZ_MAGIC1   = '7' * 256 + 0xfd,
    9.23 + 	XZ_MAGIC2   = ((0 * 256 + 'Z') * 256 + 'X') * 256 + 'z',
    9.24 + 	XZ_MAGIC1a  = (('X' * 256 + 'z') * 256 + '7') * 256 + 0xfd,
    9.25 +
    9.26 +--- busybox-1.17.1/libbb/read_printf.c
    9.27 ++++ busybox-1.17.1/libbb/read_printf.c
    9.28 +@@ -286,6 +286,17 @@
    9.29 + # endif
    9.30 + 		goto found_magic;
    9.31 + 	}
    9.32 ++	if (ENABLE_FEATURE_SEAMLESS_LZMA
    9.33 ++	 && magic.b16[0] == LZMA_DEFAULT_MAGIC
    9.34 ++	) {
    9.35 ++# if BB_MMU
    9.36 ++		xformer = unpack_lzma_stream;
    9.37 ++		xlseek(fd, offset, SEEK_CUR);
    9.38 ++# else
    9.39 ++		xformer_prog = "unlzma";
    9.40 ++# endif
    9.41 ++		goto found_magic;
    9.42 ++	}
    9.43 + 	if (ENABLE_FEATURE_SEAMLESS_XZ
    9.44 + 	 && magic.b16[0] == XZ_MAGIC1
    9.45 + 	) {
    9.46 +@@ -342,7 +353,8 @@
    9.47 + 			/* .lzma has no header/signature, just trust it */
    9.48 + 			open_transformer(fd, unpack_lzma_stream, "unlzma");
    9.49 + 		else
    9.50 +-		if ((ENABLE_FEATURE_SEAMLESS_GZ && strcmp(sfx, "gz") == 0)
    9.51 ++		if (((ENABLE_FEATURE_SEAMLESS_GZ|ENABLE_FEATURE_SEAMLESS_LZMA)
    9.52 ++		  && strcmp(sfx, "gz") == 0)
    9.53 + 		 || (ENABLE_FEATURE_SEAMLESS_BZ2 && strcmp(sfx, "bz2") == 0)
    9.54 + 		 || (ENABLE_FEATURE_SEAMLESS_XZ && strcmp(sfx, "xz") == 0)
    9.55 + 		) {
    10.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.2 +++ b/busybox/stuff/busybox-1.18.config	Tue Feb 01 09:36:49 2011 +0100
    10.3 @@ -0,0 +1,987 @@
    10.4 +#
    10.5 +# Automatically generated make config: don't edit
    10.6 +# Busybox version: 1.18.2
    10.7 +# Sun Jan 30 19:02:22 2011
    10.8 +#
    10.9 +CONFIG_HAVE_DOT_CONFIG=y
   10.10 +
   10.11 +#
   10.12 +# Busybox Settings
   10.13 +#
   10.14 +
   10.15 +#
   10.16 +# General Configuration
   10.17 +#
   10.18 +# CONFIG_DESKTOP is not set
   10.19 +# CONFIG_EXTRA_COMPAT is not set
   10.20 +# CONFIG_INCLUDE_SUSv2 is not set
   10.21 +# CONFIG_USE_PORTABLE_CODE is not set
   10.22 +CONFIG_PLATFORM_LINUX=y
   10.23 +CONFIG_FEATURE_BUFFERS_USE_MALLOC=y
   10.24 +# CONFIG_FEATURE_BUFFERS_GO_ON_STACK is not set
   10.25 +# CONFIG_FEATURE_BUFFERS_GO_IN_BSS is not set
   10.26 +CONFIG_SHOW_USAGE=y
   10.27 +# CONFIG_FEATURE_VERBOSE_USAGE is not set
   10.28 +CONFIG_FEATURE_COMPRESS_USAGE=y
   10.29 +# CONFIG_FEATURE_INSTALLER is not set
   10.30 +# CONFIG_INSTALL_NO_USR is not set
   10.31 +# CONFIG_LOCALE_SUPPORT is not set
   10.32 +# CONFIG_UNICODE_SUPPORT is not set
   10.33 +# CONFIG_UNICODE_USING_LOCALE is not set
   10.34 +# CONFIG_FEATURE_CHECK_UNICODE_IN_ENV is not set
   10.35 +CONFIG_SUBST_WCHAR=0
   10.36 +CONFIG_LAST_SUPPORTED_WCHAR=0
   10.37 +# CONFIG_UNICODE_COMBINING_WCHARS is not set
   10.38 +# CONFIG_UNICODE_WIDE_WCHARS is not set
   10.39 +# CONFIG_UNICODE_BIDI_SUPPORT is not set
   10.40 +# CONFIG_UNICODE_NEUTRAL_TABLE is not set
   10.41 +# CONFIG_UNICODE_PRESERVE_BROKEN is not set
   10.42 +CONFIG_LONG_OPTS=y
   10.43 +CONFIG_FEATURE_DEVPTS=y
   10.44 +# CONFIG_FEATURE_CLEAN_UP is not set
   10.45 +CONFIG_FEATURE_WTMP=y
   10.46 +CONFIG_FEATURE_UTMP=y
   10.47 +CONFIG_FEATURE_PIDFILE=y
   10.48 +CONFIG_FEATURE_SUID=y
   10.49 +# CONFIG_FEATURE_SUID_CONFIG is not set
   10.50 +# CONFIG_FEATURE_SUID_CONFIG_QUIET is not set
   10.51 +# CONFIG_SELINUX is not set
   10.52 +# CONFIG_FEATURE_PREFER_APPLETS is not set
   10.53 +CONFIG_BUSYBOX_EXEC_PATH="/proc/self/exe"
   10.54 +CONFIG_FEATURE_SYSLOG=y
   10.55 +# CONFIG_FEATURE_HAVE_RPC is not set
   10.56 +
   10.57 +#
   10.58 +# Build Options
   10.59 +#
   10.60 +# CONFIG_STATIC is not set
   10.61 +# CONFIG_PIE is not set
   10.62 +# CONFIG_NOMMU is not set
   10.63 +# CONFIG_BUILD_LIBBUSYBOX is not set
   10.64 +# CONFIG_FEATURE_INDIVIDUAL is not set
   10.65 +# CONFIG_FEATURE_SHARED_BUSYBOX is not set
   10.66 +# CONFIG_LFS is not set
   10.67 +CONFIG_CROSS_COMPILER_PREFIX="uclibc-i486-"
   10.68 +CONFIG_EXTRA_CFLAGS=""
   10.69 +
   10.70 +#
   10.71 +# Debugging Options
   10.72 +#
   10.73 +# CONFIG_DEBUG is not set
   10.74 +# CONFIG_DEBUG_PESSIMIZE is not set
   10.75 +# CONFIG_WERROR is not set
   10.76 +CONFIG_NO_DEBUG_LIB=y
   10.77 +# CONFIG_DMALLOC is not set
   10.78 +# CONFIG_EFENCE is not set
   10.79 +
   10.80 +#
   10.81 +# Installation Options ("make install" behavior)
   10.82 +#
   10.83 +CONFIG_INSTALL_APPLET_SYMLINKS=y
   10.84 +# CONFIG_INSTALL_APPLET_HARDLINKS is not set
   10.85 +# CONFIG_INSTALL_APPLET_SCRIPT_WRAPPERS is not set
   10.86 +# CONFIG_INSTALL_APPLET_DONT is not set
   10.87 +# CONFIG_INSTALL_SH_APPLET_SYMLINK is not set
   10.88 +# CONFIG_INSTALL_SH_APPLET_HARDLINK is not set
   10.89 +# CONFIG_INSTALL_SH_APPLET_SCRIPT_WRAPPER is not set
   10.90 +CONFIG_PREFIX="./_install"
   10.91 +
   10.92 +#
   10.93 +# Busybox Library Tuning
   10.94 +#
   10.95 +CONFIG_PASSWORD_MINLEN=6
   10.96 +CONFIG_MD5_SIZE_VS_SPEED=2
   10.97 +# CONFIG_FEATURE_FAST_TOP is not set
   10.98 +# CONFIG_FEATURE_ETC_NETWORKS is not set
   10.99 +CONFIG_FEATURE_USE_TERMIOS=y
  10.100 +CONFIG_FEATURE_EDITING=y
  10.101 +CONFIG_FEATURE_EDITING_MAX_LEN=1024
  10.102 +# CONFIG_FEATURE_EDITING_VI is not set
  10.103 +CONFIG_FEATURE_EDITING_HISTORY=32
  10.104 +# CONFIG_FEATURE_EDITING_SAVEHISTORY is not set
  10.105 +CONFIG_FEATURE_TAB_COMPLETION=y
  10.106 +# CONFIG_FEATURE_USERNAME_COMPLETION is not set
  10.107 +CONFIG_FEATURE_EDITING_FANCY_PROMPT=y
  10.108 +# CONFIG_FEATURE_EDITING_ASK_TERMINAL is not set
  10.109 +CONFIG_FEATURE_NON_POSIX_CP=y
  10.110 +# CONFIG_FEATURE_VERBOSE_CP_MESSAGE is not set
  10.111 +CONFIG_FEATURE_COPYBUF_KB=4
  10.112 +CONFIG_MONOTONIC_SYSCALL=y
  10.113 +# CONFIG_IOCTL_HEX2STR_ERROR is not set
  10.114 +# CONFIG_FEATURE_HWIB is not set
  10.115 +
  10.116 +#
  10.117 +# Applets
  10.118 +#
  10.119 +
  10.120 +#
  10.121 +# Archival Utilities
  10.122 +#
  10.123 +# CONFIG_FEATURE_SEAMLESS_XZ is not set
  10.124 +# CONFIG_FEATURE_SEAMLESS_LZMA is not set
  10.125 +# CONFIG_FEATURE_SEAMLESS_BZ2 is not set
  10.126 +# CONFIG_FEATURE_SEAMLESS_GZ is not set
  10.127 +# CONFIG_FEATURE_SEAMLESS_Z is not set
  10.128 +# CONFIG_AR is not set
  10.129 +# CONFIG_FEATURE_AR_LONG_FILENAMES is not set
  10.130 +# CONFIG_FEATURE_AR_CREATE is not set
  10.131 +CONFIG_BUNZIP2=y
  10.132 +# CONFIG_BZIP2 is not set
  10.133 +CONFIG_CPIO=y
  10.134 +CONFIG_FEATURE_CPIO_O=y
  10.135 +# CONFIG_FEATURE_CPIO_P is not set
  10.136 +# CONFIG_DPKG is not set
  10.137 +# CONFIG_DPKG_DEB is not set
  10.138 +# CONFIG_FEATURE_DPKG_DEB_EXTRACT_ONLY is not set
  10.139 +CONFIG_GUNZIP=y
  10.140 +CONFIG_GZIP=y
  10.141 +# CONFIG_FEATURE_GZIP_LONG_OPTIONS is not set
  10.142 +# CONFIG_LZOP is not set
  10.143 +# CONFIG_LZOP_COMPR_HIGH is not set
  10.144 +# CONFIG_RPM2CPIO is not set
  10.145 +# CONFIG_RPM is not set
  10.146 +CONFIG_TAR=y
  10.147 +CONFIG_FEATURE_TAR_CREATE=y
  10.148 +# CONFIG_FEATURE_TAR_AUTODETECT is not set
  10.149 +# CONFIG_FEATURE_TAR_FROM is not set
  10.150 +# CONFIG_FEATURE_TAR_OLDGNU_COMPATIBILITY is not set
  10.151 +# CONFIG_FEATURE_TAR_OLDSUN_COMPATIBILITY is not set
  10.152 +CONFIG_FEATURE_TAR_GNU_EXTENSIONS=y
  10.153 +# CONFIG_FEATURE_TAR_LONG_OPTIONS is not set
  10.154 +# CONFIG_FEATURE_TAR_TO_COMMAND is not set
  10.155 +# CONFIG_FEATURE_TAR_UNAME_GNAME is not set
  10.156 +# CONFIG_FEATURE_TAR_NOPRESERVE_TIME is not set
  10.157 +# CONFIG_FEATURE_TAR_SELINUX is not set
  10.158 +# CONFIG_UNCOMPRESS is not set
  10.159 +CONFIG_UNLZMA=y
  10.160 +# CONFIG_FEATURE_LZMA_FAST is not set
  10.161 +# CONFIG_LZMA is not set
  10.162 +# CONFIG_UNXZ is not set
  10.163 +# CONFIG_XZ is not set
  10.164 +# CONFIG_UNZIP is not set
  10.165 +
  10.166 +#
  10.167 +# Coreutils
  10.168 +#
  10.169 +CONFIG_BASENAME=y
  10.170 +CONFIG_CAT=y
  10.171 +CONFIG_DATE=y
  10.172 +# CONFIG_FEATURE_DATE_ISOFMT is not set
  10.173 +# CONFIG_FEATURE_DATE_NANO is not set
  10.174 +# CONFIG_FEATURE_DATE_COMPAT is not set
  10.175 +CONFIG_TEST=y
  10.176 +# CONFIG_FEATURE_TEST_64 is not set
  10.177 +# CONFIG_TR is not set
  10.178 +# CONFIG_FEATURE_TR_CLASSES is not set
  10.179 +# CONFIG_FEATURE_TR_EQUIV is not set
  10.180 +# CONFIG_BASE64 is not set
  10.181 +CONFIG_CAL=y
  10.182 +# CONFIG_CATV is not set
  10.183 +CONFIG_CHGRP=y
  10.184 +CONFIG_CHMOD=y
  10.185 +CONFIG_CHOWN=y
  10.186 +# CONFIG_FEATURE_CHOWN_LONG_OPTIONS is not set
  10.187 +CONFIG_CHROOT=y
  10.188 +# CONFIG_CKSUM is not set
  10.189 +# CONFIG_COMM is not set
  10.190 +CONFIG_CP=y
  10.191 +# CONFIG_FEATURE_CP_LONG_OPTIONS is not set
  10.192 +CONFIG_CUT=y
  10.193 +CONFIG_DD=y
  10.194 +CONFIG_FEATURE_DD_SIGNAL_HANDLING=y
  10.195 +# CONFIG_FEATURE_DD_THIRD_STATUS_LINE is not set
  10.196 +CONFIG_FEATURE_DD_IBS_OBS=y
  10.197 +CONFIG_DF=y
  10.198 +# CONFIG_FEATURE_DF_FANCY is not set
  10.199 +CONFIG_DIRNAME=y
  10.200 +# CONFIG_DOS2UNIX is not set
  10.201 +# CONFIG_UNIX2DOS is not set
  10.202 +CONFIG_DU=y
  10.203 +CONFIG_FEATURE_DU_DEFAULT_BLOCKSIZE_1K=y
  10.204 +CONFIG_ECHO=y
  10.205 +CONFIG_FEATURE_FANCY_ECHO=y
  10.206 +# CONFIG_ENV is not set
  10.207 +# CONFIG_FEATURE_ENV_LONG_OPTIONS is not set
  10.208 +# CONFIG_EXPAND is not set
  10.209 +# CONFIG_FEATURE_EXPAND_LONG_OPTIONS is not set
  10.210 +CONFIG_EXPR=y
  10.211 +# CONFIG_EXPR_MATH_SUPPORT_64 is not set
  10.212 +CONFIG_FALSE=y
  10.213 +# CONFIG_FOLD is not set
  10.214 +# CONFIG_FSYNC is not set
  10.215 +CONFIG_HEAD=y
  10.216 +# CONFIG_FEATURE_FANCY_HEAD is not set
  10.217 +# CONFIG_HOSTID is not set
  10.218 +CONFIG_ID=y
  10.219 +# CONFIG_INSTALL is not set
  10.220 +# CONFIG_FEATURE_INSTALL_LONG_OPTIONS is not set
  10.221 +# CONFIG_LENGTH is not set
  10.222 +CONFIG_LN=y
  10.223 +# CONFIG_LOGNAME is not set
  10.224 +CONFIG_LS=y
  10.225 +CONFIG_FEATURE_LS_FILETYPES=y
  10.226 +CONFIG_FEATURE_LS_FOLLOWLINKS=y
  10.227 +CONFIG_FEATURE_LS_RECURSIVE=y
  10.228 +CONFIG_FEATURE_LS_SORTFILES=y
  10.229 +CONFIG_FEATURE_LS_TIMESTAMPS=y
  10.230 +CONFIG_FEATURE_LS_USERNAME=y
  10.231 +CONFIG_FEATURE_LS_COLOR=y
  10.232 +CONFIG_FEATURE_LS_COLOR_IS_DEFAULT=y
  10.233 +CONFIG_MD5SUM=y
  10.234 +CONFIG_MKDIR=y
  10.235 +# CONFIG_FEATURE_MKDIR_LONG_OPTIONS is not set
  10.236 +CONFIG_MKFIFO=y
  10.237 +CONFIG_MKNOD=y
  10.238 +CONFIG_MV=y
  10.239 +# CONFIG_FEATURE_MV_LONG_OPTIONS is not set
  10.240 +# CONFIG_NICE is not set
  10.241 +# CONFIG_NOHUP is not set
  10.242 +# CONFIG_OD is not set
  10.243 +# CONFIG_PRINTENV is not set
  10.244 +CONFIG_PRINTF=y
  10.245 +CONFIG_PWD=y
  10.246 +CONFIG_READLINK=y
  10.247 +# CONFIG_FEATURE_READLINK_FOLLOW is not set
  10.248 +# CONFIG_REALPATH is not set
  10.249 +CONFIG_RM=y
  10.250 +CONFIG_RMDIR=y
  10.251 +# CONFIG_FEATURE_RMDIR_LONG_OPTIONS is not set
  10.252 +CONFIG_SEQ=y
  10.253 +# CONFIG_SHA1SUM is not set
  10.254 +# CONFIG_SHA256SUM is not set
  10.255 +# CONFIG_SHA512SUM is not set
  10.256 +CONFIG_SLEEP=y
  10.257 +# CONFIG_FEATURE_FANCY_SLEEP is not set
  10.258 +# CONFIG_FEATURE_FLOAT_SLEEP is not set
  10.259 +CONFIG_SORT=y
  10.260 +# CONFIG_FEATURE_SORT_BIG is not set
  10.261 +CONFIG_SPLIT=y
  10.262 +# CONFIG_FEATURE_SPLIT_FANCY is not set
  10.263 +CONFIG_STAT=y
  10.264 +CONFIG_FEATURE_STAT_FORMAT=y
  10.265 +CONFIG_STTY=y
  10.266 +# CONFIG_SUM is not set
  10.267 +CONFIG_SYNC=y
  10.268 +# CONFIG_TAC is not set
  10.269 +CONFIG_TAIL=y
  10.270 +# CONFIG_FEATURE_FANCY_TAIL is not set
  10.271 +CONFIG_TEE=y
  10.272 +# CONFIG_FEATURE_TEE_USE_BLOCK_IO is not set
  10.273 +CONFIG_TOUCH=y
  10.274 +CONFIG_TRUE=y
  10.275 +CONFIG_TTY=y
  10.276 +CONFIG_UNAME=y
  10.277 +# CONFIG_UNEXPAND is not set
  10.278 +# CONFIG_FEATURE_UNEXPAND_LONG_OPTIONS is not set
  10.279 +CONFIG_UNIQ=y
  10.280 +CONFIG_USLEEP=y
  10.281 +CONFIG_UUDECODE=y
  10.282 +CONFIG_UUENCODE=y
  10.283 +CONFIG_WC=y
  10.284 +# CONFIG_FEATURE_WC_LARGE is not set
  10.285 +# CONFIG_WHO is not set
  10.286 +# CONFIG_WHOAMI is not set
  10.287 +CONFIG_YES=y
  10.288 +
  10.289 +#
  10.290 +# Common options for cp and mv
  10.291 +#
  10.292 +CONFIG_FEATURE_PRESERVE_HARDLINKS=y
  10.293 +
  10.294 +#
  10.295 +# Common options for ls, more and telnet
  10.296 +#
  10.297 +CONFIG_FEATURE_AUTOWIDTH=y
  10.298 +
  10.299 +#
  10.300 +# Common options for df, du, ls
  10.301 +#
  10.302 +CONFIG_FEATURE_HUMAN_READABLE=y
  10.303 +
  10.304 +#
  10.305 +# Common options for md5sum, sha1sum, sha256sum, sha512sum
  10.306 +#
  10.307 +CONFIG_FEATURE_MD5_SHA1_SUM_CHECK=y
  10.308 +
  10.309 +#
  10.310 +# Console Utilities
  10.311 +#
  10.312 +CONFIG_CHVT=y
  10.313 +# CONFIG_FGCONSOLE is not set
  10.314 +CONFIG_CLEAR=y
  10.315 +# CONFIG_DEALLOCVT is not set
  10.316 +# CONFIG_DUMPKMAP is not set
  10.317 +# CONFIG_KBD_MODE is not set
  10.318 +# CONFIG_LOADFONT is not set
  10.319 +CONFIG_LOADKMAP=y
  10.320 +# CONFIG_OPENVT is not set
  10.321 +CONFIG_RESET=y
  10.322 +# CONFIG_RESIZE is not set
  10.323 +# CONFIG_FEATURE_RESIZE_PRINT is not set
  10.324 +# CONFIG_SETCONSOLE is not set
  10.325 +# CONFIG_FEATURE_SETCONSOLE_LONG_OPTIONS is not set
  10.326 +# CONFIG_SETFONT is not set
  10.327 +# CONFIG_FEATURE_SETFONT_TEXTUAL_MAP is not set
  10.328 +CONFIG_DEFAULT_SETFONT_DIR=""
  10.329 +# CONFIG_SETKEYCODES is not set
  10.330 +# CONFIG_SETLOGCONS is not set
  10.331 +# CONFIG_SHOWKEY is not set
  10.332 +# CONFIG_FEATURE_LOADFONT_PSF2 is not set
  10.333 +# CONFIG_FEATURE_LOADFONT_RAW is not set
  10.334 +
  10.335 +#
  10.336 +# Debian Utilities
  10.337 +#
  10.338 +CONFIG_MKTEMP=y
  10.339 +# CONFIG_PIPE_PROGRESS is not set
  10.340 +# CONFIG_RUN_PARTS is not set
  10.341 +# CONFIG_FEATURE_RUN_PARTS_LONG_OPTIONS is not set
  10.342 +# CONFIG_FEATURE_RUN_PARTS_FANCY is not set
  10.343 +# CONFIG_START_STOP_DAEMON is not set
  10.344 +# CONFIG_FEATURE_START_STOP_DAEMON_FANCY is not set
  10.345 +# CONFIG_FEATURE_START_STOP_DAEMON_LONG_OPTIONS is not set
  10.346 +CONFIG_WHICH=y
  10.347 +
  10.348 +#
  10.349 +# Editors
  10.350 +#
  10.351 +# CONFIG_PATCH is not set
  10.352 +CONFIG_AWK=y
  10.353 +# CONFIG_FEATURE_AWK_LIBM is not set
  10.354 +# CONFIG_CMP is not set
  10.355 +# CONFIG_DIFF is not set
  10.356 +# CONFIG_FEATURE_DIFF_LONG_OPTIONS is not set
  10.357 +# CONFIG_FEATURE_DIFF_DIR is not set
  10.358 +# CONFIG_ED is not set
  10.359 +CONFIG_SED=y
  10.360 +CONFIG_VI=y
  10.361 +CONFIG_FEATURE_VI_MAX_LEN=1024
  10.362 +# CONFIG_FEATURE_VI_8BIT is not set
  10.363 +CONFIG_FEATURE_VI_COLON=y
  10.364 +CONFIG_FEATURE_VI_YANKMARK=y
  10.365 +CONFIG_FEATURE_VI_SEARCH=y
  10.366 +CONFIG_FEATURE_VI_USE_SIGNALS=y
  10.367 +CONFIG_FEATURE_VI_DOT_CMD=y
  10.368 +CONFIG_FEATURE_VI_READONLY=y
  10.369 +CONFIG_FEATURE_VI_SETOPTS=y
  10.370 +CONFIG_FEATURE_VI_SET=y
  10.371 +# CONFIG_FEATURE_VI_WIN_RESIZE is not set
  10.372 +CONFIG_FEATURE_VI_ASK_TERMINAL=y
  10.373 +# CONFIG_FEATURE_VI_OPTIMIZE_CURSOR is not set
  10.374 +CONFIG_FEATURE_ALLOW_EXEC=y
  10.375 +
  10.376 +#
  10.377 +# Finding Utilities
  10.378 +#
  10.379 +CONFIG_FIND=y
  10.380 +CONFIG_FEATURE_FIND_PRINT0=y
  10.381 +CONFIG_FEATURE_FIND_MTIME=y
  10.382 +CONFIG_FEATURE_FIND_MMIN=y
  10.383 +CONFIG_FEATURE_FIND_PERM=y
  10.384 +CONFIG_FEATURE_FIND_TYPE=y
  10.385 +CONFIG_FEATURE_FIND_XDEV=y
  10.386 +CONFIG_FEATURE_FIND_MAXDEPTH=y
  10.387 +CONFIG_FEATURE_FIND_NEWER=y
  10.388 +CONFIG_FEATURE_FIND_INUM=y
  10.389 +CONFIG_FEATURE_FIND_EXEC=y
  10.390 +CONFIG_FEATURE_FIND_USER=y
  10.391 +CONFIG_FEATURE_FIND_GROUP=y
  10.392 +CONFIG_FEATURE_FIND_NOT=y
  10.393 +CONFIG_FEATURE_FIND_DEPTH=y
  10.394 +CONFIG_FEATURE_FIND_PAREN=y
  10.395 +CONFIG_FEATURE_FIND_SIZE=y
  10.396 +CONFIG_FEATURE_FIND_PRUNE=y
  10.397 +CONFIG_FEATURE_FIND_DELETE=y
  10.398 +CONFIG_FEATURE_FIND_PATH=y
  10.399 +CONFIG_FEATURE_FIND_REGEX=y
  10.400 +# CONFIG_FEATURE_FIND_CONTEXT is not set
  10.401 +CONFIG_FEATURE_FIND_LINKS=y
  10.402 +CONFIG_GREP=y
  10.403 +CONFIG_FEATURE_GREP_EGREP_ALIAS=y
  10.404 +CONFIG_FEATURE_GREP_FGREP_ALIAS=y
  10.405 +CONFIG_FEATURE_GREP_CONTEXT=y
  10.406 +CONFIG_XARGS=y
  10.407 +CONFIG_FEATURE_XARGS_SUPPORT_CONFIRMATION=y
  10.408 +CONFIG_FEATURE_XARGS_SUPPORT_QUOTES=y
  10.409 +CONFIG_FEATURE_XARGS_SUPPORT_TERMOPT=y
  10.410 +CONFIG_FEATURE_XARGS_SUPPORT_ZERO_TERM=y
  10.411 +
  10.412 +#
  10.413 +# Init Utilities
  10.414 +#
  10.415 +# CONFIG_BOOTCHARTD is not set
  10.416 +# CONFIG_FEATURE_BOOTCHARTD_BLOATED_HEADER is not set
  10.417 +# CONFIG_FEATURE_BOOTCHARTD_CONFIG_FILE is not set
  10.418 +CONFIG_HALT=y
  10.419 +# CONFIG_FEATURE_CALL_TELINIT is not set
  10.420 +CONFIG_TELINIT_PATH=""
  10.421 +CONFIG_INIT=y
  10.422 +CONFIG_FEATURE_USE_INITTAB=y
  10.423 +CONFIG_FEATURE_KILL_REMOVED=y
  10.424 +CONFIG_FEATURE_KILL_DELAY=0
  10.425 +CONFIG_FEATURE_INIT_SCTTY=y
  10.426 +# CONFIG_FEATURE_INIT_SYSLOG is not set
  10.427 +CONFIG_FEATURE_EXTRA_QUIET=y
  10.428 +# CONFIG_FEATURE_INIT_COREDUMPS is not set
  10.429 +# CONFIG_FEATURE_INITRD is not set
  10.430 +CONFIG_INIT_TERMINAL_TYPE=""
  10.431 +# CONFIG_MESG is not set
  10.432 +
  10.433 +#
  10.434 +# Login/Password Management Utilities
  10.435 +#
  10.436 +# CONFIG_ADD_SHELL is not set
  10.437 +# CONFIG_REMOVE_SHELL is not set
  10.438 +CONFIG_FEATURE_SHADOWPASSWDS=y
  10.439 +# CONFIG_USE_BB_PWD_GRP is not set
  10.440 +# CONFIG_USE_BB_SHADOW is not set
  10.441 +# CONFIG_USE_BB_CRYPT is not set
  10.442 +# CONFIG_USE_BB_CRYPT_SHA is not set
  10.443 +CONFIG_ADDUSER=y
  10.444 +# CONFIG_FEATURE_ADDUSER_LONG_OPTIONS is not set
  10.445 +# CONFIG_FEATURE_CHECK_NAMES is not set
  10.446 +CONFIG_FIRST_SYSTEM_ID=100
  10.447 +CONFIG_LAST_SYSTEM_ID=999
  10.448 +CONFIG_ADDGROUP=y
  10.449 +# CONFIG_FEATURE_ADDGROUP_LONG_OPTIONS is not set
  10.450 +CONFIG_FEATURE_ADDUSER_TO_GROUP=y
  10.451 +CONFIG_DELUSER=y
  10.452 +CONFIG_DELGROUP=y
  10.453 +CONFIG_FEATURE_DEL_USER_FROM_GROUP=y
  10.454 +CONFIG_GETTY=y
  10.455 +CONFIG_LOGIN=y
  10.456 +# CONFIG_PAM is not set
  10.457 +# CONFIG_LOGIN_SCRIPTS is not set
  10.458 +# CONFIG_FEATURE_NOLOGIN is not set
  10.459 +# CONFIG_FEATURE_SECURETTY is not set
  10.460 +CONFIG_PASSWD=y
  10.461 +# CONFIG_FEATURE_PASSWD_WEAK_CHECK is not set
  10.462 +# CONFIG_CRYPTPW is not set
  10.463 +# CONFIG_CHPASSWD is not set
  10.464 +CONFIG_SU=y
  10.465 +# CONFIG_FEATURE_SU_SYSLOG is not set
  10.466 +# CONFIG_FEATURE_SU_CHECKS_SHELLS is not set
  10.467 +# CONFIG_SULOGIN is not set
  10.468 +# CONFIG_VLOCK is not set
  10.469 +
  10.470 +#
  10.471 +# Linux Ext2 FS Progs
  10.472 +#
  10.473 +CONFIG_CHATTR=y
  10.474 +# CONFIG_FSCK is not set
  10.475 +CONFIG_LSATTR=y
  10.476 +CONFIG_TUNE2FS=y
  10.477 +
  10.478 +#
  10.479 +# Linux Module Utilities
  10.480 +#
  10.481 +# CONFIG_MODINFO is not set
  10.482 +CONFIG_MODPROBE_SMALL=y
  10.483 +CONFIG_FEATURE_MODPROBE_SMALL_OPTIONS_ON_CMDLINE=y
  10.484 +CONFIG_FEATURE_MODPROBE_SMALL_CHECK_ALREADY_LOADED=y
  10.485 +# CONFIG_INSMOD is not set
  10.486 +# CONFIG_RMMOD is not set
  10.487 +# CONFIG_LSMOD is not set
  10.488 +# CONFIG_FEATURE_LSMOD_PRETTY_2_6_OUTPUT is not set
  10.489 +# CONFIG_MODPROBE is not set
  10.490 +# CONFIG_FEATURE_MODPROBE_BLACKLIST is not set
  10.491 +# CONFIG_DEPMOD is not set
  10.492 +
  10.493 +#
  10.494 +# Options common to multiple modutils
  10.495 +#
  10.496 +# CONFIG_FEATURE_2_4_MODULES is not set
  10.497 +# CONFIG_FEATURE_INSMOD_TRY_MMAP is not set
  10.498 +# CONFIG_FEATURE_INSMOD_VERSION_CHECKING is not set
  10.499 +# CONFIG_FEATURE_INSMOD_KSYMOOPS_SYMBOLS is not set
  10.500 +# CONFIG_FEATURE_INSMOD_LOADINKMEM is not set
  10.501 +# CONFIG_FEATURE_INSMOD_LOAD_MAP is not set
  10.502 +# CONFIG_FEATURE_INSMOD_LOAD_MAP_FULL is not set
  10.503 +# CONFIG_FEATURE_CHECK_TAINTED_MODULE is not set
  10.504 +# CONFIG_FEATURE_MODUTILS_ALIAS is not set
  10.505 +# CONFIG_FEATURE_MODUTILS_SYMBOLS is not set
  10.506 +CONFIG_DEFAULT_MODULES_DIR="/lib/modules"
  10.507 +CONFIG_DEFAULT_DEPMOD_FILE="modules.dep"
  10.508 +
  10.509 +#
  10.510 +# Linux System Utilities
  10.511 +#
  10.512 +# CONFIG_BLOCKDEV is not set
  10.513 +# CONFIG_REV is not set
  10.514 +# CONFIG_ACPID is not set
  10.515 +# CONFIG_FEATURE_ACPID_COMPAT is not set
  10.516 +CONFIG_BLKID=y
  10.517 +CONFIG_DMESG=y
  10.518 +CONFIG_FEATURE_DMESG_PRETTY=y
  10.519 +# CONFIG_FBSET is not set
  10.520 +# CONFIG_FEATURE_FBSET_FANCY is not set
  10.521 +# CONFIG_FEATURE_FBSET_READMODE is not set
  10.522 +# CONFIG_FDFLUSH is not set
  10.523 +CONFIG_FDFORMAT=y
  10.524 +CONFIG_FDISK=y
  10.525 +CONFIG_FDISK_SUPPORT_LARGE_DISKS=y
  10.526 +CONFIG_FEATURE_FDISK_WRITABLE=y
  10.527 +# CONFIG_FEATURE_AIX_LABEL is not set
  10.528 +# CONFIG_FEATURE_SGI_LABEL is not set
  10.529 +# CONFIG_FEATURE_SUN_LABEL is not set
  10.530 +# CONFIG_FEATURE_OSF_LABEL is not set
  10.531 +CONFIG_FEATURE_GPT_LABEL=y
  10.532 +# CONFIG_FEATURE_FDISK_ADVANCED is not set
  10.533 +# CONFIG_FINDFS is not set
  10.534 +# CONFIG_FLOCK is not set
  10.535 +# CONFIG_FREERAMDISK is not set
  10.536 +# CONFIG_FSCK_MINIX is not set
  10.537 +CONFIG_MKFS_EXT2=y
  10.538 +# CONFIG_MKFS_MINIX is not set
  10.539 +# CONFIG_FEATURE_MINIX2 is not set
  10.540 +# CONFIG_MKFS_REISER is not set
  10.541 +# CONFIG_MKFS_VFAT is not set
  10.542 +# CONFIG_GETOPT is not set
  10.543 +# CONFIG_FEATURE_GETOPT_LONG is not set
  10.544 +CONFIG_HEXDUMP=y
  10.545 +CONFIG_FEATURE_HEXDUMP_REVERSE=y
  10.546 +# CONFIG_HD is not set
  10.547 +CONFIG_HWCLOCK=y
  10.548 +# CONFIG_FEATURE_HWCLOCK_LONG_OPTIONS is not set
  10.549 +# CONFIG_FEATURE_HWCLOCK_ADJTIME_FHS is not set
  10.550 +# CONFIG_IPCRM is not set
  10.551 +# CONFIG_IPCS is not set
  10.552 +CONFIG_LOSETUP=y
  10.553 +# CONFIG_LSPCI is not set
  10.554 +# CONFIG_LSUSB is not set
  10.555 +# CONFIG_MDEV is not set
  10.556 +# CONFIG_FEATURE_MDEV_CONF is not set
  10.557 +# CONFIG_FEATURE_MDEV_RENAME is not set
  10.558 +# CONFIG_FEATURE_MDEV_RENAME_REGEXP is not set
  10.559 +# CONFIG_FEATURE_MDEV_EXEC is not set
  10.560 +# CONFIG_FEATURE_MDEV_LOAD_FIRMWARE is not set
  10.561 +CONFIG_MKSWAP=y
  10.562 +# CONFIG_FEATURE_MKSWAP_UUID is not set
  10.563 +CONFIG_MORE=y
  10.564 +CONFIG_MOUNT=y
  10.565 +# CONFIG_FEATURE_MOUNT_FAKE is not set
  10.566 +# CONFIG_FEATURE_MOUNT_VERBOSE is not set
  10.567 +# CONFIG_FEATURE_MOUNT_HELPERS is not set
  10.568 +CONFIG_FEATURE_MOUNT_LABEL=y
  10.569 +# CONFIG_FEATURE_MOUNT_NFS is not set
  10.570 +# CONFIG_FEATURE_MOUNT_CIFS is not set
  10.571 +CONFIG_FEATURE_MOUNT_FLAGS=y
  10.572 +CONFIG_FEATURE_MOUNT_FSTAB=y
  10.573 +# CONFIG_PIVOT_ROOT is not set
  10.574 +CONFIG_RDATE=y
  10.575 +# CONFIG_RDEV is not set
  10.576 +CONFIG_READPROFILE=y
  10.577 +# CONFIG_RTCWAKE is not set
  10.578 +CONFIG_SCRIPT=y
  10.579 +# CONFIG_SCRIPTREPLAY is not set
  10.580 +# CONFIG_SETARCH is not set
  10.581 +CONFIG_SWAPONOFF=y
  10.582 +# CONFIG_FEATURE_SWAPON_PRI is not set
  10.583 +CONFIG_SWITCH_ROOT=y
  10.584 +CONFIG_UMOUNT=y
  10.585 +CONFIG_FEATURE_UMOUNT_ALL=y
  10.586 +
  10.587 +#
  10.588 +# Common options for mount/umount
  10.589 +#
  10.590 +CONFIG_FEATURE_MOUNT_LOOP=y
  10.591 +# CONFIG_FEATURE_MOUNT_LOOP_CREATE is not set
  10.592 +# CONFIG_FEATURE_MTAB_SUPPORT is not set
  10.593 +CONFIG_VOLUMEID=y
  10.594 +
  10.595 +#
  10.596 +# Filesystem/Volume identification
  10.597 +#
  10.598 +CONFIG_FEATURE_VOLUMEID_EXT=y
  10.599 +# CONFIG_FEATURE_VOLUMEID_BTRFS is not set
  10.600 +# CONFIG_FEATURE_VOLUMEID_REISERFS is not set
  10.601 +CONFIG_FEATURE_VOLUMEID_FAT=y
  10.602 +# CONFIG_FEATURE_VOLUMEID_HFS is not set
  10.603 +# CONFIG_FEATURE_VOLUMEID_JFS is not set
  10.604 +# CONFIG_FEATURE_VOLUMEID_XFS is not set
  10.605 +# CONFIG_FEATURE_VOLUMEID_NTFS is not set
  10.606 +CONFIG_FEATURE_VOLUMEID_ISO9660=y
  10.607 +# CONFIG_FEATURE_VOLUMEID_UDF is not set
  10.608 +# CONFIG_FEATURE_VOLUMEID_LUKS is not set
  10.609 +CONFIG_FEATURE_VOLUMEID_LINUXSWAP=y
  10.610 +# CONFIG_FEATURE_VOLUMEID_CRAMFS is not set
  10.611 +# CONFIG_FEATURE_VOLUMEID_ROMFS is not set
  10.612 +# CONFIG_FEATURE_VOLUMEID_SYSV is not set
  10.613 +# CONFIG_FEATURE_VOLUMEID_OCFS2 is not set
  10.614 +# CONFIG_FEATURE_VOLUMEID_LINUXRAID is not set
  10.615 +
  10.616 +#
  10.617 +# Miscellaneous Utilities
  10.618 +#
  10.619 +CONFIG_CONSPY=y
  10.620 +# CONFIG_NANDWRITE is not set
  10.621 +# CONFIG_NANDDUMP is not set
  10.622 +# CONFIG_UBIATTACH is not set
  10.623 +# CONFIG_UBIDETACH is not set
  10.624 +# CONFIG_ADJTIMEX is not set
  10.625 +# CONFIG_BBCONFIG is not set
  10.626 +# CONFIG_FEATURE_COMPRESS_BBCONFIG is not set
  10.627 +CONFIG_BEEP=y
  10.628 +CONFIG_FEATURE_BEEP_FREQ=4000
  10.629 +CONFIG_FEATURE_BEEP_LENGTH_MS=30
  10.630 +# CONFIG_CHAT is not set
  10.631 +# CONFIG_FEATURE_CHAT_NOFAIL is not set
  10.632 +# CONFIG_FEATURE_CHAT_TTY_HIFI is not set
  10.633 +# CONFIG_FEATURE_CHAT_IMPLICIT_CR is not set
  10.634 +# CONFIG_FEATURE_CHAT_SWALLOW_OPTS is not set
  10.635 +# CONFIG_FEATURE_CHAT_SEND_ESCAPES is not set
  10.636 +# CONFIG_FEATURE_CHAT_VAR_ABORT_LEN is not set
  10.637 +# CONFIG_FEATURE_CHAT_CLR_ABORT is not set
  10.638 +# CONFIG_CHRT is not set
  10.639 +CONFIG_CROND=y
  10.640 +# CONFIG_FEATURE_CROND_D is not set
  10.641 +# CONFIG_FEATURE_CROND_CALL_SENDMAIL is not set
  10.642 +CONFIG_FEATURE_CROND_DIR="/var/spool/cron"
  10.643 +# CONFIG_CRONTAB is not set
  10.644 +# CONFIG_DC is not set
  10.645 +# CONFIG_FEATURE_DC_LIBM is not set
  10.646 +# CONFIG_DEVFSD is not set
  10.647 +# CONFIG_DEVFSD_MODLOAD is not set
  10.648 +# CONFIG_DEVFSD_FG_NP is not set
  10.649 +# CONFIG_DEVFSD_VERBOSE is not set
  10.650 +# CONFIG_FEATURE_DEVFS is not set
  10.651 +# CONFIG_DEVMEM is not set
  10.652 +# CONFIG_EJECT is not set
  10.653 +# CONFIG_FEATURE_EJECT_SCSI is not set
  10.654 +# CONFIG_FBSPLASH is not set
  10.655 +# CONFIG_FLASHCP is not set
  10.656 +# CONFIG_FLASH_LOCK is not set
  10.657 +# CONFIG_FLASH_UNLOCK is not set
  10.658 +# CONFIG_FLASH_ERASEALL is not set
  10.659 +# CONFIG_IONICE is not set
  10.660 +# CONFIG_INOTIFYD is not set
  10.661 +# CONFIG_LAST is not set
  10.662 +# CONFIG_FEATURE_LAST_SMALL is not set
  10.663 +# CONFIG_FEATURE_LAST_FANCY is not set
  10.664 +CONFIG_LESS=y
  10.665 +CONFIG_FEATURE_LESS_MAXLINES=9999999
  10.666 +CONFIG_FEATURE_LESS_BRACKETS=y
  10.667 +# CONFIG_FEATURE_LESS_FLAGS is not set
  10.668 +# CONFIG_FEATURE_LESS_MARKS is not set
  10.669 +CONFIG_FEATURE_LESS_REGEXP=y
  10.670 +# CONFIG_FEATURE_LESS_WINCH is not set
  10.671 +# CONFIG_FEATURE_LESS_DASHCMD is not set
  10.672 +# CONFIG_FEATURE_LESS_LINENUMS is not set
  10.673 +CONFIG_HDPARM=y
  10.674 +# CONFIG_FEATURE_HDPARM_GET_IDENTITY is not set
  10.675 +# CONFIG_FEATURE_HDPARM_HDIO_SCAN_HWIF is not set
  10.676 +# CONFIG_FEATURE_HDPARM_HDIO_UNREGISTER_HWIF is not set
  10.677 +# CONFIG_FEATURE_HDPARM_HDIO_DRIVE_RESET is not set
  10.678 +# CONFIG_FEATURE_HDPARM_HDIO_TRISTATE_HWIF is not set
  10.679 +CONFIG_FEATURE_HDPARM_HDIO_GETSET_DMA=y
  10.680 +# CONFIG_MAKEDEVS is not set
  10.681 +# CONFIG_FEATURE_MAKEDEVS_LEAF is not set
  10.682 +# CONFIG_FEATURE_MAKEDEVS_TABLE is not set
  10.683 +# CONFIG_MAN is not set
  10.684 +# CONFIG_MICROCOM is not set
  10.685 +# CONFIG_MOUNTPOINT is not set
  10.686 +# CONFIG_MT is not set
  10.687 +# CONFIG_RAIDAUTORUN is not set
  10.688 +# CONFIG_READAHEAD is not set
  10.689 +# CONFIG_RFKILL is not set
  10.690 +# CONFIG_RUNLEVEL is not set
  10.691 +# CONFIG_RX is not set
  10.692 +# CONFIG_SETSID is not set
  10.693 +# CONFIG_STRINGS is not set
  10.694 +# CONFIG_TASKSET is not set
  10.695 +# CONFIG_FEATURE_TASKSET_FANCY is not set
  10.696 +# CONFIG_TIME is not set
  10.697 +# CONFIG_TIMEOUT is not set
  10.698 +# CONFIG_TTYSIZE is not set
  10.699 +# CONFIG_VOLNAME is not set
  10.700 +# CONFIG_WALL is not set
  10.701 +# CONFIG_WATCHDOG is not set
  10.702 +
  10.703 +#
  10.704 +# Networking Utilities
  10.705 +#
  10.706 +# CONFIG_NBDCLIENT is not set
  10.707 +# CONFIG_NC is not set
  10.708 +# CONFIG_NC_SERVER is not set
  10.709 +# CONFIG_NC_EXTRA is not set
  10.710 +# CONFIG_NC_110_COMPAT is not set
  10.711 +# CONFIG_FEATURE_IPV6 is not set
  10.712 +# CONFIG_FEATURE_UNIX_LOCAL is not set
  10.713 +# CONFIG_FEATURE_PREFER_IPV4_ADDRESS is not set
  10.714 +# CONFIG_VERBOSE_RESOLUTION_ERRORS is not set
  10.715 +CONFIG_ARP=y
  10.716 +# CONFIG_ARPING is not set
  10.717 +# CONFIG_BRCTL is not set
  10.718 +# CONFIG_FEATURE_BRCTL_FANCY is not set
  10.719 +# CONFIG_FEATURE_BRCTL_SHOW is not set
  10.720 +# CONFIG_DNSD is not set
  10.721 +# CONFIG_ETHER_WAKE is not set
  10.722 +# CONFIG_FAKEIDENTD is not set
  10.723 +CONFIG_FTPD=y
  10.724 +CONFIG_FEATURE_FTP_WRITE=y
  10.725 +CONFIG_FEATURE_FTPD_ACCEPT_BROKEN_LIST=y
  10.726 +CONFIG_FTPGET=y
  10.727 +CONFIG_FTPPUT=y
  10.728 +# CONFIG_FEATURE_FTPGETPUT_LONG_OPTIONS is not set
  10.729 +CONFIG_HOSTNAME=y
  10.730 +CONFIG_HTTPD=y
  10.731 +CONFIG_FEATURE_HTTPD_RANGES=y
  10.732 +CONFIG_FEATURE_HTTPD_USE_SENDFILE=y
  10.733 +CONFIG_FEATURE_HTTPD_SETUID=y
  10.734 +CONFIG_FEATURE_HTTPD_BASIC_AUTH=y
  10.735 +# CONFIG_FEATURE_HTTPD_AUTH_MD5 is not set
  10.736 +CONFIG_FEATURE_HTTPD_CGI=y
  10.737 +CONFIG_FEATURE_HTTPD_CONFIG_WITH_SCRIPT_INTERPR=y
  10.738 +# CONFIG_FEATURE_HTTPD_SET_REMOTE_PORT_TO_ENV is not set
  10.739 +CONFIG_FEATURE_HTTPD_ENCODE_URL_STR=y
  10.740 +CONFIG_FEATURE_HTTPD_ERROR_PAGES=y
  10.741 +CONFIG_FEATURE_HTTPD_PROXY=y
  10.742 +CONFIG_FEATURE_HTTPD_GZIP=y
  10.743 +CONFIG_IFCONFIG=y
  10.744 +CONFIG_FEATURE_IFCONFIG_STATUS=y
  10.745 +# CONFIG_FEATURE_IFCONFIG_SLIP is not set
  10.746 +# CONFIG_FEATURE_IFCONFIG_MEMSTART_IOADDR_IRQ is not set
  10.747 +CONFIG_FEATURE_IFCONFIG_HW=y
  10.748 +CONFIG_FEATURE_IFCONFIG_BROADCAST_PLUS=y
  10.749 +# CONFIG_IFENSLAVE is not set
  10.750 +# CONFIG_IFPLUGD is not set
  10.751 +# CONFIG_IFUPDOWN is not set
  10.752 +CONFIG_IFUPDOWN_IFSTATE_PATH=""
  10.753 +# CONFIG_FEATURE_IFUPDOWN_IP is not set
  10.754 +# CONFIG_FEATURE_IFUPDOWN_IP_BUILTIN is not set
  10.755 +# CONFIG_FEATURE_IFUPDOWN_IFCONFIG_BUILTIN is not set
  10.756 +# CONFIG_FEATURE_IFUPDOWN_IPV4 is not set
  10.757 +# CONFIG_FEATURE_IFUPDOWN_IPV6 is not set
  10.758 +# CONFIG_FEATURE_IFUPDOWN_MAPPING is not set
  10.759 +# CONFIG_FEATURE_IFUPDOWN_EXTERNAL_DHCP is not set
  10.760 +CONFIG_INETD=y
  10.761 +CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_ECHO=y
  10.762 +CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_DISCARD=y
  10.763 +CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_TIME=y
  10.764 +CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_DAYTIME=y
  10.765 +CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_CHARGEN=y
  10.766 +# CONFIG_FEATURE_INETD_RPC is not set
  10.767 +# CONFIG_IP is not set
  10.768 +# CONFIG_FEATURE_IP_ADDRESS is not set
  10.769 +# CONFIG_FEATURE_IP_LINK is not set
  10.770 +# CONFIG_FEATURE_IP_ROUTE is not set
  10.771 +# CONFIG_FEATURE_IP_TUNNEL is not set
  10.772 +# CONFIG_FEATURE_IP_RULE is not set
  10.773 +# CONFIG_FEATURE_IP_SHORT_FORMS is not set
  10.774 +# CONFIG_FEATURE_IP_RARE_PROTOCOLS is not set
  10.775 +# CONFIG_IPADDR is not set
  10.776 +# CONFIG_IPLINK is not set
  10.777 +# CONFIG_IPROUTE is not set
  10.778 +# CONFIG_IPTUNNEL is not set
  10.779 +# CONFIG_IPRULE is not set
  10.780 +# CONFIG_IPCALC is not set
  10.781 +# CONFIG_FEATURE_IPCALC_FANCY is not set
  10.782 +# CONFIG_FEATURE_IPCALC_LONG_OPTIONS is not set
  10.783 +# CONFIG_NAMEIF is not set
  10.784 +# CONFIG_FEATURE_NAMEIF_EXTENDED is not set
  10.785 +CONFIG_NETSTAT=y
  10.786 +CONFIG_FEATURE_NETSTAT_WIDE=y
  10.787 +CONFIG_FEATURE_NETSTAT_PRG=y
  10.788 +CONFIG_NSLOOKUP=y
  10.789 +CONFIG_NTPD=y
  10.790 +CONFIG_FEATURE_NTPD_SERVER=y
  10.791 +CONFIG_PING=y
  10.792 +# CONFIG_PING6 is not set
  10.793 +CONFIG_FEATURE_FANCY_PING=y
  10.794 +# CONFIG_PSCAN is not set
  10.795 +CONFIG_ROUTE=y
  10.796 +# CONFIG_SLATTACH is not set
  10.797 +# CONFIG_TCPSVD is not set
  10.798 +CONFIG_TELNET=y
  10.799 +CONFIG_FEATURE_TELNET_TTYPE=y
  10.800 +CONFIG_FEATURE_TELNET_AUTOLOGIN=y
  10.801 +CONFIG_TELNETD=y
  10.802 +CONFIG_FEATURE_TELNETD_STANDALONE=y
  10.803 +# CONFIG_FEATURE_TELNETD_INETD_WAIT is not set
  10.804 +CONFIG_TFTP=y
  10.805 +CONFIG_TFTPD=y
  10.806 +
  10.807 +#
  10.808 +# Common options for tftp/tftpd
  10.809 +#
  10.810 +CONFIG_FEATURE_TFTPD_RIS=y
  10.811 +CONFIG_FEATURE_TFTP_GET=y
  10.812 +CONFIG_FEATURE_TFTP_PUT=y
  10.813 +CONFIG_FEATURE_TFTP_BLOCKSIZE=y
  10.814 +# CONFIG_FEATURE_TFTP_PROGRESS_BAR is not set
  10.815 +# CONFIG_TFTP_DEBUG is not set
  10.816 +# CONFIG_TRACEROUTE is not set
  10.817 +# CONFIG_TRACEROUTE6 is not set
  10.818 +# CONFIG_FEATURE_TRACEROUTE_VERBOSE is not set
  10.819 +# CONFIG_FEATURE_TRACEROUTE_SOURCE_ROUTE is not set
  10.820 +# CONFIG_FEATURE_TRACEROUTE_USE_ICMP is not set
  10.821 +CONFIG_TUNCTL=y
  10.822 +# CONFIG_FEATURE_TUNCTL_UG is not set
  10.823 +CONFIG_UDHCPD=y
  10.824 +# CONFIG_DHCPRELAY is not set
  10.825 +CONFIG_DUMPLEASES=y
  10.826 +# CONFIG_FEATURE_UDHCPD_WRITE_LEASES_EARLY is not set
  10.827 +CONFIG_DHCPD_LEASES_FILE="/var/lib/misc/udhcpd.leases"
  10.828 +CONFIG_UDHCPC=y
  10.829 +CONFIG_FEATURE_UDHCPC_ARPING=y
  10.830 +# CONFIG_FEATURE_UDHCP_PORT is not set
  10.831 +CONFIG_UDHCP_DEBUG=0
  10.832 +# CONFIG_FEATURE_UDHCP_RFC3397 is not set
  10.833 +CONFIG_UDHCPC_DEFAULT_SCRIPT="/usr/share/udhcpc/default.script"
  10.834 +CONFIG_UDHCPC_SLACK_FOR_BUGGY_SERVERS=80
  10.835 +CONFIG_IFUPDOWN_UDHCPC_CMD_OPTIONS=""
  10.836 +# CONFIG_UDPSVD is not set
  10.837 +# CONFIG_VCONFIG is not set
  10.838 +CONFIG_WGET=y
  10.839 +# CONFIG_FEATURE_WGET_STATUSBAR is not set
  10.840 +# CONFIG_FEATURE_WGET_AUTHENTICATION is not set
  10.841 +# CONFIG_FEATURE_WGET_LONG_OPTIONS is not set
  10.842 +# CONFIG_FEATURE_WGET_TIMEOUT is not set
  10.843 +# CONFIG_ZCIP is not set
  10.844 +
  10.845 +#
  10.846 +# Print Utilities
  10.847 +#
  10.848 +# CONFIG_LPD is not set
  10.849 +# CONFIG_LPR is not set
  10.850 +# CONFIG_LPQ is not set
  10.851 +
  10.852 +#
  10.853 +# Mail Utilities
  10.854 +#
  10.855 +# CONFIG_MAKEMIME is not set
  10.856 +CONFIG_FEATURE_MIME_CHARSET=""
  10.857 +# CONFIG_POPMAILDIR is not set
  10.858 +# CONFIG_FEATURE_POPMAILDIR_DELIVERY is not set
  10.859 +# CONFIG_REFORMIME is not set
  10.860 +# CONFIG_FEATURE_REFORMIME_COMPAT is not set
  10.861 +# CONFIG_SENDMAIL is not set
  10.862 +
  10.863 +#
  10.864 +# Process Utilities
  10.865 +#
  10.866 +# CONFIG_IOSTAT is not set
  10.867 +# CONFIG_MPSTAT is not set
  10.868 +# CONFIG_PMAP is not set
  10.869 +# CONFIG_POWERTOP is not set
  10.870 +# CONFIG_SMEMCAP is not set
  10.871 +CONFIG_FREE=y
  10.872 +# CONFIG_FUSER is not set
  10.873 +CONFIG_KILL=y
  10.874 +CONFIG_KILLALL=y
  10.875 +CONFIG_KILLALL5=y
  10.876 +# CONFIG_NMETER is not set
  10.877 +# CONFIG_PGREP is not set
  10.878 +CONFIG_PIDOF=y
  10.879 +CONFIG_FEATURE_PIDOF_SINGLE=y
  10.880 +CONFIG_FEATURE_PIDOF_OMIT=y
  10.881 +# CONFIG_PKILL is not set
  10.882 +CONFIG_PS=y
  10.883 +CONFIG_FEATURE_PS_WIDE=y
  10.884 +# CONFIG_FEATURE_PS_TIME is not set
  10.885 +# CONFIG_FEATURE_PS_ADDITIONAL_COLUMNS is not set
  10.886 +# CONFIG_FEATURE_PS_UNUSUAL_SYSTEMS is not set
  10.887 +# CONFIG_RENICE is not set
  10.888 +# CONFIG_BB_SYSCTL is not set
  10.889 +CONFIG_TOP=y
  10.890 +# CONFIG_FEATURE_TOP_CPU_USAGE_PERCENTAGE is not set
  10.891 +# CONFIG_FEATURE_TOP_CPU_GLOBAL_PERCENTS is not set
  10.892 +# CONFIG_FEATURE_TOP_SMP_CPU is not set
  10.893 +# CONFIG_FEATURE_TOP_DECIMALS is not set
  10.894 +# CONFIG_FEATURE_TOP_SMP_PROCESS is not set
  10.895 +CONFIG_FEATURE_TOPMEM=y
  10.896 +# CONFIG_FEATURE_SHOW_THREADS is not set
  10.897 +CONFIG_UPTIME=y
  10.898 +# CONFIG_WATCH is not set
  10.899 +
  10.900 +#
  10.901 +# Runit Utilities
  10.902 +#
  10.903 +# CONFIG_RUNSV is not set
  10.904 +# CONFIG_RUNSVDIR is not set
  10.905 +# CONFIG_FEATURE_RUNSVDIR_LOG is not set
  10.906 +# CONFIG_SV is not set
  10.907 +CONFIG_SV_DEFAULT_SERVICE_DIR=""
  10.908 +# CONFIG_SVLOGD is not set
  10.909 +# CONFIG_CHPST is not set
  10.910 +# CONFIG_SETUIDGID is not set
  10.911 +# CONFIG_ENVUIDGID is not set
  10.912 +# CONFIG_ENVDIR is not set
  10.913 +# CONFIG_SOFTLIMIT is not set
  10.914 +# CONFIG_CHCON is not set
  10.915 +# CONFIG_FEATURE_CHCON_LONG_OPTIONS is not set
  10.916 +# CONFIG_GETENFORCE is not set
  10.917 +# CONFIG_GETSEBOOL is not set
  10.918 +# CONFIG_LOAD_POLICY is not set
  10.919 +# CONFIG_MATCHPATHCON is not set
  10.920 +# CONFIG_RESTORECON is not set
  10.921 +# CONFIG_RUNCON is not set
  10.922 +# CONFIG_FEATURE_RUNCON_LONG_OPTIONS is not set
  10.923 +# CONFIG_SELINUXENABLED is not set
  10.924 +# CONFIG_SETENFORCE is not set
  10.925 +# CONFIG_SETFILES is not set
  10.926 +# CONFIG_FEATURE_SETFILES_CHECK_OPTION is not set
  10.927 +# CONFIG_SETSEBOOL is not set
  10.928 +# CONFIG_SESTATUS is not set
  10.929 +
  10.930 +#
  10.931 +# Shells
  10.932 +#
  10.933 +CONFIG_ASH=y
  10.934 +CONFIG_ASH_BASH_COMPAT=y
  10.935 +CONFIG_ASH_JOB_CONTROL=y
  10.936 +CONFIG_ASH_ALIAS=y
  10.937 +CONFIG_ASH_GETOPTS=y
  10.938 +# CONFIG_ASH_BUILTIN_ECHO is not set
  10.939 +# CONFIG_ASH_BUILTIN_PRINTF is not set
  10.940 +# CONFIG_ASH_BUILTIN_TEST is not set
  10.941 +CONFIG_ASH_CMDCMD=y
  10.942 +# CONFIG_ASH_MAIL is not set
  10.943 +CONFIG_ASH_OPTIMIZE_FOR_SIZE=y
  10.944 +CONFIG_ASH_RANDOM_SUPPORT=y
  10.945 +CONFIG_ASH_EXPAND_PRMT=y
  10.946 +# CONFIG_CTTYHACK is not set
  10.947 +# CONFIG_HUSH is not set
  10.948 +# CONFIG_HUSH_BASH_COMPAT is not set
  10.949 +# CONFIG_HUSH_BRACE_EXPANSION is not set
  10.950 +# CONFIG_HUSH_HELP is not set
  10.951 +# CONFIG_HUSH_INTERACTIVE is not set
  10.952 +# CONFIG_HUSH_SAVEHISTORY is not set
  10.953 +# CONFIG_HUSH_JOB is not set
  10.954 +# CONFIG_HUSH_TICK is not set
  10.955 +# CONFIG_HUSH_IF is not set
  10.956 +# CONFIG_HUSH_LOOPS is not set
  10.957 +# CONFIG_HUSH_CASE is not set
  10.958 +# CONFIG_HUSH_FUNCTIONS is not set
  10.959 +# CONFIG_HUSH_LOCAL is not set
  10.960 +# CONFIG_HUSH_RANDOM_SUPPORT is not set
  10.961 +# CONFIG_HUSH_EXPORT_N is not set
  10.962 +# CONFIG_HUSH_MODE_X is not set
  10.963 +# CONFIG_MSH is not set
  10.964 +CONFIG_FEATURE_SH_IS_ASH=y
  10.965 +# CONFIG_FEATURE_SH_IS_HUSH is not set
  10.966 +# CONFIG_FEATURE_SH_IS_NONE is not set
  10.967 +# CONFIG_FEATURE_BASH_IS_ASH is not set
  10.968 +# CONFIG_FEATURE_BASH_IS_HUSH is not set
  10.969 +CONFIG_FEATURE_BASH_IS_NONE=y
  10.970 +CONFIG_SH_MATH_SUPPORT=y
  10.971 +# CONFIG_SH_MATH_SUPPORT_64 is not set
  10.972 +CONFIG_FEATURE_SH_EXTRA_QUIET=y
  10.973 +# CONFIG_FEATURE_SH_STANDALONE is not set
  10.974 +# CONFIG_FEATURE_SH_NOFORK is not set
  10.975 +
  10.976 +#
  10.977 +# System Logging Utilities
  10.978 +#
  10.979 +CONFIG_SYSLOGD=y
  10.980 +CONFIG_FEATURE_ROTATE_LOGFILE=y
  10.981 +CONFIG_FEATURE_REMOTE_LOG=y
  10.982 +CONFIG_FEATURE_SYSLOGD_DUP=y
  10.983 +CONFIG_FEATURE_SYSLOGD_READ_BUFFER_SIZE=256
  10.984 +# CONFIG_FEATURE_IPC_SYSLOG is not set
  10.985 +CONFIG_FEATURE_IPC_SYSLOG_BUFFER_SIZE=0
  10.986 +# CONFIG_LOGREAD is not set
  10.987 +# CONFIG_FEATURE_LOGREAD_REDUCED_LOCKING is not set
  10.988 +CONFIG_KLOGD=y
  10.989 +# CONFIG_FEATURE_KLOGD_KLOGCTL is not set
  10.990 +CONFIG_LOGGER=y
    11.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    11.2 +++ b/busybox/stuff/busybox.conf	Tue Feb 01 09:36:49 2011 +0100
    11.3 @@ -0,0 +1,12 @@
    11.4 +# /etc/busybox.conf: SliTaz GNU/linux Busybox configuration.
    11.5 +#
    11.6 +
    11.7 +[SUID]
    11.8 +# Allow command to be run by anyone.
    11.9 +su = ssx root.root
   11.10 +passwd = ssx root.root
   11.11 +loadkmap = ssx root.root
   11.12 +mount = ssx root.root
   11.13 +reboot = ssx root.root
   11.14 +halt = ssx root.root
   11.15 +poweroff = ssx root.root
    12.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    12.2 +++ b/busybox/stuff/daemon	Tue Feb 01 09:36:49 2011 +0100
    12.3 @@ -0,0 +1,85 @@
    12.4 +#!/bin/sh
    12.5 +# Start, stop and restart a busybox deamon on SliTaz, at boot time or 
    12.6 +# with the command line.
    12.7 +#
    12.8 +# To start daemon at boot time, just put the right name in the $RUN_DAEMONS
    12.9 +# variable of /etc/rcS.conf and configure options with /etc/daemons.conf.
   12.10 +#
   12.11 +. /etc/init.d/rc.functions
   12.12 +
   12.13 +NAME=$(basename $0)
   12.14 +DESC="$NAME deamon"
   12.15 +DAEMON=$(which $NAME)
   12.16 +eval $(grep -i ^${NAME}_OPTIONS /etc/daemons.conf | sed 's/.*_OPT/OPT/')
   12.17 +PIDFILE=/var/run/$NAME.pid
   12.18 +
   12.19 +active_inetd()
   12.20 +{
   12.21 +if grep $DAEMON /etc/inetd.conf | grep -q ^\#; then
   12.22 +    sed -i "s,^#\(.*$DAEMON.*\)$,\1," /etc/inetd.conf
   12.23 +    /etc/init.d/inetd stop > /dev/null
   12.24 +    exec /etc/init.d/inetd start
   12.25 +else
   12.26 +    echo "$NAME is already active."
   12.27 +    exit 1
   12.28 +fi
   12.29 +}
   12.30 +
   12.31 +inactive_inetd()
   12.32 +{
   12.33 +if grep $DAEMON /etc/inetd.conf | grep -q ^\#; then
   12.34 +    echo "$NAME is not active."
   12.35 +    exit 1
   12.36 +else
   12.37 +    sed -i "s,^.*$DAEMON.*$,#&," /etc/inetd.conf
   12.38 +    /etc/init.d/inetd stop > /dev/null
   12.39 +    exec /etc/init.d/inetd start
   12.40 +fi
   12.41 +}
   12.42 +
   12.43 +case "$1" in
   12.44 +  start)
   12.45 +    grep -qs $DAEMON /etc/inetd.conf && active_inetd
   12.46 +    if active_pidfile $PIDFILE $NAME ; then
   12.47 +      echo "$NAME is already running."
   12.48 +      exit 1
   12.49 +    fi
   12.50 +    echo -n "Starting $DESC: $NAME... "
   12.51 +    $DAEMON $OPTIONS 
   12.52 +    [ -f $PIDFILE ] || pidof $NAME | awk '{ print $1 }' > $PIDFILE
   12.53 +    active_pidfile $PIDFILE $NAME
   12.54 +    status
   12.55 +    ;;
   12.56 +  stop)
   12.57 +    grep -qs $DAEMON /etc/inetd.conf && inactive_inetd
   12.58 +    if ! active_pidfile $PIDFILE $NAME ; then
   12.59 +      echo "$NAME is not running."
   12.60 +      exit 1
   12.61 +    fi
   12.62 +    echo -n "Stopping $DESC: $NAME... "
   12.63 +    kill `cat $PIDFILE`
   12.64 +    status
   12.65 +    ;;
   12.66 +  restart)
   12.67 +    grep -qs $DAEMON /etc/inetd.conf && exit 0
   12.68 +    if ! active_pidfile $PIDFILE $NAME ; then
   12.69 +      echo "$NAME is not running."
   12.70 +      exit 1
   12.71 +    fi
   12.72 +    echo -n "Restarting $DESC: $NAME... "
   12.73 +    kill `cat $PIDFILE`
   12.74 +    sleep 2
   12.75 +    $DAEMON $OPTIONS
   12.76 +    [ -f $PIDFILE ] || pidof $NAME | awk '{ print $1 }' > $PIDFILE
   12.77 +    active_pidfile $PIDFILE $NAME
   12.78 +    status
   12.79 +    ;;
   12.80 +*)
   12.81 +    echo ""
   12.82 +    echo -e "\033[1mUsage:\033[0m /etc/init.d/`basename $0` [start|stop|restart]"
   12.83 +    echo ""
   12.84 +    exit 1
   12.85 +    ;;
   12.86 +esac
   12.87 +
   12.88 +exit 0
    13.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    13.2 +++ b/busybox/stuff/dnsd.conf	Tue Feb 01 09:36:49 2011 +0100
    13.3 @@ -0,0 +1,5 @@
    13.4 +# /etc/dnsd.conf: SliTaz DNS server configuration.
    13.5 +#
    13.6 +
    13.7 +slitaz 192.168.0.6
    13.8 +gateway 192.168.0.1
    14.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    14.2 +++ b/busybox/stuff/httpd_helper.sh	Tue Feb 01 09:36:49 2011 +0100
    14.3 @@ -0,0 +1,166 @@
    14.4 +#!/bin/sh
    14.5 +#
    14.6 +# busybox/httpd helper for shell cgi scripts
    14.7 +#
    14.8 +# GET [var] | POST [var] | FILE [var {name|tmpname|size|type}]
    14.9 +# urlencode string | htmlentities string | httpinfo
   14.10 +
   14.11 +alias urlencode='httpd -e'
   14.12 +
   14.13 +header()
   14.14 +{
   14.15 +[ -z "$1" ] && echo -e "Content-type: text/html\r\n" || echo -e "$1\r\n"
   14.16 +}
   14.17 +
   14.18 +htmlentities()
   14.19 +{
   14.20 +echo $1 | sed -e 's|&|\&amp;|g' -e 's|<|\&lt;|g' -e 's|>|\&gt;|g' -e 's|"|\&quot;|g'
   14.21 +}
   14.22 +
   14.23 +GET()
   14.24 +{
   14.25 +[ -z "$1" ] && echo $GET__NAMES || [ -n "$GET__NAMES" ] && eval echo \$GET_$1
   14.26 +}
   14.27 +
   14.28 +POST()
   14.29 +{
   14.30 +[ -z "$1" ] && echo $POST__NAMES || [ -n "$POST__NAMES" ] && eval echo \$POST_$1
   14.31 +}
   14.32 +
   14.33 +FILE()
   14.34 +{
   14.35 +[ -z "$1" ] && echo $FILE__NAMES || [ -n "$FILE__NAMES" ] && eval echo \$FILE_${1}_$2
   14.36 +}
   14.37 +
   14.38 +httpinfo()
   14.39 +{
   14.40 +local i
   14.41 +local x
   14.42 +for i in SERVER_PROTOCOL SERVER_SOFTWARE SERVER_NAME SERVER_PORT AUTH_TYPE \
   14.43 +	 GATEWAY_INTERFACE REMOTE_HOST REMOTE_ADDR REMOTE_PORT \
   14.44 +	 HTTP_REFERER HTTP_HOST HTTP_USER_AGENT HTTP_ACCEPT \
   14.45 +	 HTTP_ACCEPT_LANGUAGE HTTP_COOKIE AUTH_TYPE REMOTE_USER REMOTE_IDENT \
   14.46 +	 REQUEST_METHOD REQUEST_URI QUERY_STRING CONTENT_LENGTH CONTENT_TYPE \
   14.47 +	 SCRIPT_NAME SCRIPT_FILENAME PATH_INFO PATH_TRANSLATED \
   14.48 +	 USER HOME LOGNAME SHELL PWD ; do
   14.49 +	eval x=\$$i
   14.50 +	[ -n "$x" ] && echo "$i='$x'"
   14.51 +done
   14.52 +for i in $GET__NAMES ; do
   14.53 +	echo "GET[$i]='$(GET $i)'"
   14.54 +done
   14.55 +for i in $POST__NAMES ; do
   14.56 +	echo "POST[$i]='$(POST $i)'"
   14.57 +done
   14.58 +for i in $FILE__NAMES ; do
   14.59 +	for j in name size type tmpname ; do
   14.60 +		echo "FILE[$i][$j]='$(FILE $i $j)'"
   14.61 +	done
   14.62 +done
   14.63 +}
   14.64 +
   14.65 +read_query_string()
   14.66 +{
   14.67 +local i
   14.68 +local names
   14.69 +names=""
   14.70 +IFS="&"
   14.71 +for i in $QUERY_STRING ; do
   14.72 +	names="$names ${i%%=*}"
   14.73 +	eval ${1}_${i%%=*}=\'$(httpd -d "${i#*=}" | sed "s/'/\'\\\\\'\'/g")\'
   14.74 +done
   14.75 +unset IFS
   14.76 +eval ${1}__NAMES=\'${names# }\'
   14.77 +}
   14.78 +
   14.79 +[ "$REQUEST_METHOD" == "GET" -a -z "$GET__NAMES" ] && read_query_string GET
   14.80 +
   14.81 +ddcut()
   14.82 +{
   14.83 +page=4096
   14.84 +skip=$1
   14.85 +count=$(($2 - $1 -2))
   14.86 +tmp=$(($skip / $page))
   14.87 +[ $tmp -ne 0 ] && dd bs=$page skip=$tmp count=0 
   14.88 +skip=$(($skip - ($tmp * $page) ))
   14.89 +dd bs=1 skip=$skip count=0
   14.90 +tmp=$(( ($page - $skip) % $page ))
   14.91 +if [ $tmp -ne 0 -a $tmp -le $count ]; then
   14.92 +	dd bs=1 count=$tmp
   14.93 +	count=$(($count - $tmp))
   14.94 +fi
   14.95 +tmp=$(($count / $page))
   14.96 +[ $tmp -ne 0 ] && dd bs=$page count=$tmp
   14.97 +dd bs=1 count=$(($count - ($tmp * $page) ))
   14.98 +}
   14.99 +
  14.100 +if [ "$REQUEST_METHOD" == "POST" -a -z "$POST__NAMES" ]; then
  14.101 +	prefix=/tmp/httpd_post
  14.102 +	mkdir $prefix$$
  14.103 +	now=$(stat -c %Y $prefix$$)
  14.104 +	for i in $prefix* ; do
  14.105 +		[ $(stat -c %Y $i) -lt $(($now - 3600)) ] && rm -rf $i
  14.106 +	done
  14.107 +	post=$prefix$$/post
  14.108 +	n=1
  14.109 +	cat > ${post}0
  14.110 +	read delim < ${post}0
  14.111 +	case "$delim" in
  14.112 +	-*)	awk "/$delim/ { o+=index(\$0,\"$delim\")-1; print o }
  14.113 +	   		  { o+=1+length() }" < ${post}0 | while read offset; do
  14.114 +		    if [ $offset -ne 0 ]; then
  14.115 +			ddcut $last $offset < ${post}0 > $post$n 2> /dev/null
  14.116 +			n=$(($n+1))
  14.117 +		    fi
  14.118 +		    last=$offset
  14.119 +		done
  14.120 +		rm -f ${post}0
  14.121 +		CR=`printf '\r'`
  14.122 +		for i in $post* ; do
  14.123 +		    head -n 2 $i | grep -q filename= || echo '' >> $i
  14.124 +		    filename=
  14.125 +		    while read line; do
  14.126 +			case "$line" in
  14.127 +			*Content-Disposition*)
  14.128 +			    name=$(echo $line | sed 's/.* name="\([^"]*\)".*$/\1/')
  14.129 +			    case "$line" in
  14.130 +			    *filename=*) filename=$(echo $line | sed 's/.* filename="\([^"]*\)".*$/\1/') ;;
  14.131 +			    esac ;;
  14.132 +			*Content-Type*)
  14.133 +			    type=$(echo $line | sed 's/.*-Type: \(.*\).$/\1/') ;;
  14.134 +			$CR)
  14.135 +			    if [ -n "$filename" ]; then
  14.136 +				tmp=$(mktemp $prefix$$/uploadXXXXXX)
  14.137 +				cat > $tmp
  14.138 +				FILE__NAMES="$FILE__NAMES $name"
  14.139 +				FILE__NAMES="${FILE__NAMES# }"
  14.140 +				eval FILE_${name}_tmpname=$tmp
  14.141 +				eval FILE_${name}_name=$filename
  14.142 +				eval FILE_${name}_size=$(stat -c %s $tmp)
  14.143 +				eval FILE_${name}_type=$type
  14.144 +			    elif [ -n "$name" ]; then
  14.145 +				eval var=\$POST_${name}
  14.146 +				while read line; do
  14.147 +					[ -n "$var" ] && var="$var
  14.148 +"
  14.149 +					var="$line"
  14.150 +				done
  14.151 +				eval POST_${name}="\$var"
  14.152 +				case " $POST__NAMES " in
  14.153 +				*\ $name\ *) ;;
  14.154 +				*) POST__NAMES="$POST__NAMES $name"
  14.155 +				   POST__NAMES="${POST__NAMES# }" ;;
  14.156 +				esac
  14.157 +			    fi
  14.158 +			    break ;;
  14.159 +			*)
  14.160 +			esac
  14.161 +		    done < $i
  14.162 +		    rm -f $i
  14.163 +		done
  14.164 +		rmdir $(dirname $post) ;;
  14.165 +	*)	export QUERY_STRING="$delim"
  14.166 +		rm -rf $(dirname $post)
  14.167 +		read_query_string POST ;;
  14.168 +	esac
  14.169 +fi
    15.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    15.2 +++ b/busybox/stuff/inetd.conf	Tue Feb 01 09:36:49 2011 +0100
    15.3 @@ -0,0 +1,31 @@
    15.4 +# Internet server configuration database
    15.5 +#
    15.6 +#
    15.7 +# If you want to disable an entry so it isn't touched during
    15.8 +# package updates just comment it out with a single '#' character.
    15.9 +#
   15.10 +# If you make changes to this file, either reboot your machine or
   15.11 +# send the inetd process a HUP signal:
   15.12 +# Do a "ps x" as root and look up the pid of inetd. Then do a
   15.13 +#     kill -HUP <pid of inetd>
   15.14 +# inetd will re-read this file whenever it gets that signal.
   15.15 +# <service_name> <sock_type> <proto> <flags> <user> <server_path> <args>
   15.16 +#
   15.17 +#:INTERNAL: Internal services
   15.18 +# It is generally considered safer to keep these off.
   15.19 +echo     stream  tcp	nowait	root	internal
   15.20 +echo     dgram   udp	wait	root	internal
   15.21 +#discard  stream  tcp	nowait	root	internal
   15.22 +#discard  dgram   udp	wait	root	internal
   15.23 +daytime  stream  tcp	nowait	root	internal
   15.24 +daytime  dgram   udp	wait	root	internal
   15.25 +#chargen  stream  tcp	nowait	root	internal
   15.26 +#chargen  dgram   udp	wait	root	internal
   15.27 +time     stream  tcp	nowait	root	internal
   15.28 +time     dgram   udp	wait	root	internal
   15.29 +
   15.30 +# These are standard services.
   15.31 +#
   15.32 +tftp	dgram	udp	wait	root	/usr/bin/tftpd	/usr/bin/tftpd -r /boot
   15.33 +#systat	stream	tcp	nowait	nobody	/bin/ps
   15.34 +#netstat	stream	tcp	nowait	root	/bin/netstat	/bin/netstat	-a
    16.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    16.2 +++ b/busybox/stuff/init	Tue Feb 01 09:36:49 2011 +0100
    16.3 @@ -0,0 +1,159 @@
    16.4 +#!/bin/sh
    16.5 +
    16.6 +launch_init()
    16.7 +{
    16.8 +	umount /proc
    16.9 +	echo -e "\\033[70G[ \\033[1;33mOK\\033[0;39m ]"
   16.10 +	exec /sbin/switch_root mnt /sbin/init
   16.11 +}
   16.12 +
   16.13 +failed()
   16.14 +{
   16.15 +	umount /proc
   16.16 +	echo -e "\\033[70G[ \\033[1;31mFailed\\033[0;39m ]"
   16.17 +	conspy -d 1 > /init.log
   16.18 +}
   16.19 +
   16.20 +try_init()
   16.21 +{
   16.22 +	if [ ! -d /mnt/etc ] && grep -q cryptoroot= /proc/cmdline; then
   16.23 +		modprobe dm-mod
   16.24 +		modprobe dm-crypt
   16.25 +		modprobe aes-i586
   16.26 +		root="$(sed 's/.*cryptoroot=\([^ ]*\).*/\1/' < /proc/cmdline)"
   16.27 +		dev=${root#/dev/}
   16.28 +		dmlabel=crypto-$dev
   16.29 +		if cryptsetup isLuks $root 2> /dev/null; then
   16.30 +			cryptsetup luksOpen $root $dmlabel
   16.31 +		else
   16.32 +			read -s -t 60 -p "Pass phrase : " passphrase
   16.33 +			key=$(echo $passphrase | hashalot -x -n 32 sha512)
   16.34 +			blocks=$(cat $(find /sys/block | grep /$dev/size))
   16.35 +			echo 0 $blocks crypt aes-plain $key 0 $root 0 | \
   16.36 +				dmsetup create $dmlabel
   16.37 +		fi
   16.38 +		mount /dev/mapper/$dmlabel /mnt
   16.39 +	fi
   16.40 +	if [ -d /mnt/etc ]; then
   16.41 +		umount /sys
   16.42 +		[ -n "$1" ] && for i in $@ ; do
   16.43 +			cp -a $i /mnt$(dirname $i)
   16.44 +		done
   16.45 +		mount /mnt -o remount,ro
   16.46 +		launch_init
   16.47 +	fi
   16.48 +	failed
   16.49 +}
   16.50 +
   16.51 +mount_mapper()
   16.52 +{
   16.53 +	mount $root /mnt
   16.54 +	try_init /dev/mapper $@
   16.55 +}
   16.56 +
   16.57 +lvmsetup()
   16.58 +{
   16.59 +	grep -q lvmroot= /proc/cmdline || return 1
   16.60 +	modprobe dm-mod
   16.61 +	vgscan --ignorelockingfailure
   16.62 +	vgchange -ay --ignorelockingfailure
   16.63 +	root="/dev/mapper/$(sed 's/.*lvmroot=\([^ ]*\).*/\1/' < /proc/cmdline)"
   16.64 +	return 0
   16.65 +}
   16.66 +
   16.67 +load_raid()
   16.68 +{
   16.69 +while read line; do
   16.70 +	case "$line" in
   16.71 +	*raid10*)	modprobe raid10 ;;
   16.72 +	*raid0*)	modprobe raid0 ;;
   16.73 +	*raid1*)	modprobe raid1 ;;
   16.74 +	*raid[456]*)	modprobe raid456 ;;
   16.75 +	esac
   16.76 +done
   16.77 +}
   16.78 +
   16.79 +mount -t proc proc /proc
   16.80 +mount -t sysfs sysfs /sys
   16.81 +if grep -q dmraid= /proc/cmdline; then
   16.82 +	root="$(sed 's/.*dmraid=\([^ ]*\).*/\1/' < /proc/cmdline)"
   16.83 +	echo -n "Switching / to dmraid $root..."
   16.84 +	dmraid -s | grep ^type | awk '{ print $3 }' | load_raid
   16.85 +	case "$root" in
   16.86 +	/dev/*);;
   16.87 +	*) root=/dev/mapper/$(dmraid -s|grep ^name|awk '{print $3}')p${root#p};;
   16.88 +	esac
   16.89 +	dmraid -ay
   16.90 +	lvmsetup 
   16.91 +	mount_mapper
   16.92 +fi
   16.93 +if grep -q softraid= /proc/cmdline; then
   16.94 +	root="$(sed 's/.*softraid=\([^ ]*\).*/\1/' < /proc/cmdline)"
   16.95 +	echo -n "Switching / to softraid $root..."
   16.96 +	mdadm --examine --scan --config=partitions > /etc/mdadm.conf
   16.97 +	grep -qs " $root " /etc/mdadm.conf ||
   16.98 +		root=$(awk '/dev.md/ { print $2; exit }' < /etc/mdadm.conf)
   16.99 +	grep level=raid /etc/mdadm.conf | load_raid
  16.100 +	mdadm --assemble --scan
  16.101 +	lvmsetup 
  16.102 +	mount_mapper /etc/mdadm.conf
  16.103 +fi
  16.104 +if lvmsetup; then
  16.105 +	echo -n "Switching / to lvm $root..."
  16.106 +	mount_mapper
  16.107 +fi
  16.108 +if grep -q mount= /proc/cmdline; then
  16.109 +	root="$(sed 's/.*mount=\([^ ]*\).*/\1/' < /proc/cmdline)"
  16.110 +	dev=$(blkid | grep $root | sed 's/:.*//;q')
  16.111 +	echo -n "Mounting $dev ($root) ..."
  16.112 +	if ! mount $dev /mnt; then
  16.113 +		if echo $dev | grep -q "/dev/sd"; then
  16.114 +			delay=`cat /sys/module/usb_storage/parameters/delay_use`
  16.115 +			delay=$((1+$delay))
  16.116 +			echo -n "sleep for $delay seconds..."
  16.117 +			sleep $delay
  16.118 +		fi
  16.119 +		mount $dev /mnt
  16.120 +	fi
  16.121 +fi
  16.122 +if grep -q loopfs= /proc/cmdline; then
  16.123 +	loopfs="$(sed 's/.*loopfs=\([^ ]*\).*/\1/' < /proc/cmdline)"
  16.124 +	echo -n "Switching / to loop $loopfs..."
  16.125 +	losetup /dev/loop0 /mnt/$loopfs
  16.126 +	mount /dev/loop0 /mnt 2> /dev/null
  16.127 +fi
  16.128 +grep -q cryptoroot= /proc/cmdline && try_init
  16.129 +umount /sys
  16.130 +if grep -q subroot= /proc/cmdline; then
  16.131 +	subroot="/$(sed 's/.*subroot=\([^ ]*\).*/\1/' < /proc/cmdline)" &&
  16.132 +	if [ -s /usr/share/boot/busybox-static ]; then
  16.133 +		mv /usr/share/boot/busybox-static .
  16.134 +		/busybox-static rm -rf /etc /lib /*bin /usr /var
  16.135 +		exec /busybox-static chroot /mnt$subroot /sbin/init
  16.136 +	else
  16.137 +		exec chroot /mnt$subroot /sbin/init
  16.138 +	fi
  16.139 +fi
  16.140 +echo -n "Switching / to tmpfs..."
  16.141 +size="$(grep rootfssize= < /proc/cmdline | \
  16.142 +	sed 's/.*rootfssize=\([0-9]*[kmg%]\).*/-o size=\1/')"
  16.143 +free=$(busybox free | busybox awk '/Mem:/ { print int(($4*100)/$3) }')
  16.144 +umount /proc
  16.145 +[ -n "$size" ] || size="-o size=90%"
  16.146 +if [ $free -lt 100 ] || ! mount -t tmpfs $size tmpfs /mnt; then
  16.147 +	echo -e "\\033[70G[ \\033[1;33mSkipped\\033[0;39m]"
  16.148 +	umount /proc
  16.149 +	exec /sbin/init
  16.150 +fi
  16.151 +for i in $(ls -a /); do
  16.152 +	case "$i" in
  16.153 +	.|..)	;;
  16.154 +	mnt)	mkdir /mnt/mnt;;
  16.155 +	*)	if ! cp -a /$i /mnt 2> /dev/null; then
  16.156 +			failed
  16.157 +			umount /mnt
  16.158 +			exec /sbin/init
  16.159 +		fi;;
  16.160 +	esac
  16.161 +done
  16.162 +launch_init
    17.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    17.2 +++ b/busybox/stuff/udhcp.script	Tue Feb 01 09:36:49 2011 +0100
    17.3 @@ -0,0 +1,47 @@
    17.4 +#!/bin/sh
    17.5 +
    17.6 +# udhcpc script edited by Tim Riker <Tim@Rikers.org>
    17.7 +
    17.8 +[ -z "$1" ] && echo "Error: should be called from udhcpc" && exit 1
    17.9 +
   17.10 +[ "$subnet" == "255.255.255.255" ] && subnet="255.255.0.0" # qemu weirdness
   17.11 +RESOLV_CONF="/etc/resolv.conf"
   17.12 +[ -n "$broadcast" ] && BROADCAST="broadcast $broadcast"
   17.13 +[ -n "$subnet" ] && NETMASK="netmask $subnet"
   17.14 +
   17.15 +case "$1" in
   17.16 +	deconfig)
   17.17 +		/sbin/ifconfig $interface 0.0.0.0
   17.18 +		for i in /etc/ipdown.d/*; do
   17.19 +			[ -x $i ] && $i $interface
   17.20 +		done
   17.21 +		;;
   17.22 +
   17.23 +	renew|bound)
   17.24 +		/sbin/ifconfig $interface $ip $BROADCAST $NETMASK
   17.25 +
   17.26 +		if [ -n "$router" ] ; then
   17.27 +			echo "deleting routers"
   17.28 +			while route del default gw 0.0.0.0 dev $interface ; do
   17.29 +				:
   17.30 +			done
   17.31 +
   17.32 +			metric=0
   17.33 +			for i in $router ; do
   17.34 +				route add default gw $i dev $interface metric $((metric++))
   17.35 +			done
   17.36 +		fi
   17.37 +
   17.38 +		echo -n > $RESOLV_CONF
   17.39 +		[ -n "$domain" ] && echo search $domain >> $RESOLV_CONF
   17.40 +		for i in $dns ; do
   17.41 +			echo adding dns $i
   17.42 +			echo nameserver $i >> $RESOLV_CONF
   17.43 +		done
   17.44 +		[ "$1" == "bound" ] && for i in /etc/ipup.d/*; do
   17.45 +			[ -x $i ] && $i $interface $ip $dns
   17.46 +		done
   17.47 +		;;
   17.48 +esac
   17.49 +
   17.50 +exit 0
    18.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    18.2 +++ b/busybox/stuff/udhcpd.conf	Tue Feb 01 09:36:49 2011 +0100
    18.3 @@ -0,0 +1,68 @@
    18.4 +# /etc/udhcpd.conf: SliTaz DHCP server configuration.
    18.5 +#
    18.6 +
    18.7 +# The start and end of the IP lease block
    18.8 +start           192.168.0.20    #default: 192.168.0.20
    18.9 +end             192.168.0.254   #default: 192.168.0.254
   18.10 +
   18.11 +# The interface that udhcpd will use
   18.12 +interface       eth0            #default: eth0
   18.13 +
   18.14 +# The maximum number of leases (includes addressesd reserved
   18.15 +# by OFFER's, DECLINE's, and ARP conficts
   18.16 +#max_leases     254             #default: 254
   18.17 +
   18.18 +# The amount of time that an IP will be reserved (leased) for if a
   18.19 +# DHCP decline message is received (seconds).
   18.20 +#decline_time   3600            #default: 3600 (1 hour)
   18.21 +
   18.22 +# The amount of time that an IP will be reserved (leased) for if an
   18.23 +# ARP conflct occurs. (seconds
   18.24 +#conflict_time  3600            #default: 3600 (1 hour)
   18.25 +
   18.26 +# How long an offered address is reserved (leased) in seconds
   18.27 +#offer_time     60              #default: 60 (1 minute)
   18.28 +
   18.29 +# If a lease to be given is below this value, the full lease time is
   18.30 +# instead used (seconds).
   18.31 +#min_lease      60              #defult: 60
   18.32 +
   18.33 +# The location of the leases file
   18.34 +lease_file     /var/lib/udhcpd.leases     #default: /var/lib/misc/udhcpd.leases
   18.35 +
   18.36 +# The location of the pid file
   18.37 +pidfile        /var/run/udhcpd.pid     #default: /var/run/udhcpd.pid
   18.38 +
   18.39 +# The remainer of options are DHCP options and can be specifed with the
   18.40 +# keyword 'opt' or 'option'. If an option can take multiple items, such
   18.41 +# as the dns option, they can be listed on the same line, or multiple
   18.42 +# lines. The only option with a default is 'lease'.
   18.43 +
   18.44 +#Examples
   18.45 +#opt     dns     192.168.10.2 192.168.10.10
   18.46 +option  subnet  255.255.255.0
   18.47 +#option  dns     129.219.13.81   # appened to above DNS servers for a total of 3
   18.48 +option  lease   864000          # 10 days of seconds
   18.49 +
   18.50 +# Currently supported options
   18.51 +#opt subnet
   18.52 +#opt timezone
   18.53 +#opt router
   18.54 +#opt timesrv
   18.55 +#opt namesrv
   18.56 +#opt dns
   18.57 +#opt logsrv
   18.58 +#opt cookiesrv
   18.59 +#opt lprsrv
   18.60 +#opt bootsize
   18.61 +#opt domain
   18.62 +#opt swapsrv
   18.63 +#opt rootpath
   18.64 +#opt ipttl
   18.65 +#opt mtu
   18.66 +#opt broadcast
   18.67 +#opt wins
   18.68 +#opt lease
   18.69 +#opt ntpsrv
   18.70 +#opt tftp
   18.71 +#opt bootfile
    19.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    19.2 +++ b/busybox/stuff/zcip.script	Tue Feb 01 09:36:49 2011 +0100
    19.3 @@ -0,0 +1,17 @@
    19.4 +#!/bin/sh
    19.5 +
    19.6 +[ "$1" = "init" ] && exit 0
    19.7 +[ -n "$ip" ] || exit 1
    19.8 +case "$1" in
    19.9 +config)		ifconfig $interface $ip netmask 255.255.0.0 up
   19.10 +		for i in /etc/ipup.d/*; do
   19.11 +			[ -e $i ] && . $i $interface $ip
   19.12 +		done
   19.13 +		;;
   19.14 +deconfig)	ifconfig $interface down
   19.15 +		for i in /etc/ipdown.d/*; do
   19.16 +			[ -e $i ] && . $i $interface
   19.17 +		done
   19.18 +		;;
   19.19 +*)		exit 1;;
   19.20 +esac