flavors-stable rev 168 4.0

Remove xfce buggy flavor
author Christophe Lincoln <pankso@slitaz.org>
date Tue Apr 10 13:01:23 2012 +0200 (2012-04-10)
parents b8f37d1b78d2
children 5ae2554c9e2a
files xfce/packages.list xfce/receipt xfce/rootcd/README xfce/rootcd/index.html xfce/rootcd/style.css xfce/rootfs/etc/init.d/bootopts.sh xfce/rootfs/etc/init.d/network.sh xfce/rootfs/etc/lxpanel/default/panels/panel xfce/rootfs/etc/skel/.Xdefaults xfce/rootfs/etc/skel/.config/pcmanfm/main xfce/rootfs/etc/skel/.gtkrc-2.0 xfce/rootfs/etc/skel/.netsurf/Choices xfce/rootfs/etc/skel/Desktop/slitaz-doc.desktop xfce/rootfs/etc/slitaz/applications.conf xfce/rootfs/etc/xdg/openbox/menu.en.xml xfce/rootfs/etc/xdg/openbox/menu.fr.xml xfce/rootfs/etc/xdg/openbox/menu.pt.xml xfce/rootfs/etc/xdg/openbox/rc.xml xfce/rootfs/root/.Xdefaults xfce/rootfs/root/.gtkrc-2.0 xfce/rootfs/sbin/tazlocale xfce/rootfs/usr/bin/slitaz-installer xfce/rootfs/usr/bin/tazlito xfce/rootfs/usr/bin/tazlitobox xfce/rootfs/usr/bin/wifibox xfce/rootfs/usr/share/applications/burnbox-doc.desktop xfce/rootfs/usr/share/applications/gpl-license.desktop xfce/rootfs/usr/share/applications/system-doc.desktop xfce/rootfs/usr/share/applications/tazlito-doc.desktop xfce/rootfs/usr/share/applications/tazlitobox.desktop xfce/rootfs/usr/share/applications/tazpkg-doc.desktop xfce/rootfs/usr/share/doc/slitaz/book.css xfce/rootfs/usr/share/doc/slitaz/favicon.ico xfce/rootfs/usr/share/doc/slitaz/images/css/header.png xfce/rootfs/usr/share/doc/slitaz/index.de.html xfce/rootfs/usr/share/doc/slitaz/index.en.html xfce/rootfs/usr/share/doc/slitaz/index.fr.html xfce/rootfs/usr/share/doc/slitaz/index.hu.html xfce/rootfs/usr/share/doc/slitaz/index.pt.html xfce/rootfs/usr/share/doc/slitaz/template.html xfce/rootfs/usr/share/images/slitaz-background.jpg xfce/rootfs/usr/share/pixmaps/slitaz-menu.png xfce/rootfs/usr/share/slim/themes/slitaz/background.png xfce/rootfs/usr/share/slim/themes/slitaz/panel.png xfce/rootfs/usr/share/slim/themes/slitaz/slim.theme xfce/rootfs/usr/share/webhome/index.html xfce/rootfs/usr/share/webhome/netsurf.html xfce/rootfs/usr/share/webhome/style.css
line diff
     1.1 --- a/xfce/packages.list	Tue Apr 10 13:00:52 2012 +0200
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,252 +0,0 @@
     1.4 -915resolution
     1.5 -alsa-lib
     1.6 -alsaplayer
     1.7 -alsa-utils
     1.8 -asunder
     1.9 -atk
    1.10 -attr
    1.11 -beaver
    1.12 -busybox
    1.13 -busybox-pam
    1.14 -bzlib
    1.15 -cairo
    1.16 -cairomm
    1.17 -cdparanoia-III
    1.18 -cdrkit
    1.19 -clearlooks
    1.20 -conspy
    1.21 -curl
    1.22 -dbus
    1.23 -dbus-glib
    1.24 -depmod
    1.25 -desktop-file-utils
    1.26 -dialog
    1.27 -dropbear
    1.28 -e2fsprogs
    1.29 -enchant
    1.30 -epdfview
    1.31 -expat
    1.32 -firefox
    1.33 -firmware-rt2x00
    1.34 -fontconfig
    1.35 -freetype
    1.36 -fuse
    1.37 -galculator
    1.38 -gamin
    1.39 -garcon
    1.40 -gcc-lib-base
    1.41 -gcolor2
    1.42 -GConf
    1.43 -gdbm
    1.44 -get-flash-plugin
    1.45 -gettext-base
    1.46 -get-wifi-firmware
    1.47 -glib
    1.48 -glibc-base
    1.49 -glibmm
    1.50 -gparted
    1.51 -gpxe
    1.52 -grub
    1.53 -gtk+
    1.54 -gtkdialog
    1.55 -gtkmm
    1.56 -gtk-xfce-engine
    1.57 -hal
    1.58 -hardinfo
    1.59 -hicolor-icon-theme
    1.60 -isapnptools
    1.61 -isomaster
    1.62 -jpeg
    1.63 -kbd-busybox
    1.64 -lcms
    1.65 -leafpad
    1.66 -libcap
    1.67 -libcddb
    1.68 -libcdio
    1.69 -libcomerr
    1.70 -libcrypto
    1.71 -libcurl
    1.72 -libdb
    1.73 -libdrm
    1.74 -libexif
    1.75 -libexo
    1.76 -libfirefox
    1.77 -libgcrypt
    1.78 -libgio
    1.79 -libgiomm
    1.80 -libglade
    1.81 -libgnutls
    1.82 -libgpg-error
    1.83 -libical
    1.84 -libIDL
    1.85 -libidn
    1.86 -libmad
    1.87 -libnotify
    1.88 -libogg
    1.89 -libpng
    1.90 -libsexy
    1.91 -libsigc++
    1.92 -libsoup
    1.93 -libssl
    1.94 -libtasn1
    1.95 -libtool
    1.96 -libunique
    1.97 -libusb
    1.98 -libusb-compat
    1.99 -libvorbis
   1.100 -libwebkit
   1.101 -libwnck
   1.102 -libxcb
   1.103 -libxfce4ui
   1.104 -libxfce4util
   1.105 -libxfcegui4
   1.106 -libxml2
   1.107 -libxslt
   1.108 -linux
   1.109 -linux-crypto
   1.110 -linux-sound
   1.111 -linux-wireless
   1.112 -locale-de
   1.113 -locale-es
   1.114 -locale-fr
   1.115 -locale-pt_BR
   1.116 -lostirc
   1.117 -lua
   1.118 -lxappearance
   1.119 -lxpanel
   1.120 -lxtask
   1.121 -lzlib
   1.122 -lzma
   1.123 -menu-cache
   1.124 -mercurial
   1.125 -mesa
   1.126 -mhwaveedit
   1.127 -midori
   1.128 -mtpaint
   1.129 -nano
   1.130 -ncurses
   1.131 -ncurses-common
   1.132 -ncursesw
   1.133 -ntfs-3g
   1.134 -ntfsprogs
   1.135 -obconf
   1.136 -openbox
   1.137 -openssl
   1.138 -ORBit2
   1.139 -osmo
   1.140 -pam
   1.141 -pango
   1.142 -pangomm
   1.143 -parted
   1.144 -patch
   1.145 -pciutils
   1.146 -pcmanfm
   1.147 -pcmciautils
   1.148 -pcre
   1.149 -perl
   1.150 -perl-uri
   1.151 -perl-xml-parser
   1.152 -pixman
   1.153 -polkit
   1.154 -poppler
   1.155 -popt
   1.156 -ppp
   1.157 -python
   1.158 -readline
   1.159 -rp-pppoe
   1.160 -shared-mime-info
   1.161 -slim
   1.162 -slitaz-base-files
   1.163 -slitaz-boot-scripts
   1.164 -slitaz-configs
   1.165 -slitaz-doc
   1.166 -slitaz-icon
   1.167 -slitaz-menus
   1.168 -slitaz-polar-cursors
   1.169 -slitaz-tools
   1.170 -slitaz-tools-boxes
   1.171 -sqlite
   1.172 -startup-notification
   1.173 -sudo
   1.174 -sudoku-savant
   1.175 -suggested-applications
   1.176 -sysfsutils
   1.177 -syslinux
   1.178 -syslinux-extra
   1.179 -tazchroot
   1.180 -tazlito
   1.181 -tazpkg
   1.182 -tazusb
   1.183 -tazweb
   1.184 -tazwok
   1.185 -tcl
   1.186 -thunar
   1.187 -thunar-archive-plugin
   1.188 -thunar-volman
   1.189 -tiff
   1.190 -tk
   1.191 -transmission
   1.192 -transset-df
   1.193 -ttf-dejavu
   1.194 -udev
   1.195 -util-linux-ng-blkid
   1.196 -util-linux-ng-getopt
   1.197 -util-linux-ng-uuid
   1.198 -viewnior
   1.199 -web-applications
   1.200 -wireless_tools
   1.201 -wpa_supplicant
   1.202 -xcb-util
   1.203 -xfce4
   1.204 -xfce4-icon-theme
   1.205 -xfce4-panel
   1.206 -xfce4-session
   1.207 -xfce4-settings
   1.208 -xfce4-slitaz-config
   1.209 -xfce-utils
   1.210 -xfconf
   1.211 -xfdesktop
   1.212 -xfdesktop-extras
   1.213 -xfwm4
   1.214 -xfwm4-themes
   1.215 -xorg
   1.216 -xorg-base-fonts
   1.217 -xorg-iceauth
   1.218 -xorg-libfontenc
   1.219 -xorg-libICE
   1.220 -xorg-libpciaccess
   1.221 -xorg-libSM
   1.222 -xorg-libX11
   1.223 -xorg-libXau
   1.224 -xorg-libXaw
   1.225 -xorg-libXcomposite
   1.226 -xorg-libXcursor
   1.227 -xorg-libXdamage
   1.228 -xorg-libXdmcp
   1.229 -xorg-libXext
   1.230 -xorg-libXfixes
   1.231 -xorg-libXfont
   1.232 -xorg-libXft
   1.233 -xorg-libXi
   1.234 -xorg-libXinerama
   1.235 -xorg-libxkbfile
   1.236 -xorg-libXmu
   1.237 -xorg-libXp
   1.238 -xorg-libXpm
   1.239 -xorg-libXrandr
   1.240 -xorg-libXrender
   1.241 -xorg-libXss
   1.242 -xorg-libXt
   1.243 -xorg-libXtst
   1.244 -xorg-libXxf86vm
   1.245 -xorg-rgb
   1.246 -xorg-server
   1.247 -xorg-setxkbmap
   1.248 -xorg-xauth
   1.249 -xorg-xcompmgr
   1.250 -xorg-xf86-input-evdev
   1.251 -xorg-xf86-video-vesa
   1.252 -xorg-xkbcomp
   1.253 -xorg-xkeyboard-config
   1.254 -xterm
   1.255 -zlib
     2.1 --- a/xfce/receipt	Tue Apr 10 13:00:52 2012 +0200
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,11 +0,0 @@
     2.4 -# SliTaz flavor receipt.
     2.5 -
     2.6 -FLAVOR="xfce"
     2.7 -SHORT_DESC="SliTaz Core with XFCE Desktop, Firefox and Mercurial"
     2.8 -VERSION="20100512"
     2.9 -MAINTAINER="miltonsj@gmail.com"
    2.10 -
    2.11 -FRUGAL_RAM="320M"
    2.12 -ROOTFS_SIZE="252.8M"
    2.13 -INITRAMFS_SIZE="54.3M"
    2.14 -ISO_SIZE="57.1M"
     3.1 --- a/xfce/rootcd/README	Tue Apr 10 13:00:52 2012 +0200
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,26 +0,0 @@
     3.4 -README SliTaz GNU/Linux CD
     3.5 -===============================================================================
     3.6 -
     3.7 -
     3.8 -Check the index.html page for more information
     3.9 -
    3.10 -
    3.11 -LICENSE
    3.12 --------
    3.13 -
    3.14 -Copyright (c)  2006-2012  SliTaz GNU/Linux
    3.15 -
    3.16 -SliTaz is free software; you can redistribute it and/or modify
    3.17 -it under the terms of the GNU General Public License as published by
    3.18 -the Free Software Foundation; either version 3 of the License, or
    3.19 -(at your option) any later version.
    3.20 -
    3.21 -SliTaz is distributed in the hope that it will be useful,
    3.22 -but WITHOUT ANY WARRANTY; without even the implied warranty of
    3.23 -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    3.24 -GNU General Public License for more details.
    3.25 -
    3.26 -You should have received a copy of the GNU General Public License
    3.27 -along with SliTaz; if not, write to the Free Software
    3.28 -Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 
    3.29 -USA
     4.1 --- a/xfce/rootcd/index.html	Tue Apr 10 13:00:52 2012 +0200
     4.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.3 @@ -1,84 +0,0 @@
     4.4 -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     4.5 -    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     4.6 -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
     4.7 -<head>
     4.8 -	<title>SliTaz GNU/Linux - CD</title>
     4.9 -	<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
    4.10 -	<meta name="author" content="Christophe Lincoln"/>
    4.11 -	<link rel="stylesheet" type="text/css" href="style.css" />
    4.12 -</head>
    4.13 -<body>
    4.14 -
    4.15 -<!-- Header -->
    4.16 -<div id="header">
    4.17 -	<div id="logo"></div>
    4.18 -	<div id="network">
    4.19 -		<a href="http://www.slitaz.org/">Website</a>
    4.20 -		<a href="http://scn.slitaz.org/">Community</a>
    4.21 -		<a href="http://doc.slitaz.org/">Doc</a>
    4.22 -		<a href="http://forum.slitaz.org/">Forum</a>
    4.23 -		<a href="http://labs.slitaz.org/issues">Bugs</a>
    4.24 -		<a href="http://hg.slitaz.org/">Hg</a>
    4.25 -	</div>
    4.26 -	<h1>SliTaz Live</h1>
    4.27 -</div>
    4.28 -
    4.29 -<!-- Block -->
    4.30 -<div id="block"></div>
    4.31 -
    4.32 -<!-- Content -->
    4.33 -<div id="content">
    4.34 -<h2>LiveCD information</h2>
    4.35 -
    4.36 -<h3>English</h3>
    4.37 -<p>
    4.38 -	Welcome to the SliTaz GNU/Linux cdrom. To boot SliTaz from a cdrom
    4.39 -	just burn the ISO image onto a blank disc. Then reboot your computer
    4.40 -	with the disc in your cdrom drive.
    4.41 -</p>
    4.42 -<p>
    4.43 -	SliTaz is a micro GNU/Linux distro using BusyBox, a Linux kernel,
    4.44 -	and GNU free software. SliTaz also uses goodies from the Debian
    4.45 -	project. The goal of SliTaz is to have a GNU/Linux distro working
    4.46 -	entirely in memory (RAM) and fully installable to a HD for desktop or
    4.47 -	server usage.
    4.48 -</p>
    4.49 -<p>
    4.50 -	On the system you will find documentation in /usr/share/doc and the
    4.51 -	full <a href="README">GPL license</a> in /usr/share/licenses.
    4.52 -</p>
    4.53 -
    4.54 -<h3>Français</h3>
    4.55 -<p>
    4.56 -	Bienvenue sur la page d'index d'un cdrom de SliTaz GNU/Linux. 
    4.57 -	Vous devez démarrez votre ordinateur avec le cdrom dans le lecteur
    4.58 -	CD ou DVD, pour lancer SliTaz en RAM et sans risques pour la
    4.59 -	machine hôte.
    4.60 -</p>
    4.61 -<p>
    4.62 -	SliTaz peut fonctionner des mois entiers sans redémarrer, le système
    4.63 -	peut fonctionner dans 144 Mb de mémoire vive et sur des machines 
    4.64 -	sans disque dur. Mais SliTaz est aussi pleinement installable sur
    4.65 -	un disque dur et largement extensible via le gestionnaire de 
    4.66 -	paquets et la compilation de nouvelles applications depuis les
    4.67 -	sources.
    4.68 -</p>
    4.69 -
    4.70 -<!-- End content -->
    4.71 -</div>
    4.72 -
    4.73 -<!-- Footer -->
    4.74 -<div id="footer">
    4.75 -    Copyright &copy; 2012 <a href="http://www.slitaz.org/">SliTaz</a>
    4.76 -    <p>
    4.77 -    SliTaz @
    4.78 -		<a href="http://twitter.com/slitaz">Twitter</a>
    4.79 -		<a href="http://www.facebook.com/slitaz">Facebook</a>
    4.80 -		<a href="http://distrowatch.com/slitaz">Distrowatch</a>
    4.81 -		<a href="http://en.wikipedia.org/wiki/SliTaz">Wikipedia</a>
    4.82 -		<a href="http://flattr.com/profile/slitaz">Flattr</a>
    4.83 -	    </p>
    4.84 -</div>
    4.85 -
    4.86 -</body>
    4.87 -</html>
     5.1 --- a/xfce/rootcd/style.css	Tue Apr 10 13:00:52 2012 +0200
     5.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.3 @@ -1,77 +0,0 @@
     5.4 -/* CSS style for SliTaz GNU/Linux generic xHTML files. */
     5.5 -
     5.6 -html { min-height: 102%; }
     5.7 -
     5.8 -body {
     5.9 -	background: #ffffff;
    5.10 -	color: black;
    5.11 -	font: 13px sans-serif, vernada, arial;
    5.12 -	margin: 0;
    5.13 -	min-width: 640px;
    5.14 -}
    5.15 -
    5.16 -a { text-decoration: underline; color: #215090; }
    5.17 -a:hover { text-decoration: none; color: blue; }
    5.18 -img { border: 0pt none; vertical-align: middle; }
    5.19 -h2 { color: #444; }
    5.20 -h3 { color: #666; font-size: 140%; }
    5.21 -
    5.22 -#header { 
    5.23 -	height: 40px; 
    5.24 -	background: #351a0a;
    5.25 -}
    5.26 -
    5.27 -#header h1 {
    5.28 -	margin: 0;
    5.29 -	padding: 8px 0 0 8px;
    5.30 -	width: 250px;
    5.31 -	color: white;
    5.32 -	font-size: 20px;
    5.33 -	font-style: italic;
    5.34 -}
    5.35 -
    5.36 -#header h1 a { 
    5.37 -	color: white; 
    5.38 -	text-decoration: none;
    5.39 -	font-size: 20px;
    5.40 -	font-style: italic;
    5.41 -}
    5.42 -
    5.43 -#header h1 a:hover, #network a:hover { 
    5.44 -	color: #d66018;
    5.45 -}
    5.46 -
    5.47 -#network { 
    5.48 -	float: right; 
    5.49 -	padding: 12px 5px 0; 
    5.50 -	font-size: 12px;
    5.51 -}
    5.52 -
    5.53 -#network a { padding: 0 6px; }
    5.54 -
    5.55 -#network a { 
    5.56 -	color: #fff; 
    5.57 -	font-weight: bold;
    5.58 -	text-decoration: none;
    5.59 -}
    5.60 -
    5.61 -#block { 
    5.62 -	min-height: 8px; 
    5.63 -	background: #d66018; 
    5.64 -	padding: 0;
    5.65 -	border-bottom: 1px solid #f5f5f5;
    5.66 -}
    5.67 -
    5.68 -#content {
    5.69 -	padding: 30px 80px;
    5.70 -	text-align: justify;
    5.71 -}
    5.72 -
    5.73 -#footer {
    5.74 -	text-align: center;
    5.75 -	border-top: 1px solid #ddd;
    5.76 -	padding: 40px;
    5.77 -	color: #666;
    5.78 -}
    5.79 -
    5.80 -#footer a { color: #666; padding: 0 2px; }
     6.1 --- a/xfce/rootfs/etc/init.d/bootopts.sh	Tue Apr 10 13:00:52 2012 +0200
     6.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.3 @@ -1,212 +0,0 @@
     6.4 -#!/bin/sh
     6.5 -# /etc/init.d/bootopts.sh - SliTaz boot options from the cmdline.
     6.6 -#
     6.7 -# Earlier boot options are in rcS, ex: config= and modprobe=
     6.8 -#
     6.9 -. /etc/init.d/rc.functions
    6.10 -
    6.11 -# Update fstab for swapon/swapoff 
    6.12 -add_swap_in_fstab()
    6.13 -{
    6.14 -	grep -q "$1	" /etc/fstab || cat >> /etc/fstab <<EOT
    6.15 -$1	swap	swap	default	0 0
    6.16 -EOT
    6.17 -}
    6.18 -
    6.19 -# Default user account without password (uid=1000). In live mode the option
    6.20 -# user=name can be used, but user must be added before home= to have home dir.
    6.21 -# This option is not handled by a loop and case like others and has no
    6.22 -# effect on an installed system.
    6.23 -if ! grep -q "100[0-9]:100[0-9]" /etc/passwd; then
    6.24 -	if grep -q "user=" /proc/cmdline; then
    6.25 -		USER=`cat /proc/cmdline | sed 's/.*user=\([^ ]*\).*/\1/'`
    6.26 -		# Avoid usage of an existing system user or root.
    6.27 -		if grep -q ^$USER /etc/passwd; then
    6.28 -			USER=tux
    6.29 -		fi
    6.30 -	else
    6.31 -		USER=tux
    6.32 -	fi
    6.33 -	echo -n "Configuring user and group: $USER..."
    6.34 -	echo "$USER:x:1000:1000:SliTaz User,,,:/home/$USER:/bin/sh" >> /etc/passwd
    6.35 -	echo "$USER::14035:0:99999:7:::" >> /etc/shadow
    6.36 -	echo "$USER:x:1000:" >> /etc/group
    6.37 -	echo "$USER:!::" >> /etc/gshadow
    6.38 -	status
    6.39 -	# Audio and cdrom group.
    6.40 -	addgroup $USER audio
    6.41 -	addgroup $USER cdrom
    6.42 -	# /home/$USER files from /etc/skel.
    6.43 -	if [ -d /etc/skel ]; then
    6.44 -		cp -a /etc/skel /home/$USER
    6.45 -		# Path for user desktop files.
    6.46 -		for i in /home/$USER/.local/share/applications/*.desktop
    6.47 -		do
    6.48 -			sed -i s/"user_name"/"$USER"/g $i
    6.49 -		done
    6.50 -	else
    6.51 -		mkdir -p /home/$USER
    6.52 -	fi
    6.53 -	# Set permissions.
    6.54 -	chown -R $USER.$USER /home/$USER
    6.55 -	# Slim default user.
    6.56 -	if [ -f /etc/slim.conf ]; then
    6.57 -		sed -i s/"default_user .*"/"default_user        $USER"/\
    6.58 -			/etc/slim.conf
    6.59 -	fi
    6.60 -fi
    6.61 -
    6.62 -# Parse /proc/cmdline for boot options.
    6.63 -echo "Parsing kernel cmdline for SliTaz live options... "
    6.64 -
    6.65 -for opt in `cat /proc/cmdline`
    6.66 -do
    6.67 -	case $opt in
    6.68 -		eject)
    6.69 -			# Eject cdrom.
    6.70 -			eject /dev/cdrom ;;
    6.71 -		autologin)
    6.72 -			# Autologin option to skip first graphic login prompt.
    6.73 -			echo "auto_login        yes" >> /etc/slim.conf ;;
    6.74 -		lang=*)
    6.75 -			# Check for a specified locale (lang=*).
    6.76 -			LANG=${opt#lang=}
    6.77 -			echo -n "Setting system locale to: $LANG... "
    6.78 -			echo "LANG=$LANG" > /etc/locale.conf
    6.79 -			echo "LC_ALL=$LANG" >> /etc/locale.conf
    6.80 -			[ ! -d /usr/lib/locale/$LANG ] && localedef \
    6.81 -				-i $LANG -c -f UTF-8 /usr/lib/locale/$LANG &
    6.82 -			status ;;
    6.83 -		kmap=*)
    6.84 -			# Check for a specified keymap (kmap=*).
    6.85 -			KEYMAP=${opt#kmap=}
    6.86 -			echo -n "Setting system keymap to: $KEYMAP..."
    6.87 -			echo "$KEYMAP" > /etc/keymap.conf
    6.88 -			status ;;
    6.89 -		home=*)
    6.90 -			# Check for a specified home partition (home=*) and check for 
    6.91 -			# user home dir. Note: home=usb is a shorter and easier way to
    6.92 -			# have home=/dev/sda1.
    6.93 -			DEVICE=${opt#home=}
    6.94 -			[ "$DEVICE" = "usb" ] && DEVICE=sda1
    6.95 -			echo "Home has been specified to $DEVICE..."
    6.96 -			USBDELAY=`cat /sys/module/usb_storage/parameters/delay_use`
    6.97 -			USBDELAY=$((1+$USBDELAY))
    6.98 -			echo "Sleeping $USBDELAY s to let the kernel detect the device... "
    6.99 -			sleep $USBDELAY
   6.100 -			USER=`cat /etc/passwd | grep 1000 | cut -d ":" -f 1`
   6.101 -			DEVID=$DEVICE
   6.102 -			if [ -x /sbin/blkid ]; then
   6.103 -				# Can be a label, uuid or devname. DEVID gives us first: /dev/name.
   6.104 -				DEVID=`/sbin/blkid | grep $DEVICE | cut -d: -f1`
   6.105 -				DEVID=${DEVID##*/}
   6.106 -			fi
   6.107 -			if [ -n "$DEVID" ] && grep -q "$DEVID" /proc/partitions ; then
   6.108 -				echo "Mounting /home on /dev/$DEVID... "
   6.109 -				[ -d /home/$USER ] && mv /home/$USER /tmp/$USER-files
   6.110 -				mount /dev/$DEVID /home -o uid=1000,gid=1000 2>/dev/null \
   6.111 -					|| mount /dev/$DEVID /home
   6.112 -				# Check if swap file must be generated in /home: swap=size (Mb).
   6.113 -				# This option is only used within home=device.
   6.114 -				if grep -q "swap=[1-9]*" /proc/cmdline; then
   6.115 -					SWAP_SIZE=`cat /proc/cmdline | sed 's/.*swap=\([^ ]*\).*/\1/'`
   6.116 -					# DD to gen a virtual disk.
   6.117 -					echo "Generating swap file: /home/swap ($SWAP_SIZE)..."
   6.118 -					dd if=/dev/zero of=/home/swap bs=1M count=$SWAP_SIZE
   6.119 -					# Make the Linux swap filesystem.
   6.120 -					mkswap /home/swap
   6.121 -					add_swap_in_fstab /home/swap
   6.122 -				fi
   6.123 -			else
   6.124 -				echo "Unable to find $DEVICE... "
   6.125 -			fi
   6.126 -			# Move all user dir if needed.
   6.127 -			if [ ! -d "/home/$USER" ] ; then
   6.128 -				mv /tmp/$USER-files /home/$USER
   6.129 -				chown -R $USER.$USER /home/$USER
   6.130 -			else
   6.131 -				rm -rf /tmp/$USER-files
   6.132 -			fi
   6.133 -			# Install all packages in /home/boot/packages. In live CD and 
   6.134 -			# USB mode the option home= mounts the device on /home, so we 
   6.135 -			# already have a boot directory with the Kernel and rootfs.
   6.136 -			if [ -d "/home/boot/packages" ]; then
   6.137 -				for pkg in /home/boot/packages/*.tazpkg
   6.138 -				do
   6.139 -					tazpkg install $pkg
   6.140 -				done
   6.141 -			fi ;;
   6.142 -		laptop)
   6.143 -			# Laptop option to load related Kernel modules.
   6.144 -			echo "Loading laptop modules: ac, battery, fan, yenta_socket..."
   6.145 -			for mod in ac battery fan yenta_socket
   6.146 -			do
   6.147 -				modprobe $mod
   6.148 -			done
   6.149 -			grep -qs batt /etc/lxpanel/default/panels/panel || 
   6.150 -			sed -i 's/= cpu/= batt\n}\n\nPlugin {\n    type = cpu/' \
   6.151 -				/etc/lxpanel/default/panels/panel 2> /dev/null
   6.152 -			# Enable Kernel Laptop mode.
   6.153 -			echo "5" > /proc/sys/vm/laptop_mode ;;
   6.154 -		mount)
   6.155 -			# Mount all ext3 partitions found (opt: mount).
   6.156 -			# Get the list of partitions.
   6.157 -			DEVICES_LIST=`fdisk -l | grep 83 | cut -d " " -f 1`
   6.158 -			# Mount filesystems rw.
   6.159 -			for device in $DEVICES_LIST
   6.160 -			do
   6.161 -				name=${device#/dev/}
   6.162 -				# Device can be already used by home=usb.
   6.163 -				if ! mount | grep ^$device >/dev/null; then
   6.164 -					echo "Mounting partition: $name on /mnt/$name"
   6.165 -					mkdir /mnt/$name
   6.166 -					mount $device /mnt/$name
   6.167 -				fi
   6.168 -			done ;;
   6.169 -		mount-packages)
   6.170 -			# Mount and install packages-XXX.iso (useful without Internet 
   6.171 -			# connection).
   6.172 -			PKGSIGN="LABEL=\"packages-$(cat /etc/slitaz-release)\" TYPE=\"iso9660\""
   6.173 -			PKGDEV=$(blkid | grep "$PKGSIGN" | cut -d: -f1)
   6.174 -			[ -z "$PKGDEV" -a -L /dev/cdrom ] && \
   6.175 -				PKGDEV=$(blkid /dev/cdrom | grep "$PKGSIGN" | cut -d: -f1)
   6.176 -			if [ -n "$PKGDEV" ]; then
   6.177 -				echo -n "Mounting packages archive from $PKGDEV..."
   6.178 -				mkdir /packages && mount -t iso9660 -o ro $PKGDEV /packages
   6.179 -				status
   6.180 -				/packages/install.sh
   6.181 -			fi ;;
   6.182 -		wm=*)
   6.183 -			# Check for a Window Manager (for a flavor, default WM can be changed
   6.184 -			# with boot options or with an addfile in /etc/X11/wm.default.
   6.185 -			WM=${opt#wm=}
   6.186 -			mkdir -p /etc/X11
   6.187 -			case $WM in
   6.188 -				jwm)
   6.189 -					echo "jwm" > /etc/X11/wm.default ;;
   6.190 -				ob|openbox|openbox-session)
   6.191 -					echo "openbox" > /etc/X11/wm.default ;;
   6.192 -				e17|enlightenment|enlightenment_start)
   6.193 -					echo "enlightenment" > /etc/X11/wm.default ;;
   6.194 -			esac ;;
   6.195 -		*)
   6.196 -			continue ;;
   6.197 -	esac
   6.198 -done
   6.199 -
   6.200 -# If no default WM fallback to Openbox (we never know).
   6.201 -if [ ! -f /etc/X11/wm.default ]; then
   6.202 -	echo "openbox" > /etc/X11/wm.default
   6.203 -fi
   6.204 -
   6.205 -# Activate an eventual swap file or partition.
   6.206 -if [ "`fdisk -l | grep swap`" ]; then
   6.207 -	for SWAP_DEV in `fdisk -l | grep swap | awk '{ print $1 }'`; do
   6.208 -		echo "Swap memory detected on: $SWAP_DEV"
   6.209 -		add_swap_in_fstab $SWAP_DEV
   6.210 -	done
   6.211 -fi
   6.212 -if grep -q swap /etc/fstab; then
   6.213 -	echo "Activating swap memory..."
   6.214 -	swapon -a
   6.215 -fi
     7.1 --- a/xfce/rootfs/etc/init.d/network.sh	Tue Apr 10 13:00:52 2012 +0200
     7.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.3 @@ -1,216 +0,0 @@
     7.4 -#!/bin/sh
     7.5 -# /etc/init.d/network.sh - Network initialization boot script.
     7.6 -# Config file is: /etc/network.conf
     7.7 -#
     7.8 -. /etc/init.d/rc.functions
     7.9 -
    7.10 -if [ -z "$2" ]; then
    7.11 -	. /etc/network.conf 
    7.12 -else
    7.13 -	. $2 
    7.14 -fi
    7.15 -
    7.16 -
    7.17 -Boot() {
    7.18 -	# Set hostname.
    7.19 -	echo -n "Setting hostname..."
    7.20 -	/bin/hostname -F /etc/hostname
    7.21 -	status
    7.22 -
    7.23 -	# Configure loopback interface.
    7.24 -	echo -n "Configuring loopback..."
    7.25 -	/sbin/ifconfig lo 127.0.0.1 up
    7.26 -	/sbin/route add 127.0.0.1 lo
    7.27 -	status	
    7.28 -}
    7.29 -
    7.30 -
    7.31 -eth() {
    7.32 -#  Use ethernet
    7.33 -	   	ifconfig $INTERFACE up	
    7.34 -}
    7.35 -
    7.36 -wifi() {
    7.37 -	# For wifi. Users just have to enable it through yes and usually
    7.38 -	# essid any will work and the interface is autodetected.
    7.39 -	if [ "$WIFI" = "yes" ] || grep -q "wifi" /proc/cmdline; then
    7.40 -	    ifconfig $INTERFACE down
    7.41 -		
    7.42 -		# Confirm if $WIFI_INTERFACE is the wifi interface
    7.43 -		if [ ! -d /sys/class/net/$WIFI_INTERFACE/wireless ]; then
    7.44 -			echo "$WIFI_INTERFACE is not a wifi interface, changing it."
    7.45 -			WIFI_INTERFACE=$(grep : /proc/net/dev | cut -d: -f1 | \
    7.46 -				while read dev; do iwconfig $dev 2>&1 | \
    7.47 -					grep -iq "essid" && { echo $dev ; break; }; \
    7.48 -				done)
    7.49 -			[ -n "$WIFI_INTERFACE" ] && sed -i "s/^WIFI_INTERFACE=.*/WIFI_INTERFACE=\"$WIFI_INTERFACE\"/" /etc/network.conf
    7.50 -		fi
    7.51 -		
    7.52 -		echo -n "Configuring $WIFI_INTERFACE..."
    7.53 -		ifconfig $WIFI_INTERFACE up
    7.54 -		if iwconfig $WIFI_INTERFACE | grep -q "Tx-Power"; then
    7.55 -			iwconfig $WIFI_INTERFACE txpower on
    7.56 -		fi
    7.57 -		status
    7.58 -		
    7.59 -		[ -n "$WPA_DRIVER" ] || WPA_DRIVER="wext"
    7.60 -		
    7.61 -		
    7.62 -		IWCONFIG_ARGS=""
    7.63 -		[ -n "$WIFI_MODE" ] && IWCONFIG_ARGS="$IWCONFIG_ARGS mode $WIFI_MODE"
    7.64 -		[ -n "$WIFI_CHANNEL" ] && IWCONFIG_ARGS="$IWCONFIG_ARGS channel $WIFI_CHANNEL"
    7.65 -		
    7.66 -		if [ "$WIFI_KEY_TYPE" == "" ]; then
    7.67 -			iwconfig $WIFI_INTERFACE essid "$WIFI_ESSID" $IWCONFIG_ARGS
    7.68 -		fi
    7.69 -		
    7.70 -		[ -n "$WIFI_KEY" ] && case "$WIFI_KEY_TYPE" in
    7.71 -			wep|WEP) 
    7.72 -			     IWCONFIG_ARGS="$IWCONFIG_ARGS key $WIFI_KEY"
    7.73 -				 iwconfig $WIFI_INTERFACE essid "$WIFI_ESSID" $IWCONFIG_ARGS
    7.74 -# wpa_supplicant can also deal with wep encryption but iwconfig is preferred
    7.75 -# Tip: Use unquoted strings for hexadecimal key in wep_key0
    7.76 -#			cat /etc/wpa_supplicant.conf > /tmp/wpa.conf 
    7.77 -#			cat >> /tmp/wpa.conf <<EOF
    7.78 -#ctrl_interface=/var/run/wpa_supplicant
    7.79 -#ctrl_interface_group=0
    7.80 -#ap_scan=1
    7.81 -#network={
    7.82 -#	ssid="$WIFI_ESSID"
    7.83 -#	scan_ssid=1
    7.84 -#	key_mgmt=NONE
    7.85 -#	wep_key0="$WIFI_KEY"
    7.86 -#	wep_tx_keyidx=0
    7.87 -#	priority=5
    7.88 -#}
    7.89 -#EOF
    7.90 -				    ;;
    7.91 -			wpa|WPA) cat /etc/wpa_supplicant.conf > /tmp/wpa.conf # load pre-configured multiple profiles 
    7.92 -			cat >> /tmp/wpa.conf <<EOF
    7.93 -ctrl_interface=/var/run/wpa_supplicant
    7.94 -ctrl_interface_group=0
    7.95 -ap_scan=1
    7.96 -network={
    7.97 -	ssid="$WIFI_ESSID"
    7.98 -	scan_ssid=1
    7.99 -	proto=WPA RSN
   7.100 -	key_mgmt=WPA-PSK
   7.101 -	psk="$WIFI_KEY"
   7.102 -	priority=5
   7.103 -}
   7.104 -EOF
   7.105 -				echo "Starting wpa_supplicant for WPA-PSK..."
   7.106 -				wpa_supplicant -B -W -c/tmp/wpa.conf -D$WPA_DRIVER -i$WIFI_INTERFACE 
   7.107 -				;;
   7.108 -			any|ANY) cat /etc/wpa_supplicant.conf > /tmp/wpa.conf 
   7.109 -			cat >> /tmp/wpa.conf <<EOF
   7.110 -ctrl_interface=/var/run/wpa_supplicant
   7.111 -ctrl_interface_group=0
   7.112 -ap_scan=1
   7.113 -network={
   7.114 -	ssid="$WIFI_ESSID"
   7.115 -	scan_ssid=1
   7.116 -	key_mgmt=WPA-EAP WPA-PSK IEEE8021X NONE
   7.117 -	group=CCMP TKIP WEP104 WEP40
   7.118 -	pairwise=CCMP TKIP
   7.119 -	psk="$WIFI_KEY"
   7.120 -	priority=5
   7.121 -}
   7.122 -EOF
   7.123 -				echo "Starting wpa_supplicant for any key type..."
   7.124 -				wpa_supplicant -B -W -c/tmp/wpa.conf -D$WPA_DRIVER -i$WIFI_INTERFACE 
   7.125 -				;;
   7.126 -		esac
   7.127 -		
   7.128 -		rm -f /tmp/wpa.conf
   7.129 -		
   7.130 -		INTERFACE=$WIFI_INTERFACE			
   7.131 -	fi
   7.132 -
   7.133 -}
   7.134 -
   7.135 -wpa()
   7.136 -{
   7.137 -	DHCP_SCRIPT="/etc/init.d/wpa_action.sh"
   7.138 -	wpa_cli -a$DHCP_SCRIPT -B 
   7.139 -}
   7.140 -
   7.141 -dhcp() {
   7.142 -
   7.143 -# For a dynamic IP with DHCP. 
   7.144 -	if [ "$DHCP" = "yes" ]  ; then
   7.145 -		echo "Starting udhcpc client on: $INTERFACE..."		
   7.146 -		if [ -d /var/run/wpa_supplicant ]; then # wpa wireless && wpa_ctrl_open interface is up
   7.147 -		   wpa		  
   7.148 -		else  # fallback on udhcpc: wep, eth
   7.149 -		   /sbin/udhcpc -b -T 1 -A 12 -i $INTERFACE -p /var/run/udhcpc.$INTERFACE.pid
   7.150 -		fi		
   7.151 -	fi
   7.152 -	
   7.153 -}
   7.154 -
   7.155 -static_ip() {
   7.156 -# For a static IP.
   7.157 -	if [ "$STATIC" = "yes" ] ; then
   7.158 -		echo "Configuring static IP on $INTERFACE: $IP..."
   7.159 -		/sbin/ifconfig $INTERFACE $IP netmask $NETMASK up
   7.160 -		/sbin/route add default gateway $GATEWAY
   7.161 -		# Dirty trick: wpa_supplicant waits for wpa_cli
   7.162 -		wpa_cli -B
   7.163 -		# Multi-DNS server in $DNS_SERVER.
   7.164 -		/bin/mv /etc/resolv.conf /tmp/resolv.conf.$$
   7.165 -		for NS in $DNS_SERVER
   7.166 -		do
   7.167 -			echo "nameserver $NS" >> /etc/resolv.conf
   7.168 -		done
   7.169 -	fi
   7.170 -}
   7.171 -
   7.172 -# Stopping everything
   7.173 -Stop() {
   7.174 -	echo "Stopping all interfaces"
   7.175 -	ifconfig $INTERFACE down
   7.176 -	ifconfig $WIFI_INTERFACE down
   7.177 -
   7.178 -	echo "Killing all daemons"
   7.179 -	killall udhcpc
   7.180 -	killall wpa_supplicant 2>/dev/null
   7.181 -	
   7.182 -	if iwconfig $WIFI_INTERFACE | grep -q "Tx-Power"; then
   7.183 -		echo "Shutting down wifi card"
   7.184 -		iwconfig $WIFI_INTERFACE txpower off
   7.185 -	fi
   7.186 -}
   7.187 -
   7.188 -Start() {
   7.189 -   eth
   7.190 -   wifi
   7.191 -   dhcp 
   7.192 -   static_ip	
   7.193 -}
   7.194 -
   7.195 -
   7.196 -# looking for arguments:
   7.197 -if [ -z "$1" ]; then
   7.198 -	Boot
   7.199 -	Start
   7.200 -else
   7.201 -	case $1 in
   7.202 -		start)
   7.203 -			Start ;;
   7.204 -		stop)
   7.205 -			Stop ;;
   7.206 -		restart)
   7.207 -			Stop
   7.208 -			Start ;;
   7.209 -		*)
   7.210 -			echo ""
   7.211 -			echo -e "\033[1mUsage:\033[0m /etc/init.d/`basename $0` [start|stop|restart]"
   7.212 -			echo ""
   7.213 -			echo -e "	Default configuration file is \033[1m/etc/network.conf\033[0m"
   7.214 -			echo -e "	You can specify another configuration file in the second argument:"
   7.215 -			echo -e "	\033[1mUsage:\033[0m /etc/init.d/`basename $0` [start|stop|restart] file.conf"
   7.216 -			echo ""
   7.217 -
   7.218 -	esac
   7.219 -fi
     8.1 --- a/xfce/rootfs/etc/lxpanel/default/panels/panel	Tue Apr 10 13:00:52 2012 +0200
     8.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.3 @@ -1,185 +0,0 @@
     8.4 -# lxpanel <profile> config file. Manually editing is not recommended.
     8.5 -# Use preference dialog in lxpanel to adjust config when you can.
     8.6 -
     8.7 -Global {
     8.8 -    edge=bottom
     8.9 -    allign=center
    8.10 -    margin=0
    8.11 -    widthtype=percent
    8.12 -    width=100
    8.13 -    height=24
    8.14 -    transparent=1
    8.15 -    tintcolor=#000000
    8.16 -    alpha=0
    8.17 -    autohide=0
    8.18 -    heightwhenhidden=2
    8.19 -    setdocktype=1
    8.20 -    setpartialstrut=1
    8.21 -    usefontcolor=1
    8.22 -    fontcolor=#ffffff
    8.23 -    background=0
    8.24 -    backgroundfile=/usr/share/lxpanel/images/background.png
    8.25 -    iconsize=24
    8.26 -}
    8.27 -
    8.28 -Plugin {
    8.29 -    type = space
    8.30 -    Config {
    8.31 -        Size=4
    8.32 -    }
    8.33 -}
    8.34 -
    8.35 -Plugin {
    8.36 -    type = menu
    8.37 -    Config {
    8.38 -        image=/usr/share/pixmaps/slitaz-menu.png
    8.39 -        system {
    8.40 -        }
    8.41 -        separator {
    8.42 -        }
    8.43 -        item {
    8.44 -            image=/usr/share/icons/SliTaz/16x16/categories/applications-system.png
    8.45 -            command=run
    8.46 -        }
    8.47 -        separator {
    8.48 -        }
    8.49 -        item {
    8.50 -            image=/usr/share/pixmaps/logout.png
    8.51 -            command=logout
    8.52 -        }
    8.53 -    }
    8.54 -}
    8.55 -
    8.56 -Plugin {
    8.57 -    type = space
    8.58 -    Config {
    8.59 -        Size=4
    8.60 -    }
    8.61 -}
    8.62 -
    8.63 -Plugin {
    8.64 -    type = launchbar
    8.65 -    Config {
    8.66 -        Button {
    8.67 -            id=xterm.desktop
    8.68 -        }
    8.69 -        Button {
    8.70 -            id=midori.desktop
    8.71 -        }
    8.72 -    }
    8.73 -}
    8.74 -
    8.75 -Plugin {
    8.76 -    type = pager
    8.77 -}
    8.78 -
    8.79 -Plugin {
    8.80 -    type = wincmd
    8.81 -    Config {
    8.82 -        image=window-manager
    8.83 -        Button1=iconify
    8.84 -        Button2=shade
    8.85 -        Toggle=0
    8.86 -    }
    8.87 -}
    8.88 -
    8.89 -Plugin {
    8.90 -    type = taskbar
    8.91 -    expand=1
    8.92 -    Config {
    8.93 -        tooltips=1
    8.94 -        IconsOnly=0
    8.95 -        ShowAllDesks=0
    8.96 -        UseMouseWheel=1
    8.97 -        UseUrgencyHint=1
    8.98 -        FlatButton=1
    8.99 -        MaxTaskWidth=200
   8.100 -        spacing=1
   8.101 -        GroupedTasks=0
   8.102 -    }
   8.103 -}
   8.104 -
   8.105 -Plugin {
   8.106 -    type = space
   8.107 -    Config {
   8.108 -        Size=4
   8.109 -    }
   8.110 -}
   8.111 -
   8.112 -Plugin {
   8.113 -    type = tray
   8.114 -}
   8.115 -
   8.116 -Plugin {
   8.117 -    type = volumealsa
   8.118 -}
   8.119 -
   8.120 -Plugin {
   8.121 -    type = space
   8.122 -    Config {
   8.123 -        Size=4
   8.124 -    }
   8.125 -}
   8.126 -
   8.127 -Plugin {
   8.128 -    type = netstatus
   8.129 -    Config {
   8.130 -        iface=eth0
   8.131 -        configtool=subox netbox %i
   8.132 -    }
   8.133 -}
   8.134 -
   8.135 -Plugin {
   8.136 -    type = space
   8.137 -    Config {
   8.138 -        Size=4
   8.139 -    }
   8.140 -}
   8.141 -
   8.142 -Plugin {
   8.143 -    type = batt
   8.144 -    Config {
   8.145 -        HideIfNoBattery=0
   8.146 -        AlarmCommand=xmessage Battery low
   8.147 -        AlarmTime=5
   8.148 -        BackgroundColor=black
   8.149 -        BorderWidth=1
   8.150 -        ChargingColor1=#28f200
   8.151 -        ChargingColor2=#22cc00
   8.152 -        DischargingColor1=#ffee00
   8.153 -        DischargingColor2=#d9ca00
   8.154 -        Size=8
   8.155 -    }
   8.156 -}
   8.157 -
   8.158 -Plugin {
   8.159 -    type = cpu
   8.160 -}
   8.161 -
   8.162 -Plugin {
   8.163 -    type = space
   8.164 -    Config {
   8.165 -        Size=2
   8.166 -    }
   8.167 -}
   8.168 -
   8.169 -Plugin {
   8.170 -    type = launchbar
   8.171 -    Config {
   8.172 -        Button {
   8.173 -            id=tazpkgbox.desktop
   8.174 -        }
   8.175 -    }
   8.176 -}
   8.177 -
   8.178 -Plugin {
   8.179 -    type = dclock
   8.180 -    Config {
   8.181 -        ClockFmt=%R
   8.182 -        TooltipFmt=%A %x
   8.183 -        Action=desktopbox calendar
   8.184 -        BoldFont=0
   8.185 -        IconOnly=0
   8.186 -    }
   8.187 -}
   8.188 -
     9.1 --- a/xfce/rootfs/etc/skel/.Xdefaults	Tue Apr 10 13:00:52 2012 +0200
     9.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.3 @@ -1,20 +0,0 @@
     9.4 -!~/.Xdefault: Control the behavior of x-clients.
     9.5 -!
     9.6 -
     9.7 -! Xcursor theme (~/.icons).
     9.8 -!
     9.9 -Xcursor.theme:		slitaz-polar
    9.10 -
    9.11 -! XTerm settings.
    9.12 -!
    9.13 -xterm*background:	black
    9.14 -xterm*foreground:	white
    9.15 -xterm*cursorColor:	#6AA2D8
    9.16 -xterm*scrollBar:	off
    9.17 -xterm*faceName:		DejaVu Sans Mono
    9.18 -xterm*faceSize:		9
    9.19 -
    9.20 -! Xload settings.
    9.21 -!
    9.22 -!xload*background:	black
    9.23 -!xload*foreground:	lightblue
    10.1 --- a/xfce/rootfs/etc/skel/.config/pcmanfm/main	Tue Apr 10 13:00:52 2012 +0200
    10.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.3 @@ -1,15 +0,0 @@
    10.4 -[General]
    10.5 -big_icon_size=32
    10.6 -terminal=xterm
    10.7 -
    10.8 -[Window]
    10.9 -width=640
   10.10 -height=480
   10.11 -splitter_pos=160
   10.12 -maximized=0
   10.13 -
   10.14 -[Desktop]
   10.15 -show_desktop=1
   10.16 -show_wallpaper=1
   10.17 -wallpaper=/usr/share/images/slitaz-background.jpg
   10.18 -show_wm_menu=1
    11.1 --- a/xfce/rootfs/etc/skel/.gtkrc-2.0	Tue Apr 10 13:00:52 2012 +0200
    11.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    11.3 @@ -1,13 +0,0 @@
    11.4 -# ~/.gtkrc-2.0 - GTK+ theme, icon and font configuration.
    11.5 -#
    11.6 -# System files   : /usr/share/{themes,icons,fonts}
    11.7 -# Personal files : ~/.icons and ~/.fonts
    11.8 -#
    11.9 -
   11.10 -gtk-theme-name = "SliTaz"
   11.11 -#gtk-theme-name = "Clearlooks-DeepSky"
   11.12 -#gtk-theme-name = "Clearlooks-Olive"
   11.13 -
   11.14 -gtk-icon-theme-name = "SliTaz"
   11.15 -
   11.16 -gtk-font-name = "DejaVu Sans 9"
    12.1 --- a/xfce/rootfs/etc/skel/.netsurf/Choices	Tue Apr 10 13:00:52 2012 +0200
    12.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    12.3 @@ -1,64 +0,0 @@
    12.4 -http_proxy:0
    12.5 -http_proxy_host:
    12.6 -http_proxy_port:8080
    12.7 -http_proxy_auth:0
    12.8 -http_proxy_auth_user:
    12.9 -http_proxy_auth_pass:
   12.10 -font_size:128
   12.11 -font_min_size:85
   12.12 -font_sans:Sans
   12.13 -font_serif:Serif
   12.14 -font_mono:Monospace
   12.15 -font_cursive:Serif
   12.16 -font_fantasy:Serif
   12.17 -accept_language:
   12.18 -accept_charset:
   12.19 -memory_cache_size:2097152
   12.20 -disc_cache_age:28
   12.21 -block_advertisements:0
   12.22 -minimum_gif_delay:10
   12.23 -send_referer:1
   12.24 -animate_images:1
   12.25 -expire_url:28
   12.26 -font_default:1
   12.27 -ca_bundle:
   12.28 -ca_path:/etc/ssl/certs
   12.29 -homepage_url:file:///usr/share/webhome/netsurf.html
   12.30 -url_suggestion:1
   12.31 -window_x:40
   12.32 -window_y:40
   12.33 -window_width:800
   12.34 -window_height:600
   12.35 -window_screen_width:0
   12.36 -window_screen_height:0
   12.37 -toolbar_status_size:0
   12.38 -scale:100
   12.39 -incremental_reflow:1
   12.40 -min_reflow_period:25
   12.41 -max_fetchers:24
   12.42 -max_fetchers_per_host:5
   12.43 -max_cached_fetch_handles:6
   12.44 -suppress_curl_debug:1
   12.45 -target_blank:1
   12.46 -button_2_tab:1
   12.47 -margin_top:10
   12.48 -margin_bottom:10
   12.49 -margin_left:10
   12.50 -margin_right:10
   12.51 -export_scale:70
   12.52 -suppress_images:0
   12.53 -remove_backgrounds:0
   12.54 -enable_loosening:1
   12.55 -enable_PDF_compression:1
   12.56 -enable_PDF_password:0
   12.57 -render_resample:0
   12.58 -downloads_clear:0
   12.59 -request_overwrite:1
   12.60 -show_single_tab:0
   12.61 -button_type:1
   12.62 -disable_popups:0
   12.63 -disable_plugins:0
   12.64 -history_age:0
   12.65 -hover_urls:0
   12.66 -focus_new:0
   12.67 -new_blank:0
    13.1 --- a/xfce/rootfs/etc/skel/Desktop/slitaz-doc.desktop	Tue Apr 10 13:00:52 2012 +0200
    13.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    13.3 @@ -1,5 +0,0 @@
    13.4 -[Desktop Entry]
    13.5 -Name=Documentation
    13.6 -Exec=GtkLauncher file:///usr/share/doc/slitaz/index.html
    13.7 -Icon=slitaz-doc.png
    13.8 -Type=Application
    14.1 --- a/xfce/rootfs/etc/slitaz/applications.conf	Tue Apr 10 13:00:52 2012 +0200
    14.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    14.3 @@ -1,18 +0,0 @@
    14.4 -# SliTaz default applications configuration file. Thes apps can be
    14.5 -# started throught wrappers: browser, editor and terminal.
    14.6 -#
    14.7 -
    14.8 -# File manager.
    14.9 -FILE_MANAGER="pcmanfm"
   14.10 -
   14.11 -# Web browser.
   14.12 -BROWSER="midori"
   14.13 -
   14.14 -# Text editor.
   14.15 -EDITOR="leafpad"
   14.16 -
   14.17 -# X terminal.
   14.18 -TERMINAL="xterm"
   14.19 -
   14.20 -# Window manager.
   14.21 -WINDOW_MANAGER="openbox"
    15.1 --- a/xfce/rootfs/etc/xdg/openbox/menu.en.xml	Tue Apr 10 13:00:52 2012 +0200
    15.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    15.3 @@ -1,134 +0,0 @@
    15.4 -<?xml version="1.0" encoding="UTF-8"?>
    15.5 -
    15.6 -<openbox_menu xmlns="http://openbox.org/3.4/menu">
    15.7 -
    15.8 -<!-- Favorite applications -->
    15.9 -<menu id="favorites-menu" label="Favorite Applications">
   15.10 -  <item label="File Manager">
   15.11 -    <action name="Execute"><command>file-manager</command></action>
   15.12 -  </item>
   15.13 -  <item label="Terminal">
   15.14 -    <action name="Execute"><command>terminal</command></action>
   15.15 -  </item>
   15.16 -  <item label="Web Browser">
   15.17 -    <action name="Execute"><command>browser</command></action>
   15.18 -  </item>
   15.19 -  <item label="Text Editor">
   15.20 -    <action name="Execute"><command>editor</command></action>
   15.21 -  </item>
   15.22 -  <separator />
   15.23 -  <item label="Configure favorite">
   15.24 -    <action name="Execute"><command>desktopbox tazapps</command></action>
   15.25 -  </item>
   15.26 -</menu>
   15.27 -
   15.28 -<!-- Desktop files -->
   15.29 -<menu id="desktop-menu" label="Desktop Files &amp; Icons">
   15.30 -  <item label="Create new directory">
   15.31 -    <action name="Execute"><command>desktopbox new-folder</command></action>
   15.32 -  </item>
   15.33 -  <item label="Create new file">
   15.34 -    <action name="Execute"><command>desktopbox new-file</command></action>
   15.35 -  </item>
   15.36 -  <separator />
   15.37 -  <item label="Add new icon">
   15.38 -    <action name="Execute"><command>desktopbox add-icons</command></action>
   15.39 -  </item>
   15.40 -</menu>
   15.41 -
   15.42 -<!-- Desktop effects -->
   15.43 -<menu id="desktop-effects" label="Desktop Effects">
   15.44 -  <item label="Activate composite">
   15.45 -    <action name="Execute"><command>xcompmgr</command></action>
   15.46 -  </item>
   15.47 -  <item label="Activate shadows">
   15.48 -    <action name="Execute"><command>xcompmgr -c -r 10</command></action>
   15.49 -  </item>
   15.50 -  <item label="Activate shadows/fade">
   15.51 -    <action name="Execute"><command>xcompmgr -c -f -r 10</command></action>
   15.52 -  </item>
   15.53 -  <separator />
   15.54 -  <item label="Set opacity (actual)">
   15.55 -    <action name="Execute">
   15.56 -      <command>transset-df --actual --max 60</command>
   15.57 -    </action>
   15.58 -  </item>
   15.59 -  <item label="Set opacity (click)">
   15.60 -    <action name="Execute">
   15.61 -      <command>transset-df --click --max 60</command>
   15.62 -    </action>
   15.63 -  </item>
   15.64 -  <separator />
   15.65 -  <item label="Stop effects">
   15.66 -    <action name="Execute"><command>killall xcompmgr</command></action>
   15.67 -  </item>
   15.68 -</menu>
   15.69 -
   15.70 -<!-- SliTaz Live (Tazlito and Tazusb) -->
   15.71 -<menu id="slitaz-live-menu" label="SliTaz Live">
   15.72 -  <item label="Tazlito LiveCD Tool">
   15.73 -    <action name="Execute"><command>subox tazlitobox</command></action>
   15.74 -  </item>
   15.75 -  <item label="TazUSB LiveUSB Tool">
   15.76 -    <action name="Execute"><command>subox tazusbbox</command></action>
   15.77 -  </item>
   15.78 -  <separator />
   15.79 -  <item label="TazUSB Writefs (gzip)">
   15.80 -    <action name="Execute">
   15.81 -      <command>subox "xterm -e tazusb writefs gzip"</command>
   15.82 -    </action>
   15.83 -  </item>
   15.84 -  <item label="TazUSB Writefs (lzma)">
   15.85 -    <action name="Execute">
   15.86 -      <command>subox "xterm -e tazusb writefs lzma"</command>
   15.87 -    </action>
   15.88 -  </item>
   15.89 -  <item label="TazUSB Writefs (none)">
   15.90 -    <action name="Execute">
   15.91 -      <command>subox "xterm -e tazusb writefs none"</command>
   15.92 -    </action>
   15.93 -  </item>
   15.94 -</menu>
   15.95 -
   15.96 -<!-- Openbox configuration -->
   15.97 -<menu id="openbox-menu" label="Openbox">
   15.98 -  <item label="ObConf">
   15.99 -    <action name="Execute"><command>obconf</command></action>
  15.100 -  </item>
  15.101 -  <item label="Autostart Script">
  15.102 -    <action name="Execute">
  15.103 -      <command>desktopbox autostart</command>
  15.104 -    </action>
  15.105 -  </item>
  15.106 -  <item label="Openbox Menu">
  15.107 -    <action name="Execute">
  15.108 -      <command>editor ~/.config/openbox/menu.xml</command>
  15.109 -    </action>
  15.110 -  </item>
  15.111 -  <separator />
  15.112 -  <item label="Reconfigure">
  15.113 -    <action name="Reconfigure" />
  15.114 -  </item>
  15.115 -  <item label="Restart">
  15.116 -    <action name="Restart" />
  15.117 -  </item>
  15.118 -</menu>
  15.119 -
  15.120 -<menu id="root-menu" label="Openbox 3">
  15.121 -  <!-- <separator label="SliTaz Openbox" /> -->
  15.122 -  <menu id="favorites-menu" />
  15.123 -  <menu id="desktop-menu" />
  15.124 -  <!-- Pipe menu to open folder using GTK bookmarks -->
  15.125 -  <menu id="open-folder-menu" label="Open Folder"
  15.126 -        execute="/usr/lib/openbox/open-folder-menu.sh" />
  15.127 -  <menu id="desktop-effects" />
  15.128 -  <menu id="slitaz-live-menu" />
  15.129 -  <menu id="openbox-menu" />
  15.130 -  <menu id="client-list-menu" />
  15.131 -  <separator />
  15.132 -  <item label="Logout">
  15.133 -    <action name="Execute"><command>desktopbox logout</command></action>
  15.134 -  </item>
  15.135 -</menu>
  15.136 -
  15.137 -</openbox_menu>
    16.1 --- a/xfce/rootfs/etc/xdg/openbox/menu.fr.xml	Tue Apr 10 13:00:52 2012 +0200
    16.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    16.3 @@ -1,137 +0,0 @@
    16.4 -<?xml version="1.0" encoding="UTF-8"?>
    16.5 -
    16.6 -<openbox_menu xmlns="http://openbox.org/3.4/menu">
    16.7 -
    16.8 -<!-- Favorites applications -->
    16.9 -<menu id="favorites-menu" label="Applications favorites">
   16.10 -  <item label="Gestionnaire de fichiers">
   16.11 -    <action name="Execute"><command>file-manager</command></action>
   16.12 -  </item>
   16.13 -  <item label="Emulateur de Terminal">
   16.14 -    <action name="Execute"><command>terminal</command></action>
   16.15 -  </item>
   16.16 -  <item label="Navigateur Web">
   16.17 -    <action name="Execute"><command>browser</command></action>
   16.18 -  </item>
   16.19 -  <item label="Editeur de texte">
   16.20 -    <action name="Execute"><command>editor</command></action>
   16.21 -  </item>
   16.22 -  <separator />
   16.23 -  <item label="Configuration des favoris">
   16.24 -    <action name="Execute"><command>desktopbox tazapps</command></action>
   16.25 -  </item>
   16.26 -</menu>
   16.27 -
   16.28 -<!-- Desktop files -->
   16.29 -<menu id="desktop-menu" label="Fichiers &amp; Icônes du bureau">
   16.30 -  <item label="Créer un nouveau dossier">
   16.31 -    <action name="Execute"><command>desktopbox new-folder</command></action>
   16.32 -  </item>
   16.33 -  <item label="Créer un nouveau fichier">
   16.34 -    <action name="Execute"><command>desktopbox new-file</command></action>
   16.35 -  </item>
   16.36 -  <separator />
   16.37 -  <item label="Ajouter un icône">
   16.38 -    <action name="Execute"><command>desktopbox add-icons</command></action>
   16.39 -  </item>
   16.40 -</menu>
   16.41 -
   16.42 -<!-- Desktop effects -->
   16.43 -<menu id="desktop-effects" label="Effets visuels">
   16.44 -  <item label="Activer le composite">
   16.45 -    <action name="Execute"><command>xcompmgr</command></action>
   16.46 -  </item>
   16.47 -  <item label="Active les ombres">
   16.48 -    <action name="Execute"><command>xcompmgr -c -r 10</command></action>
   16.49 -  </item>
   16.50 -  <item label="Activer les ombres fade">
   16.51 -    <action name="Execute"><command>xcompmgr -c -f -r 10</command></action>
   16.52 -  </item>
   16.53 -  <separator />
   16.54 -  <item label="Régler l'opacité (actuel)">
   16.55 -    <action name="Execute">
   16.56 -      <command>transset-df --actual --max 60</command>
   16.57 -    </action>
   16.58 -  </item>
   16.59 -  <item label="Régler l'opacité (clicque)">
   16.60 -    <action name="Execute">
   16.61 -      <command>transset-df --click --max 60</command>
   16.62 -    </action>
   16.63 -  </item>
   16.64 -  <separator />
   16.65 -  <item label="Stoper les effets">
   16.66 -    <action name="Execute"><command>killall xcompmgr</command></action>
   16.67 -  </item>
   16.68 -</menu>
   16.69 -
   16.70 -<!-- SliTaz Live (Tazlito and Tazusb) -->
   16.71 -<menu id="slitaz-live-menu" label="SliTaz Live CD/USB">
   16.72 -  <item label="Tazlito LiveCD Tool">
   16.73 -    <action name="Execute"><command>subox tazlitobox</command></action>
   16.74 -  </item>
   16.75 -  <item label="TazUSB LiveUSB Tool">
   16.76 -    <action name="Execute"><command>subox tazusbbox</command></action>
   16.77 -  </item>
   16.78 -  <separator />
   16.79 -  <item label="TazUSB Writefs (gzip)">
   16.80 -    <action name="Execute">
   16.81 -      <command>subox "xterm -e tazusb writefs gzip"</command>
   16.82 -    </action>
   16.83 -  </item>
   16.84 -  <item label="TazUSB Writefs (lzma)">
   16.85 -    <action name="Execute">
   16.86 -      <command>subox "xterm -e tazusb writefs lzma"</command>
   16.87 -    </action>
   16.88 -  </item>
   16.89 -  <item label="TazUSB Writefs (none)">
   16.90 -    <action name="Execute">
   16.91 -      <command>subox "xterm -e tazusb writefs none"</command>
   16.92 -    </action>
   16.93 -  </item>
   16.94 -</menu>
   16.95 -
   16.96 -<!-- Openbox configuration -->
   16.97 -<menu id="openbox-menu" label="Openbox">
   16.98 -  <item label="Configuration via OBconf">
   16.99 -    <action name="Execute"><command>obconf</command></action>
  16.100 -  </item>
  16.101 -  <item label="Script de démarrage">
  16.102 -    <action name="Execute">
  16.103 -      <command>desktopbox autostart</command>
  16.104 -    </action>
  16.105 -  </item>
  16.106 -  <item label="Menu d'Openbox">
  16.107 -    <action name="Execute">
  16.108 -      <command>editor ~/.config/openbox/menu.xml</command>
  16.109 -    </action>
  16.110 -  </item>
  16.111 -  <separator />
  16.112 -  <item label="Reconfigurer">
  16.113 -    <action name="Reconfigure" />
  16.114 -  </item>
  16.115 -  <item label="Redémarrer">
  16.116 -    <action name="Restart" />
  16.117 -  </item>
  16.118 -</menu>
  16.119 -
  16.120 -<menu id="root-menu" label="Openbox 3">
  16.121 -  <!-- <separator label="SliTaz Openbox" /> -->
  16.122 -  <menu id="favorites-menu" />
  16.123 -  <menu id="desktop-menu" />
  16.124 -  <!-- Pipe menu to open folder using GTK bookmarks -->
  16.125 -  <menu id="open-folder-menu" label="Dossiers favoris"
  16.126 -        execute="/usr/lib/openbox/open-folder-menu.sh" />
  16.127 -  <menu id="desktop-effects" />
  16.128 -  <menu id="slitaz-live-menu" />
  16.129 -  <menu id="openbox-menu" />
  16.130 -  <menu id="client-list-menu" />
  16.131 -  <separator />
  16.132 -  <!-- <item label="Exécuter">
  16.133 -    <action name="Execute"><command>gmrun</command></action>
  16.134 -  </item> -->
  16.135 -  <item label="Déconnexion">
  16.136 -    <action name="Execute"><command>desktopbox logout</command></action>
  16.137 -  </item>
  16.138 -</menu>
  16.139 -
  16.140 -</openbox_menu>
    17.1 --- a/xfce/rootfs/etc/xdg/openbox/menu.pt.xml	Tue Apr 10 13:00:52 2012 +0200
    17.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    17.3 @@ -1,134 +0,0 @@
    17.4 -<?xml version="1.0" encoding="UTF-8"?>
    17.5 -
    17.6 -<openbox_menu xmlns="http://openbox.org/3.4/menu">
    17.7 -
    17.8 -<!-- Aplicações Favoritas -->
    17.9 -<menu id="favorites-menu" label="Aplicativos Favoritos">
   17.10 -  <item label="Gerenciador de Arquivos">
   17.11 -    <action name="Execute"><command>pcmanfm</command></action>
   17.12 -  </item>
   17.13 -  <item label="Terminal">
   17.14 -    <action name="Execute"><command>terminal</command></action>
   17.15 -  </item>
   17.16 -  <item label="Navegador Web">
   17.17 -    <action name="Execute"><command>browser</command></action>
   17.18 -  </item>
   17.19 -  <item label="Editor de Texto">
   17.20 -    <action name="Execute"><command>editor</command></action>
   17.21 -  </item>
   17.22 -  <separator />
   17.23 -  <item label="Configure favorite">
   17.24 -    <action name="Execute"><command>desktopbox tazapps</command></action>
   17.25 -  </item>
   17.26 -</menu>
   17.27 -
   17.28 -<!-- Desktop files -->
   17.29 -<menu id="desktop-menu" label="Arquivos &amp; Ãcones do Desktop">
   17.30 -  <item label="Criar nova pasta">
   17.31 -    <action name="Execute"><command>desktopbox new-folder</command></action>
   17.32 -  </item>
   17.33 -  <item label="Criar novo arquivo">
   17.34 -    <action name="Execute"><command>desktopbox new-file</command></action>
   17.35 -  </item>
   17.36 -  <separator />
   17.37 -  <item label="Adicionar novo ícone">
   17.38 -    <action name="Execute"><command>desktopbox add-icons</command></action>
   17.39 -  </item>
   17.40 -</menu>
   17.41 -
   17.42 -<!-- Efeitos do Desktop -->
   17.43 -<menu id="desktop-effects" label="Efeitos Visuais">
   17.44 -  <item label="Ativar composite">
   17.45 -    <action name="Execute"><command>xcompmgr</command></action>
   17.46 -  </item>
   17.47 -  <item label="Ativar sombreamento">
   17.48 -    <action name="Execute"><command>xcompmgr -c -r 10</command></action>
   17.49 -  </item>
   17.50 -  <item label="Ativar sombreamento/fade">
   17.51 -    <action name="Execute"><command>xcompmgr -c -f -r 10</command></action>
   17.52 -  </item>
   17.53 -  <separator />
   17.54 -  <item label="Definir opacidade (atual)">
   17.55 -    <action name="Execute">
   17.56 -      <command>transset-df --actual --max 60</command>
   17.57 -    </action>
   17.58 -  </item>
   17.59 -  <item label="Definir opacidade (click)">
   17.60 -    <action name="Execute">
   17.61 -      <command>transset-df --click --max 60</command>
   17.62 -    </action>
   17.63 -  </item>
   17.64 -  <separator />
   17.65 -  <item label="Parar efeitos">
   17.66 -    <action name="Execute"><command>killall xcompmgr</command></action>
   17.67 -  </item>
   17.68 -</menu>
   17.69 -
   17.70 -<!-- SliTaz Live (Tazlito e Tazusb) -->
   17.71 -<menu id="slitaz-live-menu" label="SliTaz Live CD/USB">
   17.72 -  <item label="Tazlito Ferramenta LiveCD">
   17.73 -    <action name="Execute"><command>subox tazlitobox</command></action>
   17.74 -  </item>
   17.75 -  <item label="TazUSB LiveUSB Tool">
   17.76 -    <action name="Execute"><command>subox tazusbbox</command></action>
   17.77 -  </item>
   17.78 -  <separator />
   17.79 -  <item label="TazUSB Writefs (gzip)">
   17.80 -    <action name="Execute">
   17.81 -      <command>subox "xterm -e tazusb writefs gzip"</command>
   17.82 -    </action>
   17.83 -  </item>
   17.84 -  <item label="TazUSB Writefs (lzma)">
   17.85 -    <action name="Execute">
   17.86 -      <command>subox "xterm -e tazusb writefs lzma"</command>
   17.87 -    </action>
   17.88 -  </item>
   17.89 -  <item label="TazUSB Writefs (none)">
   17.90 -    <action name="Execute">
   17.91 -      <command>subox "xterm -e tazusb writefs none"</command>
   17.92 -    </action>
   17.93 -  </item>
   17.94 -</menu>
   17.95 -
   17.96 -<!-- Configuração do Openbox -->
   17.97 -<menu id="openbox-menu" label="Openbox">
   17.98 -  <item label="Configuração do Openbox (GUI)">
   17.99 -    <action name="Execute"><command>obconf</command></action>
  17.100 -  </item>
  17.101 -  <item label="Aplicações autoiniciadas">
  17.102 -    <action name="Execute">
  17.103 -      <command>desktopbox autostart</command>
  17.104 -    </action>
  17.105 -  </item>
  17.106 -  <item label="Menu do Openbox">
  17.107 -    <action name="Execute">
  17.108 -      <command>editor ~/.config/openbox/menu.xml</command>
  17.109 -    </action>
  17.110 -  </item>
  17.111 -  <separator />
  17.112 -  <item label="Reconfigurar">
  17.113 -    <action name="Reconfigure" />
  17.114 -  </item>
  17.115 -  <item label="Reiniciar">
  17.116 -    <action name="Restart" />
  17.117 -  </item>
  17.118 -</menu>
  17.119 -
  17.120 -<menu id="root-menu" label="Openbox 3">
  17.121 -  <!-- <separator label="SliTaz Openbox" /> -->
  17.122 -  <menu id="favorites-menu" />
  17.123 -  <menu id="desktop-menu" />
  17.124 -  <!-- Pipe menu to open folder using GTK bookmarks -->
  17.125 -  <menu id="open-folder-menu" label="Locais Favoritos"
  17.126 -        execute="/usr/lib/openbox/open-folder-menu.sh" />
  17.127 -  <menu id="desktop-effects" />
  17.128 -  <menu id="slitaz-live-menu" />
  17.129 -  <menu id="openbox-menu" />
  17.130 -  <menu id="client-list-menu" />
  17.131 -  <separator />
  17.132 -  <item label="Sair">
  17.133 -    <action name="Execute"><command>desktopbox logout</command></action>
  17.134 -  </item>
  17.135 -</menu>
  17.136 -
  17.137 -</openbox_menu>
    18.1 --- a/xfce/rootfs/etc/xdg/openbox/rc.xml	Tue Apr 10 13:00:52 2012 +0200
    18.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    18.3 @@ -1,699 +0,0 @@
    18.4 -<?xml version="1.0" encoding="UTF-8"?>
    18.5 -<!-- Do not edit this file, it will be overwritten on install.
    18.6 -        Copy the file to $HOME/.config/openbox/ instead. -->
    18.7 -<openbox_config xmlns="http://openbox.org/3.4/rc">
    18.8 -  <resistance>
    18.9 -    <strength>10</strength>
   18.10 -    <screen_edge_strength>20</screen_edge_strength>
   18.11 -  </resistance>
   18.12 -  <focus>
   18.13 -    <focusNew>yes</focusNew>
   18.14 -    <!-- always try to focus new windows when they appear. other rules do
   18.15 -       apply -->
   18.16 -    <followMouse>no</followMouse>
   18.17 -    <!-- move focus to a window when you move the mouse into it -->
   18.18 -    <focusLast>yes</focusLast>
   18.19 -    <!-- focus the last used window when changing desktops, instead of the one
   18.20 -       under the mouse pointer. when followMouse is enabled -->
   18.21 -    <underMouse>no</underMouse>
   18.22 -    <!-- move focus under the mouse, even when the mouse is not moving -->
   18.23 -    <focusDelay>200</focusDelay>
   18.24 -    <!-- when followMouse is enabled, the mouse must be inside the window for
   18.25 -       this many milliseconds (1000 = 1 sec) before moving focus to it -->
   18.26 -    <raiseOnFocus>no</raiseOnFocus>
   18.27 -    <!-- when followMouse is enabled, and a window is given focus by moving the
   18.28 -       mouse into it, also raise the window -->
   18.29 -  </focus>
   18.30 -  <placement>
   18.31 -    <policy>Smart</policy>
   18.32 -    <!-- 'Smart' or 'UnderMouse' -->
   18.33 -    <center>yes</center>
   18.34 -    <!-- whether to place windows in the center of the free area found or
   18.35 -       the top left corner -->
   18.36 -    <monitor>Any</monitor>
   18.37 -    <!-- with Smart placement on a multi-monitor system, try to place new windows
   18.38 -       on: 'Any' - any monitor, 'Mouse' - where the mouse is, 'Active' - where
   18.39 -       the active window is -->
   18.40 -  </placement>
   18.41 -  <theme>
   18.42 -    <name>SliTaz</name>
   18.43 -    <titleLayout>NLIMC</titleLayout>
   18.44 -    <!--
   18.45 -      available characters are NDSLIMC, each can occur at most once.
   18.46 -      N: window icon
   18.47 -      L: window label (AKA title).
   18.48 -      I: iconify
   18.49 -      M: maximize
   18.50 -      C: close
   18.51 -      S: shade (roll up/down)
   18.52 -      D: omnipresent (on all desktops).
   18.53 -  -->
   18.54 -    <keepBorder>yes</keepBorder>
   18.55 -    <animateIconify>yes</animateIconify>
   18.56 -    <font place="ActiveWindow">
   18.57 -      <name>Sans</name>
   18.58 -      <size>8</size>
   18.59 -      <!-- font size in points -->
   18.60 -      <weight>Bold</weight>
   18.61 -      <!-- 'bold' or 'normal' -->
   18.62 -      <slant>Normal</slant>
   18.63 -      <!-- 'italic' or 'normal' -->
   18.64 -    </font>
   18.65 -    <font place="InactiveWindow">
   18.66 -      <name>Sans</name>
   18.67 -      <size>8</size>
   18.68 -      <!-- font size in points -->
   18.69 -      <weight>Bold</weight>
   18.70 -      <!-- 'bold' or 'normal' -->
   18.71 -      <slant>Normal</slant>
   18.72 -      <!-- 'italic' or 'normal' -->
   18.73 -    </font>
   18.74 -    <font place="MenuHeader">
   18.75 -      <name>Sans</name>
   18.76 -      <size>10</size>
   18.77 -      <!-- font size in points -->
   18.78 -      <weight>Normal</weight>
   18.79 -      <!-- 'bold' or 'normal' -->
   18.80 -      <slant>Normal</slant>
   18.81 -      <!-- 'italic' or 'normal' -->
   18.82 -    </font>
   18.83 -    <font place="MenuItem">
   18.84 -      <name>Sans</name>
   18.85 -      <size>9</size>
   18.86 -      <!-- font size in points -->
   18.87 -      <weight>Normal</weight>
   18.88 -      <!-- 'bold' or 'normal' -->
   18.89 -      <slant>Normal</slant>
   18.90 -      <!-- 'italic' or 'normal' -->
   18.91 -    </font>
   18.92 -    <font place="OnScreenDisplay">
   18.93 -      <name>sans</name>
   18.94 -      <size>9</size>
   18.95 -      <!-- font size in points -->
   18.96 -      <weight>bold</weight>
   18.97 -      <!-- 'bold' or 'normal' -->
   18.98 -      <slant>normal</slant>
   18.99 -      <!-- 'italic' or 'normal' -->
  18.100 -    </font>
  18.101 -  </theme>
  18.102 -  <desktops>
  18.103 -    <!-- this stuff is only used at startup, pagers allow you to change them
  18.104 -       during a session
  18.105 -
  18.106 -       these are default values to use when other ones are not already set
  18.107 -       by other applications, or saved in your session
  18.108 -
  18.109 -       use obconf if you want to change these without having to log out
  18.110 -       and back in -->
  18.111 -    <number>2</number>
  18.112 -    <firstdesk>1</firstdesk>
  18.113 -    <names>
  18.114 -      <!-- set names up here if you want to, like this:
  18.115 -    <name>desktop 1</name>
  18.116 -    <name>desktop 2</name>
  18.117 -    -->
  18.118 -    </names>
  18.119 -    <popupTime>875</popupTime>
  18.120 -    <!-- The number of milliseconds to show the popup for when switching
  18.121 -       desktops.  Set this to 0 to disable the popup. -->
  18.122 -  </desktops>
  18.123 -  <resize>
  18.124 -    <drawContents>yes</drawContents>
  18.125 -    <popupShow>Nonpixel</popupShow>
  18.126 -    <!-- 'Always', 'Never', or 'Nonpixel' (xterms and such) -->
  18.127 -    <popupPosition>Center</popupPosition>
  18.128 -    <!-- 'Center', 'Top', or 'Fixed' -->
  18.129 -    <popupFixedPosition>
  18.130 -      <!-- these are used if popupPosition is set to 'Fixed' -->
  18.131 -      <x>10</x>
  18.132 -      <!-- positive number for distance from left edge, negative number for
  18.133 -         distance from right edge, or 'Center' -->
  18.134 -      <y>10</y>
  18.135 -      <!-- positive number for distance from top edge, negative number for
  18.136 -         distance from bottom edge, or 'Center' -->
  18.137 -    </popupFixedPosition>
  18.138 -  </resize>
  18.139 -  <!-- You can reserve a portion of your screen where windows will not cover when
  18.140 -     they are maximized, or when they are initially placed.
  18.141 -     Many programs reserve space automatically, but you can use this in other
  18.142 -     cases. -->
  18.143 -  <margins>
  18.144 -    <top>0</top>
  18.145 -    <bottom>0</bottom>
  18.146 -    <left>0</left>
  18.147 -    <right>0</right>
  18.148 -  </margins>
  18.149 -  <dock>
  18.150 -    <position>TopLeft</position>
  18.151 -    <!-- (Top|Bottom)(Left|Right|)|Top|Bottom|Left|Right|Floating -->
  18.152 -    <floatingX>0</floatingX>
  18.153 -    <floatingY>0</floatingY>
  18.154 -    <noStrut>no</noStrut>
  18.155 -    <stacking>Above</stacking>
  18.156 -    <!-- 'Above', 'Normal', or 'Below' -->
  18.157 -    <direction>Vertical</direction>
  18.158 -    <!-- 'Vertical' or 'Horizontal' -->
  18.159 -    <autoHide>no</autoHide>
  18.160 -    <hideDelay>300</hideDelay>
  18.161 -    <!-- in milliseconds (1000 = 1 second) -->
  18.162 -    <showDelay>300</showDelay>
  18.163 -    <!-- in milliseconds (1000 = 1 second) -->
  18.164 -    <moveButton>Middle</moveButton>
  18.165 -    <!-- 'Left', 'Middle', 'Right' -->
  18.166 -  </dock>
  18.167 -  <keyboard>
  18.168 -    <chainQuitKey>C-g</chainQuitKey>
  18.169 -    <!-- Keybindings for desktop switching -->
  18.170 -    <keybind key="C-A-Left">
  18.171 -      <action name="DesktopLeft">
  18.172 -        <dialog>no</dialog>
  18.173 -        <wrap>no</wrap>
  18.174 -      </action>
  18.175 -    </keybind>
  18.176 -    <keybind key="C-A-Right">
  18.177 -      <action name="DesktopRight">
  18.178 -        <dialog>no</dialog>
  18.179 -        <wrap>no</wrap>
  18.180 -      </action>
  18.181 -    </keybind>
  18.182 -    <keybind key="C-A-Up">
  18.183 -      <action name="DesktopUp">
  18.184 -        <dialog>no</dialog>
  18.185 -        <wrap>no</wrap>
  18.186 -      </action>
  18.187 -    </keybind>
  18.188 -    <keybind key="C-A-Down">
  18.189 -      <action name="DesktopDown">
  18.190 -        <dialog>no</dialog>
  18.191 -        <wrap>no</wrap>
  18.192 -      </action>
  18.193 -    </keybind>
  18.194 -    <keybind key="S-A-Left">
  18.195 -      <action name="SendToDesktopLeft">
  18.196 -        <dialog>no</dialog>
  18.197 -        <wrap>no</wrap>
  18.198 -      </action>
  18.199 -    </keybind>
  18.200 -    <keybind key="S-A-Right">
  18.201 -      <action name="SendToDesktopRight">
  18.202 -        <dialog>no</dialog>
  18.203 -        <wrap>no</wrap>
  18.204 -      </action>
  18.205 -    </keybind>
  18.206 -    <keybind key="S-A-Up">
  18.207 -      <action name="SendToDesktopUp">
  18.208 -        <dialog>no</dialog>
  18.209 -        <wrap>no</wrap>
  18.210 -      </action>
  18.211 -    </keybind>
  18.212 -    <keybind key="S-A-Down">
  18.213 -      <action name="SendToDesktopDown">
  18.214 -        <dialog>no</dialog>
  18.215 -        <wrap>no</wrap>
  18.216 -      </action>
  18.217 -    </keybind>
  18.218 -    <keybind key="W-F1">
  18.219 -      <action name="Desktop">
  18.220 -        <desktop>1</desktop>
  18.221 -      </action>
  18.222 -    </keybind>
  18.223 -    <keybind key="W-F2">
  18.224 -      <action name="Desktop">
  18.225 -        <desktop>2</desktop>
  18.226 -      </action>
  18.227 -    </keybind>
  18.228 -    <keybind key="W-F3">
  18.229 -      <action name="Desktop">
  18.230 -        <desktop>3</desktop>
  18.231 -      </action>
  18.232 -    </keybind>
  18.233 -    <keybind key="W-F4">
  18.234 -      <action name="Desktop">
  18.235 -        <desktop>4</desktop>
  18.236 -      </action>
  18.237 -    </keybind>
  18.238 -    <keybind key="W-d">
  18.239 -      <action name="ToggleShowDesktop"/>
  18.240 -    </keybind>
  18.241 -    <!-- Keybindings for windows -->
  18.242 -    <keybind key="A-F4">
  18.243 -      <action name="Close"/>
  18.244 -    </keybind>
  18.245 -    <keybind key="A-Escape">
  18.246 -      <action name="Lower"/>
  18.247 -      <action name="FocusToBottom"/>
  18.248 -      <action name="Unfocus"/>
  18.249 -    </keybind>
  18.250 -    <keybind key="A-space">
  18.251 -      <action name="ShowMenu">
  18.252 -        <menu>client-menu</menu>
  18.253 -      </action>
  18.254 -    </keybind>
  18.255 -    <!-- Keybindings for window switching -->
  18.256 -    <keybind key="A-Tab">
  18.257 -      <action name="NextWindow"/>
  18.258 -    </keybind>
  18.259 -    <keybind key="A-S-Tab">
  18.260 -      <action name="PreviousWindow"/>
  18.261 -    </keybind>
  18.262 -    <keybind key="C-A-Tab">
  18.263 -      <action name="NextWindow">
  18.264 -        <panels>yes</panels>
  18.265 -        <desktop>yes</desktop>
  18.266 -      </action>
  18.267 -    </keybind>
  18.268 -    <!-- Keybindings for running applications -->
  18.269 -    <keybind key="W-e">
  18.270 -      <action name="Execute">
  18.271 -        <startupnotify>
  18.272 -          <enabled>true</enabled>
  18.273 -          <name>App Launcher</name>
  18.274 -        </startupnotify>
  18.275 -        <command>lxpanelctl run</command>
  18.276 -      </action>
  18.277 -    </keybind>
  18.278 -  </keyboard>
  18.279 -  <mouse>
  18.280 -    <dragThreshold>8</dragThreshold>
  18.281 -    <!-- number of pixels the mouse must move before a drag begins -->
  18.282 -    <doubleClickTime>200</doubleClickTime>
  18.283 -    <!-- in milliseconds (1000 = 1 second) -->
  18.284 -    <screenEdgeWarpTime>400</screenEdgeWarpTime>
  18.285 -    <!-- Time before changing desktops when the pointer touches the edge of the
  18.286 -       screen while moving a window, in milliseconds (1000 = 1 second).
  18.287 -       Set this to 0 to disable warping -->
  18.288 -    <context name="Frame">
  18.289 -      <mousebind button="A-Left" action="Press">
  18.290 -        <action name="Focus"/>
  18.291 -        <action name="Raise"/>
  18.292 -      </mousebind>
  18.293 -      <mousebind button="A-Left" action="Click">
  18.294 -        <action name="Unshade"/>
  18.295 -      </mousebind>
  18.296 -      <mousebind button="A-Left" action="Drag">
  18.297 -        <action name="Move"/>
  18.298 -      </mousebind>
  18.299 -      <mousebind button="A-Right" action="Press">
  18.300 -        <action name="Focus"/>
  18.301 -        <action name="Raise"/>
  18.302 -        <action name="Unshade"/>
  18.303 -      </mousebind>
  18.304 -      <mousebind button="A-Right" action="Drag">
  18.305 -        <action name="Resize"/>
  18.306 -      </mousebind>
  18.307 -      <mousebind button="A-Middle" action="Press">
  18.308 -        <action name="Lower"/>
  18.309 -        <action name="FocusToBottom"/>
  18.310 -        <action name="Unfocus"/>
  18.311 -      </mousebind>
  18.312 -      <mousebind button="A-Up" action="Click">
  18.313 -        <action name="DesktopPrevious"/>
  18.314 -      </mousebind>
  18.315 -      <mousebind button="A-Down" action="Click">
  18.316 -        <action name="DesktopNext"/>
  18.317 -      </mousebind>
  18.318 -      <mousebind button="C-A-Up" action="Click">
  18.319 -        <action name="DesktopPrevious"/>
  18.320 -      </mousebind>
  18.321 -      <mousebind button="C-A-Down" action="Click">
  18.322 -        <action name="DesktopNext"/>
  18.323 -      </mousebind>
  18.324 -      <mousebind button="A-S-Up" action="Click">
  18.325 -        <action name="SendToDesktopPrevious"/>
  18.326 -      </mousebind>
  18.327 -      <mousebind button="A-S-Down" action="Click">
  18.328 -        <action name="SendToDesktopNext"/>
  18.329 -      </mousebind>
  18.330 -    </context>
  18.331 -    <context name="Titlebar">
  18.332 -      <mousebind button="Left" action="Press">
  18.333 -        <action name="Focus"/>
  18.334 -        <action name="Raise"/>
  18.335 -      </mousebind>
  18.336 -      <mousebind button="Left" action="Drag">
  18.337 -        <action name="Move"/>
  18.338 -      </mousebind>
  18.339 -      <mousebind button="Left" action="DoubleClick">
  18.340 -        <action name="ToggleMaximizeFull"/>
  18.341 -      </mousebind>
  18.342 -      <mousebind button="Middle" action="Press">
  18.343 -        <action name="Lower"/>
  18.344 -        <action name="FocusToBottom"/>
  18.345 -        <action name="Unfocus"/>
  18.346 -      </mousebind>
  18.347 -      <mousebind button="Up" action="Click">
  18.348 -        <action name="Shade"/>
  18.349 -        <action name="FocusToBottom"/>
  18.350 -        <action name="Unfocus"/>
  18.351 -        <action name="Lower"/>
  18.352 -      </mousebind>
  18.353 -      <mousebind button="Down" action="Click">
  18.354 -        <action name="Unshade"/>
  18.355 -        <action name="Raise"/>
  18.356 -      </mousebind>
  18.357 -      <mousebind button="Right" action="Press">
  18.358 -        <action name="Focus"/>
  18.359 -        <action name="Raise"/>
  18.360 -        <action name="ShowMenu">
  18.361 -          <menu>client-menu</menu>
  18.362 -        </action>
  18.363 -      </mousebind>
  18.364 -    </context>
  18.365 -    <context name="Top">
  18.366 -      <mousebind button="Left" action="Press">
  18.367 -        <action name="Focus"/>
  18.368 -        <action name="Raise"/>
  18.369 -        <action name="Unshade"/>
  18.370 -      </mousebind>
  18.371 -      <mousebind button="Left" action="Drag">
  18.372 -        <action name="Resize">
  18.373 -          <edge>top</edge>
  18.374 -        </action>
  18.375 -      </mousebind>
  18.376 -    </context>
  18.377 -    <context name="Left">
  18.378 -      <mousebind button="Left" action="Press">
  18.379 -        <action name="Focus"/>
  18.380 -        <action name="Raise"/>
  18.381 -      </mousebind>
  18.382 -      <mousebind button="Left" action="Drag">
  18.383 -        <action name="Resize">
  18.384 -          <edge>left</edge>
  18.385 -        </action>
  18.386 -      </mousebind>
  18.387 -    </context>
  18.388 -    <context name="Right">
  18.389 -      <mousebind button="Left" action="Press">
  18.390 -        <action name="Focus"/>
  18.391 -        <action name="Raise"/>
  18.392 -      </mousebind>
  18.393 -      <mousebind button="Left" action="Drag">
  18.394 -        <action name="Resize">
  18.395 -          <edge>right</edge>
  18.396 -        </action>
  18.397 -      </mousebind>
  18.398 -    </context>
  18.399 -    <context name="Bottom">
  18.400 -      <mousebind button="Left" action="Press">
  18.401 -        <action name="Focus"/>
  18.402 -        <action name="Raise"/>
  18.403 -      </mousebind>
  18.404 -      <mousebind button="Left" action="Drag">
  18.405 -        <action name="Resize">
  18.406 -          <edge>bottom</edge>
  18.407 -        </action>
  18.408 -      </mousebind>
  18.409 -      <mousebind button="Middle" action="Press">
  18.410 -        <action name="Lower"/>
  18.411 -        <action name="FocusToBottom"/>
  18.412 -        <action name="Unfocus"/>
  18.413 -      </mousebind>
  18.414 -      <mousebind button="Right" action="Press">
  18.415 -        <action name="Focus"/>
  18.416 -        <action name="Raise"/>
  18.417 -        <action name="ShowMenu">
  18.418 -          <menu>client-menu</menu>
  18.419 -        </action>
  18.420 -      </mousebind>
  18.421 -    </context>
  18.422 -    <context name="BLCorner">
  18.423 -      <mousebind button="Left" action="Press">
  18.424 -        <action name="Focus"/>
  18.425 -        <action name="Raise"/>
  18.426 -      </mousebind>
  18.427 -      <mousebind button="Left" action="Drag">
  18.428 -        <action name="Resize"/>
  18.429 -      </mousebind>
  18.430 -    </context>
  18.431 -    <context name="BRCorner">
  18.432 -      <mousebind button="Left" action="Press">
  18.433 -        <action name="Focus"/>
  18.434 -        <action name="Raise"/>
  18.435 -      </mousebind>
  18.436 -      <mousebind button="Left" action="Drag">
  18.437 -        <action name="Resize"/>
  18.438 -      </mousebind>
  18.439 -    </context>
  18.440 -    <context name="TLCorner">
  18.441 -      <mousebind button="Left" action="Press">
  18.442 -        <action name="Focus"/>
  18.443 -        <action name="Raise"/>
  18.444 -        <action name="Unshade"/>
  18.445 -      </mousebind>
  18.446 -      <mousebind button="Left" action="Drag">
  18.447 -        <action name="Resize"/>
  18.448 -      </mousebind>
  18.449 -    </context>
  18.450 -    <context name="TRCorner">
  18.451 -      <mousebind button="Left" action="Press">
  18.452 -        <action name="Focus"/>
  18.453 -        <action name="Raise"/>
  18.454 -        <action name="Unshade"/>
  18.455 -      </mousebind>
  18.456 -      <mousebind button="Left" action="Drag">
  18.457 -        <action name="Resize"/>
  18.458 -      </mousebind>
  18.459 -    </context>
  18.460 -    <context name="Client">
  18.461 -      <mousebind button="Left" action="Press">
  18.462 -        <action name="Focus"/>
  18.463 -        <action name="Raise"/>
  18.464 -      </mousebind>
  18.465 -      <mousebind button="Middle" action="Press">
  18.466 -        <action name="Focus"/>
  18.467 -        <action name="Raise"/>
  18.468 -      </mousebind>
  18.469 -      <mousebind button="Right" action="Press">
  18.470 -        <action name="Focus"/>
  18.471 -        <action name="Raise"/>
  18.472 -      </mousebind>
  18.473 -    </context>
  18.474 -    <context name="Icon">
  18.475 -      <mousebind button="Left" action="Press">
  18.476 -        <action name="Focus"/>
  18.477 -        <action name="Raise"/>
  18.478 -        <action name="Unshade"/>
  18.479 -        <action name="ShowMenu">
  18.480 -          <menu>client-menu</menu>
  18.481 -        </action>
  18.482 -      </mousebind>
  18.483 -      <mousebind button="Right" action="Press">
  18.484 -        <action name="Focus"/>
  18.485 -        <action name="Raise"/>
  18.486 -        <action name="ShowMenu">
  18.487 -          <menu>client-menu</menu>
  18.488 -        </action>
  18.489 -      </mousebind>
  18.490 -    </context>
  18.491 -    <context name="AllDesktops">
  18.492 -      <mousebind button="Left" action="Press">
  18.493 -        <action name="Focus"/>
  18.494 -        <action name="Raise"/>
  18.495 -        <action name="Unshade"/>
  18.496 -      </mousebind>
  18.497 -      <mousebind button="Left" action="Click">
  18.498 -        <action name="ToggleOmnipresent"/>
  18.499 -      </mousebind>
  18.500 -    </context>
  18.501 -    <context name="Shade">
  18.502 -      <mousebind button="Left" action="Press">
  18.503 -        <action name="Focus"/>
  18.504 -        <action name="Raise"/>
  18.505 -      </mousebind>
  18.506 -      <mousebind button="Left" action="Click">
  18.507 -        <action name="ToggleShade"/>
  18.508 -      </mousebind>
  18.509 -    </context>
  18.510 -    <context name="Iconify">
  18.511 -      <mousebind button="Left" action="Press">
  18.512 -        <action name="Focus"/>
  18.513 -        <action name="Raise"/>
  18.514 -      </mousebind>
  18.515 -      <mousebind button="Left" action="Click">
  18.516 -        <action name="Iconify"/>
  18.517 -      </mousebind>
  18.518 -    </context>
  18.519 -    <context name="Maximize">
  18.520 -      <mousebind button="Left" action="Press">
  18.521 -        <action name="Focus"/>
  18.522 -        <action name="Raise"/>
  18.523 -        <action name="Unshade"/>
  18.524 -      </mousebind>
  18.525 -      <mousebind button="Middle" action="Press">
  18.526 -        <action name="Focus"/>
  18.527 -        <action name="Raise"/>
  18.528 -        <action name="Unshade"/>
  18.529 -      </mousebind>
  18.530 -      <mousebind button="Right" action="Press">
  18.531 -        <action name="Focus"/>
  18.532 -        <action name="Raise"/>
  18.533 -        <action name="Unshade"/>
  18.534 -      </mousebind>
  18.535 -      <mousebind button="Left" action="Click">
  18.536 -        <action name="ToggleMaximizeFull"/>
  18.537 -      </mousebind>
  18.538 -      <mousebind button="Middle" action="Click">
  18.539 -        <action name="ToggleMaximizeVert"/>
  18.540 -      </mousebind>
  18.541 -      <mousebind button="Right" action="Click">
  18.542 -        <action name="ToggleMaximizeHorz"/>
  18.543 -      </mousebind>
  18.544 -    </context>
  18.545 -    <context name="Close">
  18.546 -      <mousebind button="Left" action="Press">
  18.547 -        <action name="Focus"/>
  18.548 -        <action name="Raise"/>
  18.549 -        <action name="Unshade"/>
  18.550 -      </mousebind>
  18.551 -      <mousebind button="Left" action="Click">
  18.552 -        <action name="Close"/>
  18.553 -      </mousebind>
  18.554 -    </context>
  18.555 -    <context name="Desktop">
  18.556 -      <mousebind button="Up" action="Click">
  18.557 -        <action name="DesktopPrevious"/>
  18.558 -      </mousebind>
  18.559 -      <mousebind button="Down" action="Click">
  18.560 -        <action name="DesktopNext"/>
  18.561 -      </mousebind>
  18.562 -      <mousebind button="A-Up" action="Click">
  18.563 -        <action name="DesktopPrevious"/>
  18.564 -      </mousebind>
  18.565 -      <mousebind button="A-Down" action="Click">
  18.566 -        <action name="DesktopNext"/>
  18.567 -      </mousebind>
  18.568 -      <mousebind button="C-A-Up" action="Click">
  18.569 -        <action name="DesktopPrevious"/>
  18.570 -      </mousebind>
  18.571 -      <mousebind button="C-A-Down" action="Click">
  18.572 -        <action name="DesktopNext"/>
  18.573 -      </mousebind>
  18.574 -      <mousebind button="Left" action="Press">
  18.575 -        <action name="Focus"/>
  18.576 -        <action name="Raise"/>
  18.577 -      </mousebind>
  18.578 -      <mousebind button="Right" action="Press">
  18.579 -        <action name="Focus"/>
  18.580 -        <action name="Raise"/>
  18.581 -      </mousebind>
  18.582 -    </context>
  18.583 -    <context name="Root">
  18.584 -      <!-- Menus -->
  18.585 -      <mousebind button="Middle" action="Press">
  18.586 -        <action name="ShowMenu">
  18.587 -          <menu>client-list-combined-menu</menu>
  18.588 -        </action>
  18.589 -      </mousebind>
  18.590 -      <mousebind button="Right" action="Press">
  18.591 -        <action name="ShowMenu">
  18.592 -          <menu>root-menu</menu>
  18.593 -        </action>
  18.594 -      </mousebind>
  18.595 -    </context>
  18.596 -    <context name="MoveResize">
  18.597 -      <mousebind button="Up" action="Click">
  18.598 -        <action name="DesktopPrevious"/>
  18.599 -      </mousebind>
  18.600 -      <mousebind button="Down" action="Click">
  18.601 -        <action name="DesktopNext"/>
  18.602 -      </mousebind>
  18.603 -      <mousebind button="A-Up" action="Click">
  18.604 -        <action name="DesktopPrevious"/>
  18.605 -      </mousebind>
  18.606 -      <mousebind button="A-Down" action="Click">
  18.607 -        <action name="DesktopNext"/>
  18.608 -      </mousebind>
  18.609 -    </context>
  18.610 -  </mouse>
  18.611 -  <menu>
  18.612 -    <!-- You can specify more than one menu file in here and they are all loaded,
  18.613 -       just don't make menu ids clash or, well, it'll be kind of pointless -->
  18.614 -    <!-- default menu file (or custom one in $HOME/.config/openbox/) -->
  18.615 -    <file>menu.xml</file>
  18.616 -    <hideDelay>200</hideDelay>
  18.617 -    <!-- if a press-release lasts longer than this setting (in milliseconds), the
  18.618 -       menu is hidden again -->
  18.619 -    <middle>no</middle>
  18.620 -    <!-- center submenus vertically about the parent entry -->
  18.621 -    <submenuShowDelay>100</submenuShowDelay>
  18.622 -    <!-- this one is easy, time to delay before showing a submenu after hovering
  18.623 -       over the parent entry -->
  18.624 -    <applicationIcons>yes</applicationIcons>
  18.625 -    <!-- controls if icons appear in the client-list-(combined-)menu -->
  18.626 -    <manageDesktops>yes</manageDesktops>
  18.627 -    <!-- show the manage desktops section in the client-list-(combined-)menu -->
  18.628 -  </menu>
  18.629 -  <applications>
  18.630 -    <!--
  18.631 -  # this is an example with comments through out. use these to make your
  18.632 -  # own rules, but without the comments of course.
  18.633 -
  18.634 -  <application name="first element of window's WM_CLASS property (see xprop)"
  18.635 -              class="second element of window's WM_CLASS property (see xprop)"
  18.636 -               role="the window's WM_WINDOW_ROLE property (see xprop)">
  18.637 -  # the name or the class can be set, or both. this is used to match
  18.638 -  # windows when they appear. role can optionally be set as well, to
  18.639 -  # further restrict your matches.
  18.640 -
  18.641 -  # the name, class, and role use simple wildcard matching such as those
  18.642 -  # used by a shell. you can use * to match any characters and ? to match
  18.643 -  # any single character.
  18.644 -
  18.645 -  # when multiple rules match a window, they will all be applied, in the
  18.646 -  # order that they appear in this list
  18.647 -
  18.648 -
  18.649 -    # each element can be left out or set to 'default' to specify to not 
  18.650 -    # change that attribute of the window
  18.651 -
  18.652 -    <decor>yes</decor>
  18.653 -    # enable or disable window decorations
  18.654 -
  18.655 -    <shade>no</shade>
  18.656 -    # make the window shaded when it appears, or not
  18.657 -
  18.658 -    <position>
  18.659 -      # the position is only used if both an x and y coordinate are provided
  18.660 -      # (and not set to 'default')
  18.661 -      <x>center</x>
  18.662 -      # a number like 50, or 'center' to center on screen. use a negative number
  18.663 -      # to start from the right (or bottom for <y>), ie -50 is 50 pixels from the
  18.664 -      # right edge (or bottom).
  18.665 -      <y>200</y>
  18.666 -      <monitor>1</monitor>
  18.667 -      # specifies the monitor in a xinerama setup.
  18.668 -      # 1 is the first head, or 'mouse' for wherever the mouse is
  18.669 -    </position>
  18.670 -
  18.671 -    <focus>yes</focus>
  18.672 -    # if the window should try be given focus when it appears. if this is set
  18.673 -    # to yes it doesn't guarantee the window will be given focus. some
  18.674 -    # restrictions may apply, but Openbox will try to
  18.675 -
  18.676 -    <desktop>1</desktop>
  18.677 -    # 1 is the first desktop, 'all' for all desktops
  18.678 -
  18.679 -    <layer>normal</layer>
  18.680 -    # 'above', 'normal', or 'below'
  18.681 -
  18.682 -    <iconic>no</iconic>
  18.683 -    # make the window iconified when it appears, or not
  18.684 -
  18.685 -    <skip_pager>no</skip_pager>
  18.686 -    # asks to not be shown in pagers
  18.687 -
  18.688 -    <skip_taskbar>no</skip_taskbar>
  18.689 -    # asks to not be shown in taskbars. window cycling actions will also
  18.690 -    # skip past such windows
  18.691 -
  18.692 -    <fullscreen>yes</fullscreen>
  18.693 -    # make the window in fullscreen mode when it appears
  18.694 -
  18.695 -    <maximized>true</maximized>
  18.696 -    # 'Horizontal', 'Vertical' or boolean (yes/no)
  18.697 -  </application>
  18.698 -
  18.699 -  # end of the example
  18.700 --->
  18.701 -  </applications>
  18.702 -</openbox_config>
    19.1 --- a/xfce/rootfs/root/.Xdefaults	Tue Apr 10 13:00:52 2012 +0200
    19.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    19.3 @@ -1,20 +0,0 @@
    19.4 -!~/.Xdefault: Control the behavior of x-clients.
    19.5 -!
    19.6 -
    19.7 -! Xcursor theme (~/.icons).
    19.8 -!
    19.9 -Xcursor.theme:		slitaz-polar
   19.10 -
   19.11 -! XTerm settings.
   19.12 -!
   19.13 -xterm*background:	black
   19.14 -xterm*foreground:	white
   19.15 -xterm*cursorColor:	#6AA2D8
   19.16 -xterm*scrollBar:	off
   19.17 -xterm*faceName:		DejaVu Sans Mono
   19.18 -xterm*faceSize:		9
   19.19 -
   19.20 -! Xload settings.
   19.21 -!
   19.22 -!xload*background:	black
   19.23 -!xload*foreground:	lightblue
    20.1 --- a/xfce/rootfs/root/.gtkrc-2.0	Tue Apr 10 13:00:52 2012 +0200
    20.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    20.3 @@ -1,13 +0,0 @@
    20.4 -# ~/.gtkrc-2.0 - GTK+ theme, icon and font configuration.
    20.5 -#
    20.6 -# System files   : /usr/share/{themes,icons,fonts}
    20.7 -# Personal files : ~/.icons and ~/.fonts
    20.8 -#
    20.9 -
   20.10 -gtk-theme-name = "SliTaz"
   20.11 -#gtk-theme-name = "Clearlooks-DeepSky"
   20.12 -#gtk-theme-name = "Clearlooks-Olive"
   20.13 -
   20.14 -gtk-icon-theme-name = "SliTaz"
   20.15 -
   20.16 -gtk-font-name = "DejaVu Sans 9"
    21.1 --- a/xfce/rootfs/sbin/tazlocale	Tue Apr 10 13:00:52 2012 +0200
    21.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    21.3 @@ -1,137 +0,0 @@
    21.4 -#!/bin/sh
    21.5 -#
    21.6 -# Tazlocale: SliTaz GNU/Linux locale setting using dialog boxes.
    21.7 -# Configuration file is : /etc/locale.conf
    21.8 -#
    21.9 -# 20100201 <pankso@slitaz.org> - GNU gpl.
   21.10 -#
   21.11 -
   21.12 -# Check if user is root.
   21.13 -if test $(id -u) != 0; then
   21.14 -	echo -e "\nYou must be root to run `basename $0`!"
   21.15 -	echo -e "Type su and root password to become super-user.\n"
   21.16 -	exit 1
   21.17 -fi
   21.18 -
   21.19 -get_messages()
   21.20 -{
   21.21 -	[ -f "/etc/locale.conf" ] && . /etc/locale.conf
   21.22 -	LANGUAGE=${LANG%_*}
   21.23 -	[ "$LANG" = "C" ] && LANGUAGE="en_US"
   21.24 -	case $LANGUAGE in
   21.25 -		fr*)
   21.26 -			RECONFIG_MSG="
   21.27 -Veuilliez fermer votre session et vous reloguer pour utiliser SliTaz \
   21.28 -avec la locale : $LANG" ;;
   21.29 -		*)
   21.30 -			RECONFIG_MSG="
   21.31 -Please logout of your current session and login again to use SliTaz \
   21.32 -with $LANG locale." ;;
   21.33 -	esac
   21.34 -}
   21.35 -
   21.36 -# Create symlink to translated files provide by SliTaz language pack,
   21.37 -# doc and config files.
   21.38 -link_language_files()
   21.39 -{
   21.40 -	. /etc/locale.conf
   21.41 -	LANGUAGE=${LANG%_*}
   21.42 -	[ "$LANG" = "C" ] && LANGUAGE="en"
   21.43 -	# Openbox menu in /usr/share/doc/slitaz
   21.44 -	if [ -f /etc/xdg/openbox/menu.$LANGUAGE.xml ]; then
   21.45 -		cd /etc/xdg/openbox && rm -f menu.xml
   21.46 -		ln -s menu.$LANGUAGE.xml menu.xml
   21.47 -	fi
   21.48 -	# Documentation in /usr/share/doc/slitaz
   21.49 -	if [ -f /usr/share/doc/slitaz/index.$LANGUAGE.html ]; then
   21.50 -		cd /usr/share/doc/slitaz && rm -f index.html
   21.51 -		ln -s index.$LANGUAGE.html index.html
   21.52 -	fi
   21.53 -	# SliTaz Software Manuals
   21.54 -	for soft in tazpkg tazlito tazusb tazwok
   21.55 -	do
   21.56 -		if [ -f /usr/share/doc/$soft/$soft.$LANGUAGE.html ]; then
   21.57 -			cd /usr/share/doc/$soft && rm -f $soft.html
   21.58 -			ln -s $soft.$LANGUAGE.html $soft.html
   21.59 -		fi
   21.60 -	done
   21.61 -}
   21.62 -
   21.63 -# Locale name displayed.
   21.64 -get_locale_name()
   21.65 -{
   21.66 -	for i in `ls -1 /usr/share/i18n/locales/ | grep ^[a-z][a-z]_[A-Z][A-Z]`
   21.67 -	do
   21.68 -		#name=`locale -a -v | grep -A 2 "locale: $i" | grep "title" | \
   21.69 -		#	cut -d " " -f 7`
   21.70 -		echo "$i Locale"
   21.71 -	done
   21.72 -}
   21.73 -
   21.74 -# We have no locale files in /usr/lib/locale by default. Run localedef in
   21.75 -# background to have a faster boot.
   21.76 -gen_utf8_locale()
   21.77 -{
   21.78 -	localedef -i $locale -c -f UTF-8 /usr/lib/locale/$locale &
   21.79 -}
   21.80 -
   21.81 -# Dialog menu.
   21.82 -dialog_menu()
   21.83 -{
   21.84 -	exec 3>&1
   21.85 -	locale=`$DIALOG  --clear \
   21.86 -	--title " SliTaz language configuration " \
   21.87 -	--menu "" 15 70 5 \
   21.88 -"en" "English" \
   21.89 -$(get_locale_name) \
   21.90 -2>&1 1>&3`
   21.91 -	retval=$?
   21.92 -	exec 3>&-
   21.93 -	case $retval in
   21.94 -		0)
   21.95 -			continue ;;
   21.96 -		1)
   21.97 -			echo "Cancel pressed."
   21.98 -			exit 0 ;;
   21.99 -		255)
  21.100 -			if test -n "$locale"; then
  21.101 -				echo "$locale"
  21.102 -			else
  21.103 -				echo "ESC pressed."
  21.104 -				exit 0
  21.105 -			fi ;;
  21.106 -	esac
  21.107 -	# Default: C = English
  21.108 -	[ "$locale" = "en" ] && locale="en_US"
  21.109 -	[ -s /etc/locale.conf ] && RECONFIG="yes"
  21.110 -	# System configuration
  21.111 -	echo "LANG=$locale" > /etc/locale.conf
  21.112 -	echo "LC_ALL=$locale" >> /etc/locale.conf
  21.113 -	export LANG=$locale LC_ALL=$locale
  21.114 -	gen_utf8_locale
  21.115 -	get_messages
  21.116 -	# If it's a reconfiguration give an info message.
  21.117 -	if [ -n "$RECONFIG" ]; then
  21.118 -		$DIALOG --clear \
  21.119 -			--title " Information " \
  21.120 -			--msgbox "$RECONFIG_MSG" 16 70
  21.121 -	fi
  21.122 -}
  21.123 -
  21.124 -case "$1" in
  21.125 -	*_*)
  21.126 -		# Execute functions (can be called from an other apps).
  21.127 -		$1 ;;
  21.128 -	link-files)
  21.129 -		link_language_files ;;
  21.130 -	list)
  21.131 -		echo ""
  21.132 -		locale -a
  21.133 -		echo "" ;;
  21.134 -	*)
  21.135 -		: ${DIALOG=dialog}
  21.136 -		dialog_menu
  21.137 -		link_language_files ;;
  21.138 -esac
  21.139 -
  21.140 -exit 0
    22.1 --- a/xfce/rootfs/usr/bin/slitaz-installer	Tue Apr 10 13:00:52 2012 +0200
    22.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    22.3 @@ -1,1051 +0,0 @@
    22.4 -#!/bin/sh
    22.5 -# slitaz-installer - SliTaz GNU/Linux installer.
    22.6 -#
    22.7 -# So this is SliTaz installer using dialog boxes. All the comments are in
    22.8 -# English but displayed messages are in French. The script starts with a
    22.9 -# few main variables, then all the functions and then a sequence of functions.
   22.10 -#
   22.11 -# (C) 2007-2009 SliTaz - GNU General Public License v3.
   22.12 -#
   22.13 -# Author : Christophe Lincoln <pankso@slitaz.org>
   22.14 -#
   22.15 -VERSION=2.0
   22.16 -
   22.17 -: ${DIALOG=dialog}
   22.18 -
   22.19 -# We need to know cdrom device and kernel version string to copy files.
   22.20 -DRIVE_NAME=`cat /proc/sys/dev/cdrom/info | grep "drive name" | cut -f 3`
   22.21 -CDROM=/dev/$DRIVE_NAME
   22.22 -KERNEL=vmlinuz-`uname -r`
   22.23 -TARGET_ROOT=/mnt/target
   22.24 -LOG=/var/log/slitaz-installer.log
   22.25 -BACKLIST="SliTaz GNU/Linux installer"
   22.26 -ACTION=$1
   22.27 -
   22.28 -#######################
   22.29 -# Installer functions #
   22.30 -#######################
   22.31 -
   22.32 -# Messages language setting.
   22.33 -set_messages()
   22.34 -{
   22.35 -	case $LANG in
   22.36 -		de*)
   22.37 -			. /usr/share/slitaz/messages/de/installer.msg ;;
   22.38 -		fr*)
   22.39 -			. /usr/share/slitaz/messages/fr/installer.msg ;;
   22.40 -		hu*)
   22.41 -			. /usr/share/slitaz/messages/hu/installer.msg ;;
   22.42 -		pt*)
   22.43 -			. /usr/share/slitaz/messages/pt/installer.msg ;;
   22.44 -		*)
   22.45 -			. /usr/share/slitaz/messages/en/installer.msg ;;
   22.46 -	esac
   22.47 -}
   22.48 -
   22.49 -# Display error message.
   22.50 -error_message()
   22.51 -{
   22.52 -	$DIALOG --title " Error " \
   22.53 -		--colors --backtitle "$BACKLIST" \
   22.54 -		--clear --msgbox "\n$ERROR_MSG" 18 70
   22.55 -}
   22.56 -
   22.57 -# Exit install if user is not root.
   22.58 -check_root()
   22.59 -{
   22.60 -	if test $(id -u) != 0 ; then
   22.61 -	ERROR_MSG="\
   22.62 -[\Z6en\Zn] You must be root administrator to start SliTaz installer, please \
   22.63 -use 'su' to get a root SHell and restart installation.\n\n
   22.64 -[\Z6fr\Zn] Vous devez être root pour installer SLiTaz GNU/Linux. Vous pouvez \
   22.65 -utiliser 'su' suivi du mot de passe administrateur pour devenir root \
   22.66 -et relancer l'installation."
   22.67 -		error_message
   22.68 -		exit 0
   22.69 -	fi
   22.70 -}
   22.71 -
   22.72 -# This function is used after each screen to contine or abort install.
   22.73 -check_retval()
   22.74 -{
   22.75 -	case $retval in
   22.76 -		0)
   22.77 -			continue ;;
   22.78 -		1)
   22.79 -			echo -e "\nVoluntary exit.\n" && exit 0 ;;
   22.80 -		3)
   22.81 -			continue ;;
   22.82 -		255)
   22.83 -			echo -e "ESC pressed.\n" && exit 0 ;;
   22.84 -	esac
   22.85 -}
   22.86 -
   22.87 -# Start install with basic information.
   22.88 -start_installer()
   22.89 -{
   22.90 -	$DIALOG --title " Install or Upgrade " \
   22.91 -		--backtitle "$BACKLIST" \
   22.92 -		--extra-button --extra-label "Upgrade" \
   22.93 -		--ok-label "Install" \
   22.94 -		--clear --colors --yesno "$START_INSTALL_MSG" 18 70
   22.95 -	retval=$?
   22.96 -		case $retval in
   22.97 -		0)
   22.98 -			ACTION=install ;;
   22.99 -		1)
  22.100 -			echo -e "\nVoluntary exit.\n" && exit 0 ;;
  22.101 -		3)
  22.102 -			ACTION=upgrade ;;
  22.103 -		255)
  22.104 -			echo -e "ESC pressed.\n" && exit 0 ;;
  22.105 -	esac
  22.106 -	echo "start_installer: `date`" > $LOG
  22.107 -}
  22.108 -
  22.109 -# Mount cdrom and verify if it's really SliTaz CD.
  22.110 -mount_cdrom()
  22.111 -{
  22.112 -	ERROR_MSG=""
  22.113 -	(
  22.114 -	echo "XXX" && echo 30
  22.115 -	echo -e "\nCreating mount point (/media/cdrom)..."
  22.116 -	echo "XXX"
  22.117 -	mkdir -p /media/cdrom
  22.118 -	sleep 1
  22.119 -	# First try to mount a cdrom
  22.120 -	if mount -t iso9660 $CDROM /media/cdrom 2>>$LOG; then
  22.121 -		echo "XXX" && echo 60
  22.122 -		echo -e "\nUsing file from cdrom ($CDROM)..."
  22.123 -		echo "XXX"
  22.124 -		sleep 2
  22.125 -	else
  22.126 -		# We may be in LiveUSB mode
  22.127 -		if [ -d /home/boot ]; then
  22.128 -			echo "XXX" && echo 60
  22.129 -			echo -e "\nUsing file from USB device..."
  22.130 -			echo "XXX"
  22.131 -			rm /media/cdrom/boot 2>/dev/null
  22.132 -			ln -s /home/boot /media/cdrom/boot
  22.133 -			sleep 2
  22.134 -		fi
  22.135 -	fi
  22.136 -
  22.137 -	echo "XXX" && echo 90
  22.138 -	echo -e "\nChecking installation media..."
  22.139 -	echo "XXX"
  22.140 -	sleep 2
  22.141 -	) |
  22.142 -	$DIALOG --title " Mounting cdrom " \
  22.143 -		--backtitle "$BACKLIST" \
  22.144 -		--gauge "Preparing the installation media..." 18 70 0
  22.145 -	# Exit with error msg if no rootfs.gz found.
  22.146 -	if [ ! -f /media/cdrom/boot/rootfs.gz ]; then
  22.147 -		ERROR_MSG="$MOUNT_CDROM_ERROR_MSG"
  22.148 -		error_message
  22.149 -		echo "missing: /media/cdrom/boot/rootfs.gz" >>$LOG
  22.150 -		exit 1
  22.151 -	fi
  22.152 -}
  22.153 -
  22.154 -# Display a list of available partitions.
  22.155 -fdisk_list()
  22.156 -{
  22.157 -	LIST_PARTITIONS=`fdisk -l | grep ^/dev | sed s/'e Win95'/'e'/g`
  22.158 -	$DIALOG --title " Partition tables " \
  22.159 -		--backtitle "$BACKLIST" \
  22.160 -		--clear --msgbox "\n
  22.161 -Available partitions :\n\n
  22.162 -$LIST_PARTITIONS" 18 70
  22.163 -}
  22.164 -
  22.165 -# We need a partition to install to (inputbox).
  22.166 -ask_for_target_dev()
  22.167 -{
  22.168 -	exec 3>&1
  22.169 -	TARGET_DEV=`$DIALOG --title " Root Partition " \
  22.170 -		--backtitle "$BACKLIST" --clear \
  22.171 -		--extra-label "List" --extra-button \
  22.172 -		--colors --inputbox "$ASK_FOR_TARGET_DEV_MSG" 18 70 2>&1 1>&3`
  22.173 -	retval=$?
  22.174 -	exec 3>&-
  22.175 -	check_retval
  22.176 -	# Display list and come back.
  22.177 -	if [ "$retval" = "3" ]; then
  22.178 -		fdisk_list
  22.179 -		ask_for_target_dev
  22.180 -	fi
  22.181 -	# Empty value.
  22.182 -	if [ -z $TARGET_DEV ]; then
  22.183 -		ask_for_target_dev
  22.184 -	fi
  22.185 -	set_messages
  22.186 -	# Check if specified device exists in /proc/partitions.
  22.187 -	DEV_NAME=${TARGET_DEV#/dev/}
  22.188 -	if cat /proc/partitions | grep -q $DEV_NAME; then
  22.189 -		if [ "$DEV_NAME" = "$TARGET_DEV" ]; then
  22.190 -			TARGET_DEV="/dev/$DEV_NAME"
  22.191 -		fi
  22.192 -		echo "ask_for_target_dev: $TARGET_DEV" >>$LOG
  22.193 -	else
  22.194 -		ERROR_MSG="Partition \Z2$TARGET_DEV\Zn doesn't exist."
  22.195 -		error_message
  22.196 -		ask_for_target_dev
  22.197 -	fi
  22.198 -}
  22.199 -
  22.200 -# Mkfs if needed/wanted on /.
  22.201 -ask_for_mkfs_target_dev()
  22.202 -{
  22.203 -	$DIALOG --title " Format " \
  22.204 -		--backtitle "$BACKLIST" \
  22.205 -		--clear --colors --yesno "$ASK_FOR_MKFS_TARGET_DEV_MSG" 18 70
  22.206 -	retval=$?
  22.207 -	case $retval in
  22.208 -		0)
  22.209 -			MKFS_TARGET_DEV="ext3"
  22.210 -			echo "mkfs_target_dev: ext3" >>$LOG ;;
  22.211 -		1)
  22.212 -			CLEAN="clean"
  22.213 -			echo "mkfs_target_dev: clean" >>$LOG ;;
  22.214 -		255)
  22.215 -			echo -e "ESC pressed.\n" && exit 0 ;;
  22.216 -	esac
  22.217 -
  22.218 -}
  22.219 -
  22.220 -# We can have a separate partition for /home.
  22.221 -ask_for_home()
  22.222 -{
  22.223 -	exec 3>&1
  22.224 -	HOME_DEV=`$DIALOG --title " Home Partition " \
  22.225 -		--backtitle "$BACKLIST" --clear \
  22.226 -		--extra-label "List" --extra-button \
  22.227 -		--colors --inputbox "
  22.228 -On most GNU/Linux systems users personal files are stored in the directory \
  22.229 -/home. Home can be on a separate partition or another hard disk.
  22.230 -
  22.231 -\Z2Home partition to use (Optional):\Zn" 18 70 2>&1 1>&3`
  22.232 -	retval=$?
  22.233 -	exec 3>&-
  22.234 -	check_retval
  22.235 -	# Display list and come back.
  22.236 -	if [ "$retval" = "3" ]; then
  22.237 -		fdisk_list
  22.238 -		ask_for_home
  22.239 -	fi
  22.240 -	if [ -n "$HOME_DEV" ]; then
  22.241 -		# Check if specified device exists in /proc/partitions.
  22.242 -		DEV_NAME=${HOME_DEV#/dev/}
  22.243 -		if cat /proc/partitions | grep -q $DEV_NAME; then
  22.244 -			if [ "$DEV_NAME" = "$HOME_DEV" ]; then
  22.245 -				HOME_DEV="/dev/$DEV_NAME"
  22.246 -			fi
  22.247 -			echo "ask_for_home: $HOME_DEV" >>$LOG
  22.248 -		else
  22.249 -			ERROR_MSG="Partition \Z2$HOME_DEV\Zn doesn't exist."
  22.250 -			error_message
  22.251 -			ask_for_home
  22.252 -		fi
  22.253 -	fi
  22.254 -}
  22.255 -
  22.256 -# Mkfs if needed/wanted on /.
  22.257 -ask_for_mkfs_home()
  22.258 -{
  22.259 -	$DIALOG --title " Format " \
  22.260 -		--backtitle "$BACKLIST" \
  22.261 -		--clear --colors --yesno "
  22.262 -Here you can format the /home partition: $HOME_DEV
  22.263 -
  22.264 -SliTaz uses ext3 by default but another filesystem can be used if wanted, \
  22.265 -for this please adjust /etc/fstab after installation.
  22.266 -
  22.267 -\Z2Do you want to format (Option): $HOME_DEV\Zn" 18 70
  22.268 -	retval=$?
  22.269 -	case $retval in
  22.270 -		0)
  22.271 -			MKFS_HOME="ext3"
  22.272 -			echo "mkfs_home: ext3" >>$LOG ;;
  22.273 -		1)
  22.274 -			MKFS_HOME=""
  22.275 -			echo "mkfs_home: no" >>$LOG ;;
  22.276 -		255)
  22.277 -			echo -e "ESC pressed.\n" && exit 0 ;;
  22.278 -	esac
  22.279 -
  22.280 -}
  22.281 -
  22.282 -# Ask for hostname before installing files.
  22.283 -ask_for_hostname()
  22.284 -{
  22.285 -	exec 3>&1
  22.286 -	HOSTNAME=`$DIALOG --title " Hostname " \
  22.287 -		--backtitle "$BACKLIST" --clear \
  22.288 -		--colors --inputbox "$ASK_FOR_HOSTNAME_MSG" 18 70 "slitaz" 2>&1 1>&3`
  22.289 -	retval=$?
  22.290 -	exec 3>&-
  22.291 -	check_retval
  22.292 -	# Empty value.
  22.293 -	if [ -z $HOSTNAME ]; then
  22.294 -		HOSTNAME="slitaz"
  22.295 -	fi
  22.296 -}
  22.297 -
  22.298 -# Ask for root password and default user settings.
  22.299 -ask_for_users_settings()
  22.300 -{
  22.301 -	# Root passwd
  22.302 -	exec 3>&1
  22.303 -	ROOT_PASSWD=`$DIALOG --title " Root password " \
  22.304 -		--backtitle "$BACKLIST" --clear \
  22.305 -		--colors --nocancel --inputbox "
  22.306 -The root administrator privilege lets you manage and configure the full \
  22.307 -system. A root user can damage your system so you should always setup a \
  22.308 -strong password with special characters and/or numbers.
  22.309 -
  22.310 -\Z2Please specify the Root password for your new system:\Zn" 18 70 "root" 2>&1 1>&3`
  22.311 -	retval=$?
  22.312 -	exec 3>&-
  22.313 -	check_retval
  22.314 -	# Prevent empty value.
  22.315 -	if [ -z $ROOT_PASSWD ]; then
  22.316 -		ROOT_PASSWD="root"
  22.317 -	fi
  22.318 -	# Default user
  22.319 -	exec 3>&1
  22.320 -	USER=`$DIALOG --title " User name " \
  22.321 -		--backtitle "$BACKLIST" --clear \
  22.322 -		--colors --nocancel --inputbox "
  22.323 -The default user for the system will have their personal files stored \
  22.324 -in /home/*user* (and will be automatically added to the audio group).
  22.325 -
  22.326 -\Z2Default user name login:\Zn" 18 70 "tux" 2>&1 1>&3`
  22.327 -	retval=$?
  22.328 -	exec 3>&-
  22.329 -	check_retval
  22.330 -	# Prevent empty value.
  22.331 -	if [ -z $USER ]; then
  22.332 -		USER="tux"
  22.333 -	fi
  22.334 -	# User passwd
  22.335 -	exec 3>&1
  22.336 -	USER_PASSWD=`$DIALOG --title " User password " \
  22.337 -		--backtitle "$BACKLIST" --clear \
  22.338 -		--colors --nocancel --inputbox "
  22.339 -The password for default user $USER. It may be a security risk if too \
  22.340 -weak and should always be strong if you use a SSH connection through the web.
  22.341 -
  22.342 -\Z2Please specify $USER password:\Zn" 18 70 "tux" 2>&1 1>&3`
  22.343 -	retval=$?
  22.344 -	exec 3>&-
  22.345 -	check_retval
  22.346 -	# Prevent empty value.
  22.347 -	if [ -z $USER_PASSWD ]; then
  22.348 -		USER_PASSWD="tux"
  22.349 -	fi
  22.350 -}
  22.351 -
  22.352 -# Tiny summary and last chance to cancel or restart for user.
  22.353 -summary()
  22.354 -{
  22.355 -	$DIALOG --title " Summary " \
  22.356 -		--backtitle "$BACKLIST" \
  22.357 -		--clear --colors --yesno "
  22.358 -Installation settings summary and last chance to cancel or restart all \
  22.359 -installation steps.
  22.360 -
  22.361 -Root partition: $TARGET_DEV
  22.362 -Home partition: $HOME_DEV
  22.363 -Hostname: $HOSTNAME
  22.364 -Default user: $USER
  22.365 -
  22.366 -\Z2Go and install SliTaz or cancel?\Zn" 18 70
  22.367 -	retval=$?
  22.368 -	check_retval
  22.369 -}
  22.370 -
  22.371 -# Mount and mkfs with progress.
  22.372 -prepare_partitions()
  22.373 -{
  22.374 -	(
  22.375 -	echo "XXX" && echo 30
  22.376 -	echo -e "\nPreparing target partition..."
  22.377 -	echo "XXX"
  22.378 -	# Mount point can be already used.
  22.379 -	if mount | grep -q $TARGET_ROOT; then
  22.380 -		umount $TARGET_ROOT 2>$LOG
  22.381 -	fi
  22.382 -	sleep 2
  22.383 -
  22.384 -	if [ "$MKFS_TARGET_DEV" == "ext3" ]; then
  22.385 -		echo "XXX" && echo 50
  22.386 -		echo -e "\nExecuting mkfs.ext3 on $TARGET_DEV"
  22.387 -		echo "XXX"
  22.388 -		mkfs.ext3 $TARGET_DEV >>$LOG 2>>$LOG
  22.389 -	else
  22.390 -		echo "XXX" && echo 50
  22.391 -		echo -e "\nThe partition ($TARGET_DEV) will be cleaned..."
  22.392 -		echo "XXX"
  22.393 -		sleep 2
  22.394 -	fi
  22.395 -
  22.396 -	if [ "$MKFS_HOME" == "ext3" ]; then
  22.397 -		echo "XXX" && echo 70
  22.398 -		echo -e "\nExecuting mkfs.ext3 on $HOME_DEV"
  22.399 -		echo "XXX"
  22.400 -		mkfs.ext3 -L "Home" $HOME_DEV >>$LOG 2>>$LOG
  22.401 -	else
  22.402 -		echo "XXX" && echo 70
  22.403 -		echo -e "\nThe partition ($HOME_DEV) will be kept..."
  22.404 -		echo "XXX"
  22.405 -		sleep 2
  22.406 -	fi
  22.407 -
  22.408 -	echo "XXX" && echo 90
  22.409 -	echo -e "\nCreating mount point: $TARGET_ROOT"
  22.410 -	echo "XXX"
  22.411 -	mkdir -p $TARGET_ROOT
  22.412 -	sleep 2
  22.413 -
  22.414 -	) |
  22.415 -	$DIALOG --title " Prepare the target " \
  22.416 -		--backtitle "$BACKLIST" \
  22.417 -		--gauge "Target in preparation..." 18 70 0
  22.418 -	# Mount target.
  22.419 -	mount $TARGET_DEV $TARGET_ROOT >>$LOG 2>>$LOG
  22.420 -}
  22.421 -
  22.422 -# Get a clean target device (15%).
  22.423 -clean_target()
  22.424 -{
  22.425 -	if [ "$CLEAN" == "clean" ]; then
  22.426 -		echo "XXX" && echo 15
  22.427 -		echo -e "\nCleaning the root partition ($TARGET_DEV)"
  22.428 -		echo "XXX"
  22.429 -		# Keep /home in case of reinstall.
  22.430 -		cd $TARGET_ROOT
  22.431 -		for dir in *
  22.432 -		do
  22.433 -			case "$dir" in
  22.434 -				home)
  22.435 -					mv $TARGET_ROOT/home $TARGET_ROOT/home.bak
  22.436 -					echo "keeping /home found on: $TARGET_DEV" >>$LOG ;;
  22.437 -				lost+found)
  22.438 -					continue ;;
  22.439 -				*)
  22.440 -					echo "removing target: $dir" >>$LOG
  22.441 -					rm -rf $dir 2>>$LOG ;;
  22.442 -			esac
  22.443 -		done
  22.444 -		if [ -d $TARGET_ROOT/mklost+found ]; then
  22.445 -			mklost+found 2>>$LOG
  22.446 -		fi
  22.447 -	fi
  22.448 -	sleep 2
  22.449 -}
  22.450 -
  22.451 -# Kernel is renamed to standard vmlinuz-$VERSION.
  22.452 -install_kernel()
  22.453 -{
  22.454 -	mkdir -p $TARGET_ROOT/boot
  22.455 -	cp /media/cdrom/boot/bzImage $TARGET_ROOT/boot/$KERNEL
  22.456 -	echo "install_kernel: $KERNEL" >> $LOG
  22.457 -	sleep 2
  22.458 -}
  22.459 -
  22.460 -# Copy isolinux r/w files (not syslinux, some files are read only).
  22.461 -copy_bootloaders()
  22.462 -{
  22.463 -	if [ -d "/media/cdrom/boot/isolinux" ]; then
  22.464 -		mkdir -p $TARGET_ROOT/boot/isolinux
  22.465 -		cp -a /media/cdrom/boot/isolinux/*.cfg $TARGET_ROOT/boot/isolinux
  22.466 -		cp -a /media/cdrom/boot/isolinux/*.kbd $TARGET_ROOT/boot/isolinux
  22.467 -		cp -a /media/cdrom/boot/isolinux/*.txt $TARGET_ROOT/boot/isolinux
  22.468 -		cp -a /media/cdrom/boot/isolinux/*.bin $TARGET_ROOT/boot/isolinux
  22.469 -		cp -a /media/cdrom/boot/isolinux/*.msg $TARGET_ROOT/boot/isolinux
  22.470 -		cp -a /media/cdrom/boot/isolinux/*.lss $TARGET_ROOT/boot/isolinux
  22.471 -		cp -a /media/cdrom/boot/isolinux/*.c32 $TARGET_ROOT/boot/isolinux
  22.472 -	fi
  22.473 -}
  22.474 -
  22.475 -# Extract lzma'ed or gziped rootfs.
  22.476 -extract_rootfs()
  22.477 -{
  22.478 -	cd $TARGET_ROOT
  22.479 -	(zcat rootfs.gz 2>/dev/null || lzma d rootfs.gz -so || \
  22.480 -	 cat rootfs.gz) 2>>$LOG | cpio -id 2>>$LOG > /dev/null
  22.481 -	rm -f rootfs.gz
  22.482 -	# unpack /usr (double check...)
  22.483 -	if ls etc/tazlito | grep -q ".extract"; then
  22.484 -		for i in etc/tazlito/*.extract; do
  22.485 -			[ -f "$i" ] && . $i /media/cdrom
  22.486 -		done
  22.487 -	fi
  22.488 -}
  22.489 -
  22.490 -# Pre configure freshly installed system (60 - 80%).
  22.491 -pre_config_system()
  22.492 -{
  22.493 -	cd $TARGET_ROOT
  22.494 -	# Restore backup of existing /home if exists.
  22.495 -	# (created by prepare_target_dev)
  22.496 -	if [ -d home.bak ]; then
  22.497 -		echo "XXX" && echo 65
  22.498 -		echo -e "\nRestoring directory: /home..."
  22.499 -		echo "XXX"
  22.500 -		rm -rf home
  22.501 -		mv home.bak home
  22.502 -		sleep 1
  22.503 -	fi
  22.504 -	# Add root device to CHECK_FS in rcS.conf to check filesystem
  22.505 -	# on each boot.
  22.506 -	echo "XXX" && echo 70
  22.507 -	echo -e "\nAdding $TARGET_DEV and CHECK_FS to file /etc/rcS.conf..."
  22.508 -	echo "XXX"
  22.509 -	sed -i s#'CHECK_FS=\"\"'#"CHECK_FS=\"$TARGET_DEV\""# etc/rcS.conf
  22.510 -	sleep 2
  22.511 -	# Set hostname.
  22.512 -	echo "XXX" && echo 80
  22.513 -	echo -e "\nConfiguring host name: $HOSTNAME"
  22.514 -	echo "XXX"
  22.515 -	echo $HOSTNAME > etc/hostname
  22.516 -}
  22.517 -
  22.518 -# Set root passwd and create user after rootfs extraction.
  22.519 -users_settings()
  22.520 -{
  22.521 -	cat > $TARGET_ROOT/users.sh << _EOF_
  22.522 -#!/bin/sh
  22.523 -echo "root:$ROOT_PASSWD" | chpasswd -m
  22.524 -adduser -D -H $USER
  22.525 -addgroup $USER audio
  22.526 -echo "$USER:$USER_PASSWD" | chpasswd -m
  22.527 -if [ ! -d /home/$USER ]; then
  22.528 -	cp -a /etc/skel /home/$USER
  22.529 -	chown -R $USER.$USER /home/$USER
  22.530 -	# Path for user desktop files.
  22.531 -	for i in /home/$USER/.local/share/applications/*.desktop
  22.532 -	do
  22.533 -		sed -i s/"user_name"/"$USER"/g \$i
  22.534 -	done
  22.535 -fi
  22.536 -# Slim default user.
  22.537 -if [ -f /etc/slim.conf ]; then
  22.538 -	sed -i s/"default_user .*"/"default_user        $USER"/ \
  22.539 -		/etc/slim.conf
  22.540 -fi
  22.541 -_EOF_
  22.542 -	chmod +x $TARGET_ROOT/users.sh
  22.543 -	chroot $TARGET_ROOT ./users.sh
  22.544 -	rm $TARGET_ROOT/users.sh
  22.545 -}
  22.546 -
  22.547 -# /home can be on a separate partition. If default user exist in /home
  22.548 -# we remove default file crated by users_settings().
  22.549 -home_config()
  22.550 -{
  22.551 -	echo "home_config: $HOME_DEV" >> $LOG
  22.552 -	cd $TARGET_ROOT
  22.553 -	mv home/$USER tmp
  22.554 -	mount $HOME_DEV home
  22.555 -	if [ -d $TARGET_ROOT/home/$USER ]; then
  22.556 -		rm -rf tmp/$USER
  22.557 -	else
  22.558 -		mv tmp/$USER home
  22.559 -	fi
  22.560 -	echo "$HOME_DEV       /home        ext3    defaults          0       2" \
  22.561 -		>> etc/fstab
  22.562 -	umount home
  22.563 -}
  22.564 -
  22.565 -# Determine GRUB partition number and GRUB disk number.
  22.566 -grub_config()
  22.567 -{
  22.568 -	DISK_LETTER=${TARGET_DEV#/dev/[h-s]d}
  22.569 -	DISK_LETTER=${DISK_LETTER%[0-9]}
  22.570 -	GRUB_PARTITION=$((${TARGET_DEV#/dev/[h-s]d[a-z]}-1))
  22.571 -	for disk in a b c d e f g h
  22.572 -	do
  22.573 -		nb=$(($nb+1))
  22.574 -		if [ "$disk" = "$DISK_LETTER" ]; then
  22.575 -			GRUB_DISK=$(($nb-1))
  22.576 -			break
  22.577 -		fi
  22.578 -	done
  22.579 -	GRUB_ROOT="(hd${GRUB_DISK},${GRUB_PARTITION})"
  22.580 -	# Create the target GRUB configuration.
  22.581 -	mkdir -p $TARGET_ROOT/boot/grub
  22.582 -	cat > $TARGET_ROOT/boot/grub/menu.lst << _EOF_
  22.583 -# /boot/grub/menu.lst: GRUB boot loader configuration.
  22.584 -#
  22.585 -
  22.586 -# By default, boot the first entry.
  22.587 -default 0
  22.588 -
  22.589 -# Boot automatically after 8 secs.
  22.590 -timeout 8
  22.591 -
  22.592 -# Change the colors.
  22.593 -color yellow/brown light-green/black
  22.594 -
  22.595 -# For booting SliTaz from : $TARGET_DEV
  22.596 -#
  22.597 -title SliTaz GNU/Linux (cooking) (Kernel $KERNEL)
  22.598 -root $GRUB_ROOT
  22.599 -kernel /boot/$KERNEL root=$TARGET_DEV
  22.600 -
  22.601 -_EOF_
  22.602 -	# log
  22.603 -	echo "grub_config: $TARGET_ROOT/boot/grub/menu.lst" >>$LOG
  22.604 -	sleep 2
  22.605 -}
  22.606 -
  22.607 -# Files install with gauge, calling for functions or with cmds.
  22.608 -install_files()
  22.609 -{
  22.610 -	(
  22.611 -
  22.612 -	echo "XXX" && echo 10
  22.613 -	echo -e "\nCleaning the root partition if necessary..."
  22.614 -	echo "XXX"
  22.615 -	clean_target
  22.616 -
  22.617 -	echo "XXX" && echo 20
  22.618 -	echo -e "\nInstalling the kernel ($KERNEL)"
  22.619 -	echo "XXX"
  22.620 -	install_kernel
  22.621 -
  22.622 -	echo "XXX" && echo 30
  22.623 -	echo -e "\nCopying the bootloader syslinux/isolinux..."
  22.624 -	echo "XXX"
  22.625 -	copy_bootloaders
  22.626 -
  22.627 -	echo "XXX" && echo 40
  22.628 -	echo -e "\nCopying the compressed system (rootfs.gz)..."
  22.629 -	echo "XXX"
  22.630 -	cp /media/cdrom/boot/rootfs.gz $TARGET_ROOT
  22.631 -	sleep 2
  22.632 -
  22.633 -	echo "XXX" && echo 50
  22.634 -	echo -e "\nExtracting the root system..."
  22.635 -	echo "XXX"
  22.636 -	extract_rootfs
  22.637 -
  22.638 -	echo "XXX" && echo 60
  22.639 -	echo -e "\nPreconfiguring the system..."
  22.640 -	echo "XXX"
  22.641 -	pre_config_system
  22.642 -
  22.643 -	echo "XXX" && echo 70
  22.644 -	echo -e "\nConfiguring root and default $USER account..."
  22.645 -	echo "XXX"
  22.646 -	users_settings
  22.647 -	sleep 2
  22.648 -
  22.649 -	if [ "$HOME_DEV" != "" ]; then
  22.650 -		echo "XXX" && echo 80
  22.651 -		echo -e "\nConfiguring $HOME_DEV to be used as /home..."
  22.652 -		echo "XXX"
  22.653 -		home_config
  22.654 -		sleep 2
  22.655 -	fi
  22.656 -
  22.657 -	echo "XXX" && echo 90
  22.658 -	echo -e "\nCreating the configuration file for GRUB (menu.lst)..."
  22.659 -	echo "XXX"
  22.660 -	grub_config
  22.661 -
  22.662 -	echo "XXX" && echo 100
  22.663 -	echo -e "\nFinishing the files installation..."
  22.664 -	echo "XXX"
  22.665 -	echo "install_files: OK" >>$LOG
  22.666 -	sleep 2
  22.667 -
  22.668 -	) |
  22.669 -	$DIALOG --title " Install files " \
  22.670 -		--backtitle "$BACKLIST" \
  22.671 -		--gauge "Starting to install files..." 18 70 0
  22.672 -}
  22.673 -
  22.674 -# GRUB info with disk name used for grub-install.
  22.675 -grub_install()
  22.676 -{
  22.677 -	TARGET_DISK=`echo $TARGET_DEV | sed s/"[0-9]"/''/`
  22.678 -	set_messages
  22.679 -	$DIALOG --title " GRUB install " \
  22.680 -		--backtitle "$BACKLIST" \
  22.681 -		--clear --colors --yesno "$GRUB_INSTALL_MSG" 18 70
  22.682 -	retval=$?
  22.683 -	case $retval in
  22.684 -		0)
  22.685 -			(
  22.686 -			echo "XXX" && echo 50
  22.687 -			echo -e "\nRunning grub-install on : $TARGET_DISK"
  22.688 -			echo "XXX"
  22.689 -			grub-install --no-floppy \
  22.690 -				--root-directory=$TARGET_ROOT $TARGET_DISK 2>>$LOG
  22.691 -			echo "XXX" && echo 100
  22.692 -			echo -e "\nFinished installation..."
  22.693 -			echo "XXX"
  22.694 -			sleep 2
  22.695 -			) |
  22.696 -			$DIALOG --title " GRUB install " \
  22.697 -				--backtitle "$BACKLIST" \
  22.698 -				--gauge "Installing GRUB..." 18 70 0 ;;
  22.699 -		1)
  22.700 -			echo "grub_install: NO" >>$LOG ;;
  22.701 -		255)
  22.702 -			echo -e "ESC pressed.\n" && exit 0 ;;
  22.703 -	esac
  22.704 -}
  22.705 -
  22.706 -# Copy log file, umount target and eject cdrom.
  22.707 -umount_devices()
  22.708 -{
  22.709 -	(
  22.710 -	echo "XXX" && echo 25
  22.711 -	echo -e "\nCopying the log files ($LOG)"
  22.712 -	echo "XXX"
  22.713 -	cp -a $LOG $TARGET_ROOT/var/log
  22.714 -	sleep 2
  22.715 -	echo "XXX" && echo 50
  22.716 -	echo -e "\nUnmounting the target ($TARGET_DEV)"
  22.717 -	echo "XXX"
  22.718 -	if mount | grep -q $TARGET_ROOT; then
  22.719 -		umount $TARGET_ROOT 2>/dev/null
  22.720 -	fi
  22.721 -	echo "XXX" && echo 75
  22.722 -	echo -e "\nUnmounting and ejecting the cdrom..."
  22.723 -	echo "XXX"
  22.724 -	if mount | grep -q /media/cdrom; then
  22.725 -		umount /media/cdrom
  22.726 -		grep -q slitaz-loram-cdrom /etc/init.d/rcS || eject
  22.727 -	fi
  22.728 -	sleep 2
  22.729 -	echo "XXX" && echo 100
  22.730 -	echo -e "\n$TITLE..."
  22.731 -	echo "XXX"
  22.732 -	sleep 2
  22.733 -	) |
  22.734 -	$DIALOG --title " $TITLE " \
  22.735 -		--backtitle "$BACKLIST" \
  22.736 -		--gauge "$TITLE starting..." 18 70 0
  22.737 -}
  22.738 -
  22.739 -# End of installation.
  22.740 -end_of_install()
  22.741 -{
  22.742 -	echo "end_of_install: `date`" >>$LOG
  22.743 -	$DIALOG --title " Installation complete " \
  22.744 -		--backtitle "$BACKLIST" \
  22.745 -		--yes-label "Exit" \
  22.746 -		--no-label "Reboot" \
  22.747 -		--clear --colors --yesno "$END_OF_INSTALL_MSG" 18 70
  22.748 -	retval=$?
  22.749 -	case $retval in
  22.750 -	0)
  22.751 -		TITLE="Exiting"
  22.752 -		umount_devices ;;
  22.753 -	1)
  22.754 -		TITLE="Rebooting"
  22.755 -		umount_devices
  22.756 -		reboot || reboot -f ;;
  22.757 -	255)
  22.758 -		echo -e "ESC pressed.\n" && exit 0 ;;
  22.759 -esac
  22.760 -}
  22.761 -
  22.762 -#####################
  22.763 -# Upgrade functions #
  22.764 -#####################
  22.765 -
  22.766 -# We need a partition to upgrade SliTaz.
  22.767 -ask_for_upgrade_dev()
  22.768 -{
  22.769 -	exec 3>&1
  22.770 -	UPGRADE_DEV=`$DIALOG --title " Target to upgrade " \
  22.771 -		--backtitle "$BACKLIST" --clear \
  22.772 -		--extra-label "List" --extra-button \
  22.773 -		--colors --inputbox "\n
  22.774 -The installer will upgrade the target by saving all configuration files and \
  22.775 -the list of installed packages. Then, it will clean the partition and install the \
  22.776 -version of SliTaz contained on the cdrom, restore the configuration files and \
  22.777 -reinstall any packages which are not present on the cdrom. You will need an active \
  22.778 -internet connection before upgrading.\n\n
  22.779 -\Z2Partition containing the system upgrade:\Zn" 18 70 2>&1 1>&3`
  22.780 -	retval=$?
  22.781 -	exec 3>&-
  22.782 -	check_retval
  22.783 -	# Display list and come back.
  22.784 -	if [ "$retval" = "3" ]; then
  22.785 -		fdisk_list
  22.786 -		ask_for_upgrade_dev
  22.787 -	fi
  22.788 -	# Empty value.
  22.789 -	if [ -z $UPGRADE_DEV ]; then
  22.790 -		ask_for_upgrade_dev
  22.791 -	fi
  22.792 -	# Check if specified device exists in /proc/partitions.
  22.793 -	DEV_NAME=${UPGRADE_DEV#/dev/}
  22.794 -	if cat /proc/partitions | grep -q $DEV_NAME; then
  22.795 -		echo "ask_for_target_dev: $TARGET_DEV" >>$LOG
  22.796 -	else
  22.797 -		ERROR_MSG="The partition \Z2$UPGRADE_DEV\Zn doesn't seem to exist."
  22.798 -		error_message
  22.799 -		ask_for_upgrade_dev
  22.800 -	fi
  22.801 -	echo "partition to upgrade: $UPGRADE_DEV" >>$LOG
  22.802 -}
  22.803 -
  22.804 -# Prepare the partition to upgrade, backup, install, restore configs
  22.805 -# and reinstall pkgs.
  22.806 -upgrade_process()
  22.807 -{
  22.808 -	(
  22.809 -	echo "XXX" && echo 5
  22.810 -	echo -e "\nPreparing the target partition..."
  22.811 -	echo "XXX"
  22.812 -	# Mount point can be already used.
  22.813 -	if mount | grep -q $TARGET_ROOT; then
  22.814 -		umount $TARGET_ROOT 2>$LOG
  22.815 -	fi
  22.816 -	mkdir -p $TARGET_ROOT && sleep 2
  22.817 -	# Mount target.
  22.818 -	mount $UPGRADE_DEV $TARGET_ROOT >>$LOG 2>>$LOG
  22.819 -	cd $TARGET_ROOT
  22.820 -	TARGET_DEV=$UPGRADE_DEV
  22.821 -	set_messages
  22.822 -
  22.823 -	echo "XXX" && echo 10
  22.824 -	echo -e "\nSearch for /etc/slitaz-release"
  22.825 -	echo "XXX"
  22.826 -	if [ -f etc/slitaz-release ]; then
  22.827 -		release=`cat etc/slitaz-release`
  22.828 -		echo "XXX" && echo 15
  22.829 -		echo -e "\nSliTaz release: $release"
  22.830 -		echo "XXX"
  22.831 -	else
  22.832 -		ERROR_MSG="The partition \Z2$UPGRADE_DEV\Zn doesn't appear to contain \
  22.833 -a SliTaz system, the file: /etc/slitaz-release doesn't exist."
  22.834 -		error_message
  22.835 -		exit 0
  22.836 -	fi && sleep 2
  22.837 -
  22.838 -	echo "XXX" && echo 20
  22.839 -	echo -e "\nBackup /etc, /home and the packages list..."
  22.840 -	echo "XXX"
  22.841 -	# Backup target packages list.
  22.842 -	ls -1 var/lib/tazpkg/installed > home/packages-selection.list
  22.843 -	for dir in *
  22.844 -	do
  22.845 -		case "$dir" in
  22.846 -			boot)
  22.847 -				# Upgrade doesn't prompt for grub install, so backup and
  22.848 -				# create a new grub menu.lst.
  22.849 -				rm -rf $TARGET_ROOT/boot/vmlinuz-*
  22.850 -				mv $TARGET_ROOT/boot/grub/menu.lst \
  22.851 -					$TARGET_ROOT/boot/grub/menu.lst.bak 2>/dev/null
  22.852 -				grub_config ;;
  22.853 -			home)
  22.854 -				mv $TARGET_ROOT/home $TARGET_ROOT/home.bak
  22.855 -				echo "keeping /home found on: $UPGRADE_DEV" >>$LOG ;;
  22.856 -			etc)
  22.857 -				tar czf $TARGET_ROOT/etc.tar.gz etc
  22.858 -				mv $TARGET_ROOT/etc $TARGET_ROOT/etc.bak
  22.859 -				echo "keeping /etc found on: $UPGRADE_DEV" >>$LOG ;;
  22.860 -			var)
  22.861 -				if [ -d $TARGET_ROOT/var/www ]; then
  22.862 -					mv $TARGET_ROOT/var/www $TARGET_ROOT/www.bak
  22.863 -				fi
  22.864 -				rm -rf $TARGET_ROOT/var ;;
  22.865 -			lost+found)
  22.866 -				continue ;;
  22.867 -			*)
  22.868 -				echo "removing target: $dir" >>$LOG
  22.869 -				rm -rf $TARGET_ROOT/$dir 2>>$LOG ;;
  22.870 -		esac
  22.871 -	done
  22.872 -	if [ -d $TARGET_ROOT/mklost+found ]; then
  22.873 -		mklost+found 2>>$LOG
  22.874 -	fi
  22.875 -	sleep 2
  22.876 -
  22.877 -	echo "XXX" && echo 25
  22.878 -	echo -e "\nInstalling the kernel ($KERNEL)"
  22.879 -	echo "XXX"
  22.880 -	install_kernel
  22.881 -
  22.882 -	echo "XXX" && echo 30
  22.883 -	echo -e "\nCopying the bootloader syslinux/isolinux..."
  22.884 -	echo "XXX"
  22.885 -	copy_bootloaders
  22.886 -
  22.887 -	echo "XXX" && echo 35
  22.888 -	echo -e "\nCopying the compressed system (rootfs.gz)..."
  22.889 -	echo "XXX"
  22.890 -	cp /media/cdrom/boot/rootfs.gz $TARGET_ROOT
  22.891 -	sleep 2
  22.892 -
  22.893 -	echo "XXX" && echo 40
  22.894 -	echo -e "\nExtracting the root system..."
  22.895 -	echo "XXX"
  22.896 -	extract_rootfs
  22.897 -
  22.898 -	# Restore backups.
  22.899 -	echo "XXX" && echo 42
  22.900 -	echo -e "\nRestoring configuration files..."
  22.901 -	echo "XXX"
  22.902 -	rm -rf $TARGET_ROOT/home
  22.903 -	mv $TARGET_ROOT/home.bak $TARGET_ROOT/home
  22.904 -	rm -rf $TARGET_ROOT/etc
  22.905 -	mv $TARGET_ROOT/etc.bak $TARGET_ROOT/etc
  22.906 -	if [ -d $TARGET_ROOT/www.bak ]; then
  22.907 -		rm -rf $TARGET_ROOT/var/www
  22.908 -		mv $TARGET_ROOT/www.bak $TARGET_ROOT/var/www
  22.909 -	fi
  22.910 -	echo "backups restored: `date`" >> $LOG
  22.911 -
  22.912 -	# /var/lib/slitaz-installer
  22.913 -	mkdir $TARGET_ROOT/var/lib/slitaz-installer
  22.914 -	mv $TARGET_ROOT/etc.tar.gz $TARGET_ROOT/var/lib/slitaz-installer
  22.915 -	mv $TARGET_ROOT/home/packages-selection.list $TARGET_ROOT/var/lib/slitaz-installer
  22.916 -	cd $TARGET_ROOT/var/lib/slitaz-installer
  22.917 -
  22.918 -	# LiveCD packages list.
  22.919 -	echo "XXX" && echo 46
  22.920 -	echo -e "\nCreating package lists..."
  22.921 -	echo "XXX"
  22.922 -	ls -1 $TARGET_ROOT/var/lib/tazpkg/installed > packages-cdrom.list || exit 1
  22.923 -	echo "packages-cdrom.list: done" >> $LOG
  22.924 -	# Diff
  22.925 -	diff packages-cdrom.list packages-selection.list | \
  22.926 -		grep ^+[a-z] | sed s/^+// > packages-selection.diff
  22.927 -	echo "packages-selection.diff: done" >> $LOG
  22.928 -	# Get mirror list.
  22.929 -	tazpkg recharge >>$LOG 2>>$LOG
  22.930 -	if [ ! -f /var/lib/tazpkg/packages.list ]; then
  22.931 -		ERROR_MSG="The list of available packages on the mirror could not be \
  22.932 -downloaded. No missing packages will be reinstalled now, but \
  22.933 -you can do so later by looking at the following list: \n\n
  22.934 -
  22.935 -/var/lib/slitaz-installer/packages-selection.diff"
  22.936 -		error_message
  22.937 -	fi
  22.938 -	sleep 2
  22.939 -
  22.940 -	# Check if the pkg is on the mirror.
  22.941 -	echo "XXX" && echo 48
  22.942 -	echo -e "\nChecking the availability of packages..."
  22.943 -	echo "XXX"
  22.944 -	touch packages-to-install.list
  22.945 -	packages=0
  22.946 -	diff=`cat packages-selection.diff | sort`
  22.947 -	for pkg in $diff
  22.948 -	do
  22.949 -		if grep -q ^$pkg-[0-9] /var/lib/tazpkg/packages.list; then
  22.950 -			packages=$(($packages+1))
  22.951 -			echo "$pkg" >> packages-to-install.list
  22.952 -		fi
  22.953 -	done
  22.954 -
  22.955 -	# Calculate the percent for one package and install.
  22.956 -	echo "XXX" && echo 50
  22.957 -	echo -e "\nInstalling any packages..."
  22.958 -	echo "XXX"
  22.959 -	sleep 2
  22.960 -	if [ "$packages" == "0" ]; then
  22.961 -		echo "packages to install: 0" >> $LOG
  22.962 -	else
  22.963 -		onepkg=$((48/$packages))
  22.964 -		pct=50
  22.965 -		# Get-install all missing pkgs.
  22.966 -		for pkg in `cat packages-to-install.list`
  22.967 -		do
  22.968 -			pct=$(($pct+$onepkg))
  22.969 -			echo "XXX" && echo $pct
  22.970 -			echo -e "\nInstallation of: $pkg..."
  22.971 -			echo "XXX"
  22.972 -			# Log please.
  22.973 -			echo "get-install: $pkg" >>$LOG
  22.974 -			# Get install package and answer yes in case of dependencies.
  22.975 -			pkgname=`grep ^$pkg /var/lib/tazpkg/packages.list`
  22.976 -			tazpkg get $pkg >/dev/null 2>/dev/null
  22.977 -			yes "" | tazpkg install $pkgname.tazpkg --root=$TARGET_ROOT >/dev/null 2>/dev/null
  22.978 -			rm -f $pkgname.tazpkg
  22.979 -		done
  22.980 -	fi
  22.981 -	echo "XXX" && echo 100
  22.982 -	echo -e "\nInstallation of packages complete..."
  22.983 -	echo "XXX"
  22.984 -	sleep 2
  22.985 -	) |
  22.986 -	$DIALOG --title " Processing system upgrade " \
  22.987 -		--backtitle "$BACKLIST" \
  22.988 -		--gauge "Target in preparation..." 18 70 0
  22.989 -}
  22.990 -
  22.991 -# End of system upgrade.
  22.992 -end_of_upgrade()
  22.993 -{
  22.994 -	TARGET_DEV=$UPGRADE_DEV
  22.995 -	set_messages
  22.996 -	pkgscd=`cat $TARGET_ROOT/var/lib/slitaz-installer/packages-cdrom.list | wc -l`
  22.997 -	pkginst=`cat $TARGET_ROOT/var/lib/slitaz-installer/packages-to-install.list | wc -l`
  22.998 -	echo "end_of_upgrade: `date`" >>$LOG
  22.999 -	$DIALOG --title " Upgrade completed " \
 22.1000 -		--backtitle "$BACKLIST" \
 22.1001 -		--yes-label "Exit" \
 22.1002 -		--no-label "Reboot" \
 22.1003 -		--clear --colors --yesno "\n
 22.1004 -Upgrade finished. You can now restart (reboot) \
 22.1005 -from your SliTaz GNU/Linux system.\n\n
 22.1006 -Packages on the cdrom      : $pkgscd\n
 22.1007 -Packages installed from the mirror : $pkginst\n" 18 70
 22.1008 -	retval=$?
 22.1009 -	case $retval in
 22.1010 -	0)
 22.1011 -		TITLE="Exiting"
 22.1012 -		umount_devices ;;
 22.1013 -	1)
 22.1014 -		TITLE="Rebooting"
 22.1015 -		umount_devices
 22.1016 -		reboot || reboot -f ;;
 22.1017 -	255)
 22.1018 -		echo -e "ESC pressed.\n" && exit 0 ;;
 22.1019 -esac
 22.1020 -}
 22.1021 -
 22.1022 -######################
 22.1023 -# Installer sequence #
 22.1024 -######################
 22.1025 -
 22.1026 -set_messages
 22.1027 -check_root
 22.1028 -start_installer
 22.1029 -
 22.1030 -case $ACTION in
 22.1031 -	upgrade)
 22.1032 -		BACKLIST="$BACKLIST (Upgrade)"
 22.1033 -		mount_cdrom
 22.1034 -		ask_for_upgrade_dev
 22.1035 -		upgrade_process
 22.1036 -		end_of_upgrade ;;
 22.1037 -	install|*)
 22.1038 -		mount_cdrom
 22.1039 -		ask_for_target_dev
 22.1040 -		ask_for_mkfs_target_dev
 22.1041 -		ask_for_home
 22.1042 -		if [ -n "$HOME_DEV" ]; then
 22.1043 -			ask_for_mkfs_home
 22.1044 -		fi
 22.1045 -		ask_for_hostname
 22.1046 -		ask_for_users_settings
 22.1047 -		summary
 22.1048 -		prepare_partitions
 22.1049 -		install_files
 22.1050 -		grub_install
 22.1051 -		end_of_install ;;
 22.1052 -esac
 22.1053 -
 22.1054 -exit 0
    23.1 --- a/xfce/rootfs/usr/bin/tazlito	Tue Apr 10 13:00:52 2012 +0200
    23.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    23.3 @@ -1,1825 +0,0 @@
    23.4 -#!/bin/sh
    23.5 -# TazLito - SliTaz Live Tool.
    23.6 -#
    23.7 -# Tazlito is a tool to help generate and configure SliTaz LiveCD
    23.8 -# ISO images. You can create a custom distro in one command from a list of
    23.9 -# packages, extract an existing ISO image to hack it, create a new initramfs
   23.10 -# and/or a new ISO. Most commands must be run by root, except the stats
   23.11 -# and the configuration file manipulation.
   23.12 -#
   23.13 -# (C) 2007-2010 SliTaz - GNU General Public License.
   23.14 -#
   23.15 -# Authors : Christophe Lincoln <pankso@slitaz.org>
   23.16 -#           Pascal Bellard <pascal.bellard@slitaz.org>
   23.17 -#
   23.18 -VERSION=2.0
   23.19 -
   23.20 -# Tazlito configuration variables to be shorter
   23.21 -# and to use words rather than numbers.
   23.22 -COMMAND=$1
   23.23 -LIST_NAME=$2
   23.24 -TMP_DIR=/tmp/tazlito-$$-$RANDOM
   23.25 -TMP_MNT=/media/tazlito-$$-$RANDOM
   23.26 -TOP_DIR=`pwd`
   23.27 -INITRAMFS=rootfs.gz
   23.28 -LOCALSTATE=/var/lib/tazpkg
   23.29 -INSTALLED=$LOCALSTATE/installed
   23.30 -CACHE_DIR=/var/cache/tazpkg
   23.31 -MIRROR=$LOCALSTATE/mirror
   23.32 -DEFAULT_MIRROR="http://mirror.slitaz.org/packages/`cat /etc/slitaz-release`/"
   23.33 -
   23.34 -# Try to include config file, continue if command is gen-config or exit.
   23.35 -# The main config used by default is in /etc/tazlito.
   23.36 -if [ -f "/etc/tazlito/tazlito.conf" ] ; then
   23.37 -	CONFIG_FILE="/etc/tazlito/tazlito.conf"
   23.38 -fi
   23.39 -# Specific distro config file can be put in a distro tree.
   23.40 -if [ -f "$TOP_DIR/tazlito.conf" ] ; then
   23.41 -	CONFIG_FILE="$TOP_DIR/tazlito.conf"
   23.42 -fi
   23.43 -if [ ! "$CONFIG_FILE" = "" ] ; then
   23.44 -	. $CONFIG_FILE
   23.45 -else
   23.46 -	if [ "$COMMAND" = "gen-config" ] ; then
   23.47 -		continue
   23.48 -	else
   23.49 -		echo "Unable to find any configuration file. Please read the docs"
   23.50 -		echo "or run '`basename $0` gen-config' to get an empty config file."
   23.51 -		exit 0
   23.52 -	fi
   23.53 -fi
   23.54 -
   23.55 -# While Tazpkg is not used the default mirror url file does not exist
   23.56 -# and user can't recharge the list of flavors.
   23.57 -if test $(id -u) = 0 ; then
   23.58 -	if [ ! -f "$MIRROR" ]; then
   23.59 -		echo "$DEFAULT_MIRROR" > $MIRROR
   23.60 -	fi
   23.61 -fi
   23.62 -
   23.63 -# Set the rootfs and rootcd path with $DISTRO
   23.64 -# configuration variable.
   23.65 -ROOTFS=$DISTRO/rootfs
   23.66 -ROOTCD=$DISTRO/rootcd
   23.67 -FLAVORS_REPOSITORY=/home/slitaz/flavors
   23.68 -
   23.69 -#####################
   23.70 -# Tazlito functions #
   23.71 -#####################
   23.72 -
   23.73 -# Print the usage.
   23.74 -usage ()
   23.75 -{
   23.76 -	echo -e "\nSliTaz Live Tool - Version: $VERSION\n
   23.77 -\033[1mUsage: \033[0m `basename $0` [command] [list|iso|flavor|compression] [dir|iso]
   23.78 -\033[1mCommands: \033[0m\n
   23.79 -  usage           Print this short usage.
   23.80 -  stats           View Tazlito and distro configuration statistics.
   23.81 -  gen-config      Generate a new configuration file for a distro.
   23.82 -  configure       Configure the main config file or a specific tazlito.conf.
   23.83 -  gen-iso         Generate a new ISO from a distro tree.
   23.84 -  gen-initiso     Generate a new initramfs and ISO from the distro tree.
   23.85 -  list-flavors    List all available package lists on the mirror.
   23.86 -  gen-flavor      Generate a new live-CD description.
   23.87 -  gen-liveflavor  Generate a live-CD description from current system.
   23.88 -  show-flavor     Show live-CD description.
   23.89 -  get-flavor      Get a flavor's list of packages.
   23.90 -  upgrade-flavor  Update package list to the latest available versions.
   23.91 -  extract-flavor  Extract a (*.flavor) flavor into $FLAVORS_REPOSITORY.
   23.92 -  pack-flavor     Pack (and update) a flavor from $FLAVORS_REPOSITORY.
   23.93 -  check-list      Check a distro-packages.list for updates.
   23.94 -  extract-distro  Extract an ISO to a directory and rebuild LiveCD tree.
   23.95 -  gen-distro      Generate a Live distro and ISO from a list of packages.
   23.96 -  clean-distro    Remove all files generated by gen-distro.
   23.97 -  check-distro    Help to check if distro is ready to release.
   23.98 -  writeiso        Use running system to generate a bootable ISO (with /home).
   23.99 -  merge           Merge multiple rootfs into one iso.
  23.100 -  repack          Recompress rootfs into iso with maximum ratio.
  23.101 -  frugal-install  Frugal install in /boot/frugal from a distro or ISO
  23.102 -  emu-iso         Emulate an ISO image with Qemu.
  23.103 -  burn-iso        Burn ISO image to a cdrom using Wodim.\n"
  23.104 -}
  23.105 -
  23.106 -# Status function.
  23.107 -status()
  23.108 -{
  23.109 -	local CHECK=$?
  23.110 -	echo -en "\\033[70G[ "
  23.111 -	if [ $CHECK = 0 ]; then
  23.112 -		echo -en "\\033[1;33mOK"
  23.113 -	else
  23.114 -		echo -en "\\033[1;31mFailed"
  23.115 -	fi
  23.116 -	echo -e "\\033[0;39m ]"
  23.117 -	return $CHECK
  23.118 -}
  23.119 -
  23.120 -yesorno()
  23.121 -{
  23.122 -	echo -n "$1"
  23.123 -	case "$DEFAULT_ANSWER" in
  23.124 -	Y|y) answer="y";;
  23.125 -	N|n) answer="n";;
  23.126 -	*) read answer;;
  23.127 -	esac
  23.128 -}
  23.129 -
  23.130 -field()
  23.131 -{
  23.132 -	grep "^$1" "$2" | sed 's/.*: \([0-9KMG\.]*\).*/\1/'
  23.133 -}
  23.134 -
  23.135 -todomsg()
  23.136 -{
  23.137 -	echo -e "\\033[70G[ \\033[1;31mTODO\\033[0;39m ]"
  23.138 -}
  23.139 -
  23.140 -# Download a file from this mirror
  23.141 -download_from()
  23.142 -{
  23.143 -	local i
  23.144 -	local mirrors
  23.145 -	mirrors="$1"
  23.146 -	shift
  23.147 -	for i in $mirrors; do
  23.148 -		case "$i" in
  23.149 -		http://*|ftp://*) wget -c $i$@ && break;;
  23.150 -		*) cp $i/$1 . && break;;
  23.151 -		esac
  23.152 -	done
  23.153 -}
  23.154 -
  23.155 -# Download a file trying all mirrors
  23.156 -download()
  23.157 -{
  23.158 -	local i
  23.159 -	for i in $(cat $MIRROR $LOCALSTATE/undigest/*/mirror 2> /dev/null); do
  23.160 -		download_from "$i" "$@" && break
  23.161 -	done
  23.162 -}
  23.163 -
  23.164 -# Execute hooks provided by some packages
  23.165 -genisohooks()
  23.166 -{
  23.167 -	local here=`pwd`
  23.168 -	for i in $(ls $ROOTFS/etc/tazlito/*.$1 2> /dev/null); do
  23.169 -		cd $ROOTFS
  23.170 -		. $i $ROOTCD
  23.171 -	done
  23.172 -	cd $here
  23.173 -}
  23.174 -
  23.175 -cleanup()
  23.176 -{
  23.177 -	if [ -d $TMP_MNT ]; then
  23.178 -		umount $TMP_MNT
  23.179 -		rmdir $TMP_MNT
  23.180 -		rm -f /boot
  23.181 -	fi
  23.182 -}
  23.183 -
  23.184 -# Echo the package name if the tazpkg is already installed
  23.185 -installed_package_name()
  23.186 -{
  23.187 -	local tazpkg
  23.188 -	local package
  23.189 -	local VERSION
  23.190 -	local EXTRAVERSION
  23.191 -	tazpkg=$1
  23.192 -	# Try to find package name and version to be able
  23.193 -	# to repack it from installation
  23.194 -	# A dash (-) can exist in name *and* in version
  23.195 -	package=${tazpkg%-*}
  23.196 -	i=$package
  23.197 -	while true; do
  23.198 -		VERSION=""
  23.199 -		eval $(grep -s ^VERSION= $INSTALLED/$i/receipt)
  23.200 -		EXTRAVERSION=""
  23.201 -		eval $(grep -s ^EXTRAVERSION= $INSTALLED/$i/receipt)
  23.202 -		if [ "$i-$VERSION$EXTRAVERSION" = "$tazpkg" ]; then
  23.203 -			echo $i
  23.204 -			break
  23.205 -		fi
  23.206 -		case "$i" in
  23.207 -		*-*);;
  23.208 -		*) break;;
  23.209 -		esac
  23.210 -		i=${i%-*}
  23.211 -	done
  23.212 -}
  23.213 -
  23.214 -# Check if user is root.
  23.215 -check_root()
  23.216 -{
  23.217 -	if test $(id -u) != 0 ; then
  23.218 -	   echo -e "\nYou must be root to run `basename $0` with this option."
  23.219 -	   echo -e "Please type 'su' and root password to become super-user.\n"
  23.220 -	   exit 0
  23.221 -	fi
  23.222 -}
  23.223 -
  23.224 -# Check for the rootfs tree.
  23.225 -check_rootfs()
  23.226 -{
  23.227 -	if [ ! -d "$ROOTFS/etc" ] ; then
  23.228 -		echo -e "\nUnable to find a distro rootfs...\n"
  23.229 -		exit 0
  23.230 -	fi
  23.231 -}
  23.232 -
  23.233 -# Check for the boot dir into the root CD tree.
  23.234 -verify_rootcd()
  23.235 -{
  23.236 -	if [ ! -d "$ROOTCD/boot" ] ; then
  23.237 -		echo -e "\nUnable to find the rootcd boot directory...\n"
  23.238 -		exit 0
  23.239 -	fi
  23.240 -}
  23.241 -
  23.242 -create_iso()
  23.243 -{
  23.244 -	genisoimage -R -o $1 -b boot/isolinux/isolinux.bin \
  23.245 - 		-c boot/isolinux/boot.cat -no-emul-boot -boot-load-size 4 \
  23.246 -		-V "$VOLUM_NAME" -p "$PREPARED" -input-charset iso8859-1 \
  23.247 -		-boot-info-table $2
  23.248 -	if [ -x /usr/bin/isohybrid ]; then
  23.249 -		echo -n "Creating hybrid ISO..."
  23.250 -		/usr/bin/isohybrid $1 2> /dev/null
  23.251 -		status
  23.252 -	fi
  23.253 -}
  23.254 -
  23.255 -# Generate a new ISO image using isolinux.
  23.256 -gen_livecd_isolinux()
  23.257 -{
  23.258 -	# Some packages may want to alter iso
  23.259 -	genisohooks iso
  23.260 -	if [ ! -f "$ROOTCD/boot/isolinux/isolinux.bin" ]; then
  23.261 -		echo -e "\nUnable to find isolinux binary.\n"
  23.262 -		cleanup
  23.263 -		exit 0
  23.264 -	fi
  23.265 -	# Set date for boot msg.
  23.266 -	if grep -q 'XXXXXXXX' $ROOTCD/boot/isolinux/isolinux.msg; then
  23.267 -		DATE=`date +%Y%m%d`
  23.268 -		echo -n "Setting build date to: $DATE..."
  23.269 -		sed -i s/'XXXXXXXX'/"$DATE"/ $ROOTCD/boot/isolinux/isolinux.msg
  23.270 -		status
  23.271 -	fi
  23.272 -	cd $ROOTCD
  23.273 -	echo -n "Computing md5..."
  23.274 -	find * -type f ! -name md5sum -exec md5sum {} \; > md5sum
  23.275 -	status
  23.276 -	cd $DISTRO
  23.277 -	echo ""
  23.278 -	echo -e "\033[1mGenerating ISO image\033[0m"
  23.279 -	echo "================================================================================"
  23.280 -	create_iso $ISO_NAME.iso $ROOTCD
  23.281 -	echo -n "Creating the ISO md5sum..."
  23.282 -	md5sum $ISO_NAME.iso > $ISO_NAME.md5
  23.283 -	status
  23.284 -	echo "================================================================================"
  23.285 -	# Some packages may want to alter final iso
  23.286 -	genisohooks final
  23.287 -}
  23.288 -
  23.289 -lzma_history_bits()
  23.290 -{
  23.291 -	#
  23.292 -	# This genertae ISO who boot with Qemu but give
  23.293 -	# rootfs errors in frugal or liveUSB mode.
  23.294 -	#
  23.295 -	#local n
  23.296 -	#local sz
  23.297 -	#n=20	# 1Mb
  23.298 -	#sz=$(du -sk $1 | cut -f1)
  23.299 -	#while [ $sz -gt 1024 -a $n -lt 28 ]; do
  23.300 -		#n=$(( $n + 1 ))
  23.301 -		#sz=$(( $sz / 2 ))
  23.302 -	#done
  23.303 -	#echo $n
  23.304 -	echo 24
  23.305 -}
  23.306 -
  23.307 -lzma_switches()
  23.308 -{
  23.309 -	echo "-d$(lzma_history_bits $1) -mt$(grep ^processor < /proc/cpuinfo | wc -l)"
  23.310 -}
  23.311 -
  23.312 -# Pack rootfs
  23.313 -pack_rootfs()
  23.314 -{
  23.315 -	( cd $1 ; find . -print | cpio -o -H newc ) | \
  23.316 -	if [ "$COMPRESSION" = "none" ]; then
  23.317 -		echo "Generating uncompressed initramfs... "
  23.318 -		cat > $2
  23.319 -	elif [ -x /usr/bin/lzma -a "$COMPRESSION" != "gzip" ]; then
  23.320 -		echo -n "Generating lzma'ed initramfs... "
  23.321 -		lzma e -si -so $(lzma_switches $1) > $2
  23.322 -	else
  23.323 -		echo "Generating gziped initramfs... "
  23.324 -		gzip -9 > $2
  23.325 -	fi
  23.326 -	echo 1 > /tmp/rootfs
  23.327 -}
  23.328 -
  23.329 -# Compression functions for writeiso.
  23.330 -write_initramfs()
  23.331 -{
  23.332 -	if [ "$COMPRESSION" = "lzma" ]; then
  23.333 -		echo -n "Creating rootfs.gz with lzma compression... "
  23.334 -		cat /tmp/list | cpio -o -H newc | lzma e -si -so > /rootfs.gz
  23.335 -	elif [ "$COMPRESSION" = "gzip" ]; then
  23.336 -		echo "Creating rootfs.gz with gzip compression... "
  23.337 -		cat /tmp/list | cpio -o -H newc | gzip -9 > /rootfs.gz
  23.338 -	else
  23.339 -		echo "Creating rootfs.gz without compression... "
  23.340 -		cat /tmp/list | cpio -o -H newc > /rootfs.gz
  23.341 -	fi
  23.342 -	echo 1 > /tmp/rootfs
  23.343 -}
  23.344 -
  23.345 -# Generate a new initramfs from the root filesystem.
  23.346 -gen_initramfs()
  23.347 -{
  23.348 -	# Just in case CTRL+c
  23.349 -	rm -f $DISTRO/gen
  23.350 -	# Some packages may want to alter rootfs
  23.351 -	genisohooks rootfs
  23.352 -	cd $1
  23.353 -	echo ""
  23.354 -
  23.355 -        # Link duplicate files
  23.356 -        find . -type f -size +0c -exec stat -c '%s-%a-%u-%g %i %h %n' {} \; | \
  23.357 -           sort | ( save=0; old_attr=""; old_inode=""; old_link=""; old_file=""
  23.358 -           while read attr inode link file; do
  23.359 -               if [ "$attr" = "$old_attr" -a "$inode" != "$old_inode" ]; then
  23.360 -                   if cmp "$file" "$old_file" >/dev/null; then
  23.361 -                       rm -f "$file"
  23.362 -                       ln "$old_file" "$file"
  23.363 -                       inode="$old_inode"
  23.364 -                       [ "$link" = "1" ] && save="$(expr $save + ${attr%%-*})"
  23.365 -                   fi
  23.366 -               fi
  23.367 -               old_attr="$attr" ; old_inode="$inode" ; old_file="$file"
  23.368 -           done
  23.369 -           echo "$save bytes saved in duplicate files."
  23.370 -        )
  23.371 -
  23.372 -	# Use lzma if installed. Display rootfs size in realtime.
  23.373 -	rm -f /tmp/rootfs
  23.374 -	pack_rootfs . $DISTRO/$(basename $1).gz &
  23.375 -	sleep 2
  23.376 -	echo -en "\nFilesystem size:"
  23.377 -	while [ ! -f /tmp/rootfs ]
  23.378 -	do
  23.379 -		sleep 1
  23.380 -		echo -en "\\033[18G`du -sh $DISTRO/rootfs.gz | awk '{print $1}'`    "
  23.381 -	done
  23.382 -	echo -e "\n"
  23.383 -	cd $DISTRO
  23.384 -	mv $(basename $1).gz $ROOTCD/boot
  23.385 -}
  23.386 -
  23.387 -distro_sizes()
  23.388 -{
  23.389 -	echo "Build date      : `date +%Y%m%d\ \at\ \%H:%M:%S`"
  23.390 -	echo "Packages        : `ls -1 $ROOTFS*$INSTALLED/*/receipt | wc -l`"
  23.391 -	echo "Rootfs size     : `du -csh $ROOTFS*/ | awk '{ s=$1 } END { print s }'`"
  23.392 -	echo "Initramfs size  : `du -csh $ROOTCD/boot/rootfs*.gz | awk '{ s=$1 } END { print s }'`"
  23.393 -	echo "ISO image size  : `du -sh $ISO_NAME.iso | awk '{ print $1 }'`"
  23.394 -	echo "================================================================================"
  23.395 -	echo "Image is ready: $ISO_NAME.iso"
  23.396 -	echo ""
  23.397 -}
  23.398 -
  23.399 -# Print ISO and rootfs size.
  23.400 -distro_stats()
  23.401 -{
  23.402 -	echo ""
  23.403 -	echo -e "\033[1mDistro statistics\033[0m ($DISTRO)"
  23.404 -	echo "================================================================================"
  23.405 -	distro_sizes
  23.406 -}
  23.407 -
  23.408 -# Create an empty configuration file.
  23.409 -empty_config_file()
  23.410 -{
  23.411 -	cat >> tazlito.conf << "EOF"
  23.412 -# tazlito.conf: Tazlito (SliTaz Live Tool)
  23.413 -# configuration file.
  23.414 -#
  23.415 -
  23.416 -# Name of the ISO image to generate.
  23.417 -ISO_NAME=""
  23.418 -
  23.419 -# ISO image volume name.
  23.420 -VOLUM_NAME="SliTaz"
  23.421 -
  23.422 -# Name of the preparer.
  23.423 -PREPARED="$USER"
  23.424 -
  23.425 -# Path to the packages repository and the packages.list.
  23.426 -PACKAGES_REPOSITORY=""
  23.427 -
  23.428 -# Path to the distro tree to gen-distro from a
  23.429 -# list of packages.
  23.430 -DISTRO=""
  23.431 -
  23.432 -# Path to the directory containing additional files
  23.433 -# to copy into the rootfs and rootcd of the LiveCD.
  23.434 -ADDFILES="$DISTRO/addfiles"
  23.435 -
  23.436 -# Default answer for binary question (Y or N)
  23.437 -DEFAULT_ANSWER="ASK"
  23.438 -
  23.439 -# Compression utility (lzma, gzip or none)
  23.440 -COMPRESSION="lzma"
  23.441 -EOF
  23.442 -}
  23.443 -
  23.444 -# extract rootfs.gz somewhere
  23.445 -extract_rootfs()
  23.446 -{
  23.447 -	(zcat $1 || unlzma -c $1 || cat $1) 2>/dev/null | \
  23.448 -		(cd $2; cpio -idm > /dev/null)
  23.449 -}
  23.450 -
  23.451 -# Remove duplicate files
  23.452 -mergefs()
  23.453 -{
  23.454 -	echo -n "Merge $(basename $1) ($(du -hs $1 | awk '{ print $1}')) into "
  23.455 -	echo -n       "$(basename $2) ($(du -hs $2 | awk '{ print $1}'))"
  23.456 -	# merge symlinks files and devices
  23.457 -	( cd $1; find ) | while read file; do
  23.458 -		if [ -L $1/$file ]; then
  23.459 -			[ -L $2/$file ] &&
  23.460 -			[ "$(readlink $1/$file)" == "$(readlink $2/$file)" ] &&
  23.461 -			rm -f $2/$file
  23.462 -		elif [ -f $1/$file ]; then
  23.463 -			[ -f $2/$file ] &&
  23.464 -			cmp $1/$file $2/$file > /dev/null 2>&1 && rm -f $2/$file
  23.465 -			[ -f $2/$file ] && 
  23.466 -			[ "$(basename $file)" == "volatile.cpio.gz" ] &&
  23.467 -			[ "$(dirname $(dirname $file))" == \
  23.468 -			  "./var/lib/tazpkg/installed" ] && rm -f $2/$file
  23.469 -		elif [ -b $1/$file ]; then
  23.470 -			[ -b $2/$file ] && rm -f $2/$file
  23.471 -		elif [ -c $1/$file ]; then
  23.472 -			[ -c $2/$file ] && rm -f $2/$file
  23.473 -		fi
  23.474 -	done
  23.475 -	
  23.476 -	# cleanup directories
  23.477 -	( cd $1; find ) | while read file; do
  23.478 -		if [ -d $1/$file ]; then
  23.479 -			[ -d $2/$file ] && rmdir $2/$file 2> /dev/null
  23.480 -		fi
  23.481 -	done
  23.482 -	true
  23.483 -	status
  23.484 -}
  23.485 -
  23.486 -cleanup_merge()
  23.487 -{
  23.488 -	rm -rf $TMP_DIR
  23.489 -	exit 1
  23.490 -}
  23.491 -
  23.492 -human2cent()
  23.493 -{
  23.494 -case "$1" in
  23.495 -*k) echo $1 | sed 's/\(.*\).\(.\)k/\1\2/';;
  23.496 -*M) echo $(( $(echo $1 | sed 's/\(.*\).\(.\)M/\1\2/') * 1024));;
  23.497 -*G) echo $(( $(echo $1 | sed 's/\(.*\).\(.\)G/\1\2/') * 1024 * 1024));;
  23.498 -esac
  23.499 -}
  23.500 -
  23.501 -cent2human()
  23.502 -{
  23.503 -if [ $1 -lt 10000 ]; then
  23.504 -  echo "$(($1 / 10)).$(($1 % 10))k"
  23.505 -elif [ $1 -lt 10000000 ]; then
  23.506 -  echo "$(($1 / 10240)).$(( ($1/1024) % 10))M"
  23.507 -else
  23.508 -  echo "$(($1 / 10485760)).$(( ($1/1048576) % 10))G"
  23.509 -fi
  23.510 -}
  23.511 -
  23.512 -get_size()
  23.513 -{
  23.514 -cat /var/lib/tazpkg/packages.list $TMP_DIR/packages.list 2>/dev/null | awk "{ \
  23.515 -if (/^$(echo $1 | sed 's/[$+.\]/\\&/g')$/) get=1; \
  23.516 -if (/installed/ && get == 1) { print ; get++ } \
  23.517 -}
  23.518 -END { if (get < 2) print \" 0.0k  (0.0k installed)\" }" | \
  23.519 -sed 's/ *\(.*\) .\(.*\) installed./\1 \2/' | while read packed unpacked; do
  23.520 -  echo "$(human2cent $packed) $(human2cent $unpacked)"
  23.521 -done
  23.522 -}
  23.523 -
  23.524 -# Display package list with version, set packed_size and unpacked_size
  23.525 -get_pkglist()
  23.526 -{
  23.527 -packed_size=0; unpacked_size=0
  23.528 -grep -v ^#  $FLAVORS_REPOSITORY/$1/packages.list > $TMP_DIR/flavor.pkg
  23.529 -while read pkg; do
  23.530 -	set -- $(get_size $pkg)
  23.531 -	packed_size=$(( $packed_size + $1 ))
  23.532 -	unpacked_size=$(( $unpacked_size + $2 ))
  23.533 -	for i in $(grep -hs ^$pkg /var/lib/tazpkg/packages.list \
  23.534 -				  $TMP_DIR/packages.list); do
  23.535 -		echo $i
  23.536 -		break
  23.537 -	done
  23.538 -done < $TMP_DIR/flavor.pkg
  23.539 -rm -f $TMP_DIR/flavor.pkg
  23.540 -}
  23.541 -
  23.542 -# Update isolinux config files for multiple rootfs
  23.543 -update_bootconfig()	
  23.544 -{
  23.545 -	echo -n "Updating boot config files..."
  23.546 -	grep -l 'include common' $1/*.cfg | \
  23.547 -	while read file ; do
  23.548 -			awk -v n=$(echo $2 | awk '{ print NF/2 }') '{
  23.549 -if (/label/) label=$0;
  23.550 -else if (/kernel/) kernel=$0;
  23.551 -else if (/append/) {
  23.552 -	i=index($0,"rootfs.gz");
  23.553 -	append=substr($0,i+9);
  23.554 -}
  23.555 -else if (/include/) {
  23.556 -	for (i = 1; i <= n; i++) {
  23.557 -		print label i
  23.558 -		print kernel;
  23.559 -		initrd="initrd=/boot/rootfs" n ".gz"
  23.560 -		for (j = n - 1; j >= i; j--) {
  23.561 -			initrd=initrd ",/boot/rootfs" j ".gz";
  23.562 -		}
  23.563 -		printf "\tappend %s%s\n",initrd,append;
  23.564 -		print "";
  23.565 -	}
  23.566 -	print;
  23.567 -}
  23.568 -else print;
  23.569 -}' < $file > $file.$$
  23.570 -			mv -f $file.$$ $file
  23.571 -	done
  23.572 -	cat >> $1/common.cfg <<EOT
  23.573 -
  23.574 -label slitaz
  23.575 -	kernel /boot/isolinux/ifmem.c32
  23.576 -	append$(echo $2 | awk '{
  23.577 -  for (i=1; i<=NF; i++)
  23.578 -     if (i % 2 == 0) printf " slitaz%d",i/2
  23.579 -     else printf " %s",$i
  23.580 -}') noram
  23.581 -
  23.582 -label noram
  23.583 -	config noram.cfg
  23.584 -
  23.585 -EOT
  23.586 -	cat > $1/noram.cfg <<EOT
  23.587 -display isolinux.msg
  23.588 -say Not enough RAM to boot slitaz.
  23.589 -default reboot
  23.590 -label reboot
  23.591 -	com32 reboot.c32
  23.592 -
  23.593 -implicit 0
  23.594 -prompt 1
  23.595 -timeout 80
  23.596 -F1 help.txt
  23.597 -F2 options.txt
  23.598 -F3 isolinux.msg
  23.599 -F4 display.txt
  23.600 -F5 enhelp.txt
  23.601 -F6 enopts.txt
  23.602 -EOT
  23.603 -	status
  23.604 -}
  23.605 -
  23.606 -####################
  23.607 -# Tazlito commands #
  23.608 -####################
  23.609 -
  23.610 -case "$COMMAND" in
  23.611 -	stats)
  23.612 -		# Tazlito general statistics from the config file.
  23.613 -		#
  23.614 -		echo ""
  23.615 -		echo -e "\033[1mTazlito statistics\033[0m
  23.616 -===============================================================================
  23.617 -Config file         : $CONFIG_FILE
  23.618 -ISO name            : $ISO_NAME.iso
  23.619 -Volume name         : $VOLUM_NAME
  23.620 -Prepared            : $PREPARED
  23.621 -Packages repository : $PACKAGES_REPOSITORY
  23.622 -Distro directory    : $DISTRO"
  23.623 -		if [ ! "$ADDFILES" = "" ] ; then
  23.624 -			echo -e "Additional files    : $ADDFILES"
  23.625 -		fi
  23.626 -		echo "================================================================================"
  23.627 -		echo ""
  23.628 -	    ;;
  23.629 -	list-addfiles)
  23.630 -		# Simple list of additonal files in the rootfs
  23.631 -		echo ""
  23.632 -		cd $ADDFILES
  23.633 -		find rootfs -type f
  23.634 -		echo "" ;;
  23.635 -	gen-config)
  23.636 -		# Generate a new config file in the current dir or the specified
  23.637 -		# directory by $2.
  23.638 -		#
  23.639 -		if [ -n "$2" ] ; then
  23.640 -			mkdir -p $2 && cd $2
  23.641 -		fi
  23.642 -		echo -n "Generating empty tazlito.conf..."
  23.643 -		empty_config_file
  23.644 -		status
  23.645 -		echo ""
  23.646 -		if [ -f "tazlito.conf" ] ; then
  23.647 -			echo "Configuration file is ready to edit."
  23.648 -			echo "File location : `pwd`/tazlito.conf"
  23.649 -			echo ""
  23.650 -		fi
  23.651 -		;;
  23.652 -	configure)
  23.653 -		# Configure a tazlito.conf config file. Start by getting
  23.654 -		# a empty config file and sed it.
  23.655 -		#
  23.656 -		if [ -f "tazlito.conf" ] ; then
  23.657 -			rm tazlito.conf
  23.658 -		else
  23.659 -			if test $(id -u) = 0 ; then
  23.660 -				cd /etc
  23.661 -			else
  23.662 -				echo "You must be root to configure the main config file or in"
  23.663 -				echo "the same directory of the file you want to configure."
  23.664 -				exit 0
  23.665 -			fi
  23.666 -		fi
  23.667 -		empty_config_file
  23.668 -		echo""
  23.669 -		echo -e "\033[1mConfiguring :\033[0m `pwd`/tazlito.conf"
  23.670 -		echo "================================================================================"
  23.671 -		# ISO name.
  23.672 -		echo -n "ISO name            : " ; read answer
  23.673 -		sed -i s#'ISO_NAME=\"\"'#"ISO_NAME=\"$answer\""# tazlito.conf
  23.674 -		# Volume name.
  23.675 -		echo -n "Volume name         : " ; read answer
  23.676 -		sed -i s/'VOLUM_NAME=\"SliTaz\"'/"VOLUM_NAME=\"$answer\""/ tazlito.conf
  23.677 -		# Packages repository.
  23.678 -		echo -n "Packages repository : " ; read answer
  23.679 -		sed -i s#'PACKAGES_REPOSITORY=\"\"'#"PACKAGES_REPOSITORY=\"$answer\""# tazlito.conf
  23.680 -		# Distro path.
  23.681 -		echo -n "Distro path         : " ; read answer
  23.682 -		sed -i s#'DISTRO=\"\"'#"DISTRO=\"$answer\""# tazlito.conf
  23.683 -		echo "================================================================================"
  23.684 -		echo "Config file is ready to use."
  23.685 -		echo "You can now extract an ISO or generate a distro."
  23.686 -		echo ""
  23.687 -		;;
  23.688 -	gen-iso)
  23.689 -		# Simply generate a new iso.
  23.690 -		#
  23.691 -		check_root
  23.692 -		verify_rootcd
  23.693 -		gen_livecd_isolinux
  23.694 -		distro_stats
  23.695 -		;;
  23.696 -	gen-initiso)
  23.697 -		# Simply generate a new initramfs with a new iso.
  23.698 -		#
  23.699 -		check_root
  23.700 -		verify_rootcd
  23.701 -		gen_initramfs $ROOTFS
  23.702 -		gen_livecd_isolinux
  23.703 -		distro_stats
  23.704 -		;;
  23.705 -	extract-distro)
  23.706 -		# Extract an ISO image to a directory and rebuild the LiveCD tree.
  23.707 -		#
  23.708 -		check_root
  23.709 -		ISO_IMAGE=$2
  23.710 -		if [ -z "$ISO_IMAGE" ] ; then
  23.711 -			echo -e "\nPlease specify the path to the ISO image."
  23.712 -			echo -e "Example : `basename $0` image.iso /path/target\n"
  23.713 -			exit 0
  23.714 -		fi
  23.715 -		# Set the distro path by checking for $3 on cmdline.
  23.716 -		if [ -n "$3" ] ; then
  23.717 -			TARGET=$3
  23.718 -		else
  23.719 -			TARGET=$DISTRO
  23.720 -		fi
  23.721 -		# Exit if existing distro is found.
  23.722 -		if [ -d "$TARGET/rootfs" ] ; then
  23.723 -			echo -e "\nA rootfs exists in : $TARGET"
  23.724 -			echo -e "Please clean the distro tree or change directory path.\n"
  23.725 -			exit 0
  23.726 -		fi
  23.727 -		echo ""
  23.728 -		echo -e "\033[1mTazlito extracting :\033[0m `basename $ISO_IMAGE`"
  23.729 -		echo "================================================================================"
  23.730 -		# Start to mount the ISO.
  23.731 -		echo ""
  23.732 -		echo "Mounting ISO image..."
  23.733 -		mkdir -p $TMP_DIR
  23.734 -		# Get ISO file size.
  23.735 -		isosize=`du -sh $ISO_IMAGE | cut -f1`
  23.736 -		mount -o loop $ISO_IMAGE $TMP_DIR
  23.737 -		sleep 2
  23.738 -		# Prepare target dir, copy the kernel and the rootfs.
  23.739 -		mkdir -p $TARGET/rootfs
  23.740 -		mkdir -p $TARGET/rootcd/boot
  23.741 -		echo -n "Copying the Linux kernel..."
  23.742 -		if cp $TMP_DIR/boot/vmlinuz* $TARGET/rootcd/boot 2> /dev/null; then
  23.743 -			ln $TARGET/rootcd/boot/vmlinuz* $TARGET/rootcd/boot/bzImage
  23.744 -		else
  23.745 -			cp $TMP_DIR/boot/bzImage $TARGET/rootcd/boot
  23.746 -		fi
  23.747 -		status
  23.748 -		echo -n "Copying isolinux files..."
  23.749 -		cp -a $TMP_DIR/boot/isolinux $TARGET/rootcd/boot
  23.750 -		for i in $(ls $TMP_DIR); do
  23.751 -			[ "$i" = "boot" ] && continue
  23.752 -			cp -a $TMP_DIR/$i $TARGET/rootcd
  23.753 -		done
  23.754 -		status
  23.755 -		if [ -d $TMP_DIR/boot/syslinux ]; then
  23.756 -			echo -n "Copying syslinux files..."
  23.757 -			cp -a $TMP_DIR/boot/syslinux $TARGET/rootcd/boot
  23.758 -			status
  23.759 -		fi
  23.760 -		if [ -d $TMP_DIR/boot/extlinux ]; then
  23.761 -			echo -n "Copying extlinux files..."
  23.762 -			cp -a $TMP_DIR/boot/extlinux $TARGET/rootcd/boot
  23.763 -			status
  23.764 -		fi
  23.765 -		if [ -d $TMP_DIR/boot/grub ]; then
  23.766 -			echo -n "Copying GRUB files..."
  23.767 -			cp -a $TMP_DIR/boot/grub $TARGET/rootcd/boot
  23.768 -			status
  23.769 -		fi
  23.770 -		
  23.771 -		echo -n "Copying the rootfs..."
  23.772 -		cp $TMP_DIR/boot/rootfs.?z $TARGET/rootcd/boot
  23.773 -		status
  23.774 -		# Extract initramfs.
  23.775 -		cd $TARGET/rootfs
  23.776 -		echo -n "Extracting the rootfs... "
  23.777 -		extract_rootfs ../rootcd/boot/rootfs.gz $TARGET/rootfs
  23.778 -		# unpack /usr
  23.779 -		for i in etc/tazlito/*.extract; do
  23.780 -			[ -f "$i" ] && . $i ../rootcd
  23.781 -		done
  23.782 -		# Umount and remove temp directory and cd to $TARGET to get stats.
  23.783 -		umount $TMP_DIR && rm -rf $TMP_DIR
  23.784 -		cd ..
  23.785 -		echo ""
  23.786 -		echo "================================================================================"
  23.787 -		echo "Extracted       : `basename $ISO_IMAGE` ($isosize)"
  23.788 -		echo "Distro tree     : `pwd`"
  23.789 -		echo "Rootfs size     : `du -sh rootfs`"
  23.790 -		echo "Rootcd size     : `du -sh rootcd`"
  23.791 -		echo "================================================================================"
  23.792 -		echo ""
  23.793 -		;;
  23.794 -	list-flavors)
  23.795 -		# Show available flavors.
  23.796 -		if [ ! -s /etc/tazlito/flavors.list -o "$2" == "--recharge" ]; then
  23.797 -			download flavors.list -O - > /etc/tazlito/flavors.list
  23.798 -		fi
  23.799 -		echo ""
  23.800 -		echo -e "\033[1mList of flavors\033[0m"
  23.801 -		echo "================================================================================"
  23.802 -		cat /etc/tazlito/flavors.list
  23.803 -		echo ""
  23.804 -		;;
  23.805 -	show-flavor)
  23.806 -		# Show flavor description.
  23.807 -		FLAVOR=${2%.flavor}
  23.808 -		if [ ! -f "$FLAVOR.flavor" ]; then
  23.809 -			echo "File $FLAVOR.flavor not found."
  23.810 -			exit 1
  23.811 -		fi
  23.812 -		mkdir $TMP_DIR
  23.813 -		zcat $FLAVOR.flavor | ( cd $TMP_DIR; cpio -i 2> /dev/null)
  23.814 -		if [ "$3" = "--brief" ]; then
  23.815 -			if [ "$4" != "--noheader" ]; then
  23.816 -				echo "Name              ISO   Rootfs  Description"
  23.817 -				echo "================================================================================"
  23.818 -			fi
  23.819 -			printf "%-16.16s %6.6s %6.6s %s\n" "$FLAVOR" \
  23.820 -				"$(field ISO $TMP_DIR/$FLAVOR.desc)" \
  23.821 -				"$(field 'Rootfs size' $TMP_DIR/$FLAVOR.desc)" \
  23.822 -				"$(grep ^Description $TMP_DIR/$FLAVOR.desc | cut -d: -f2)"
  23.823 -		else
  23.824 -			echo "================================================================================"
  23.825 -			cat $TMP_DIR/$FLAVOR.desc
  23.826 -		fi
  23.827 -		rm -Rf $TMP_DIR
  23.828 -		;;
  23.829 -	gen-liveflavor)
  23.830 -		# Generate a new flavor form the live system.
  23.831 -		FLAVOR=${2%.flavor}
  23.832 -		DESC=""
  23.833 -		case "$FLAVOR" in
  23.834 -		'')	echo -n "Flavor name : "
  23.835 -			read FLAVOR
  23.836 -			[ -z "$FLAVOR" ] && exit 1;;
  23.837 -		-?|-h*|--help) echo -e "
  23.838 -
  23.839 -SliTaz Live Tool - Version: $VERSION
  23.840 -\033[1mUsage: \033[0m `basename $0` gen-liveflavor flavor-name [flavor-patch-file]
  23.841 -\033[1mflavor-patch-file format: \033[0m
  23.842 -code	data
  23.843 -+	package to add
  23.844 --	package to remove
  23.845 -!	non-free package to add
  23.846 -?	display message
  23.847 -@	flavor description
  23.848 -
  23.849 -\033[1mExample: \033[0m
  23.850 -@	Developer tools for slitaz maintainers
  23.851 -+	slitaz-toolchain
  23.852 -+	mercurial
  23.853 -"
  23.854 -			exit 1;;
  23.855 -		esac
  23.856 -		mv /etc/tazlito/distro-packages.list \
  23.857 -		   /etc/tazlito/distro-packages.list.$$ 2> /dev/null
  23.858 -		rm -f distro-packages.list non-free.list 2> /dev/null
  23.859 -		tazpkg recharge
  23.860 -		[ -n "$3" ] && while read action pkg; do
  23.861 -			case "$action" in
  23.862 -			+)	yes | tazpkg get-install $pkg;;
  23.863 -			-)	yes | tazpkg remove $pkg;;
  23.864 -			!)	echo $pkg >> non-free.list;;
  23.865 -			@)	DESC="$pkg";;
  23.866 -			\?)	echo -en "$pkg"; read action;;
  23.867 -			esac
  23.868 -		done < $3
  23.869 -		yes '' | tazlito gen-distro
  23.870 -		echo "$DESC" | tazlito gen-flavor "$FLAVOR"
  23.871 -		mv /etc/tazlito/distro-packages.list.$$ \
  23.872 -		   /etc/tazlito/distro-packages.list 2> /dev/null
  23.873 -		;;
  23.874 -	gen-flavor)
  23.875 -		# Generate a new flavor from the last iso image generated.
  23.876 -		FLAVOR=${2%.flavor}
  23.877 -		echo ""
  23.878 -		echo -e "\033[1mFlavor generation\033[0m"
  23.879 -		echo "================================================================================"
  23.880 -		if [ -z "$FLAVOR" ]; then
  23.881 -			echo -n "Flavor name : "
  23.882 -			read FLAVOR
  23.883 -			[ -z "$FLAVOR" ] && exit 1
  23.884 -		fi
  23.885 -		check_rootfs
  23.886 -		FILES="$FLAVOR.pkglist"
  23.887 -		echo -n "Creating file $FLAVOR.flavor..."
  23.888 -		for i in rootcd rootfs; do
  23.889 -			if [ -d "$ADDFILES/$i" ] ; then
  23.890 -				FILES="$FILES\n$FLAVOR.$i"
  23.891 -				( cd "$ADDFILES/$i"; find . | \
  23.892 -				  cpio -o -H newc 2> /dev/null | gzip -9 ) > $FLAVOR.$i
  23.893 -			fi
  23.894 -		done
  23.895 -		status
  23.896 -		answer=`grep -s ^Description $FLAVOR.desc`
  23.897 -		answer=${answer#Description     : }
  23.898 -		if [ -z "$answer" ]; then
  23.899 -			echo -n "Description : "
  23.900 -			read answer
  23.901 -		fi
  23.902 -		echo -n "Compressing flavor $FLAVOR..."
  23.903 -		echo "Flavor          : $FLAVOR" > $FLAVOR.desc
  23.904 -		echo "Description     : $answer" >> $FLAVOR.desc
  23.905 -		( cd $DISTRO; distro_sizes) >> $FLAVOR.desc
  23.906 -		\rm -f $FLAVOR.pkglist $FLAVOR.nonfree 2> /dev/null
  23.907 -		for i in $(ls $ROOTFS$INSTALLED); do
  23.908 -			eval $(grep ^VERSION= $ROOTFS$INSTALLED/$i/receipt)
  23.909 -			EXTRAVERSION=""
  23.910 -			eval $(grep ^EXTRAVERSION= $ROOTFS$INSTALLED/$i/receipt)
  23.911 -			eval $(grep ^CATEGORY= $ROOTFS$INSTALLED/$i/receipt)
  23.912 -			if [ "$CATEGORY" = "non-free" -a "${i%%-*}" != "get" ]
  23.913 -			then
  23.914 -				echo "$i" >> $FLAVOR.nonfree
  23.915 -			else
  23.916 -				echo "$i-$VERSION$EXTRAVERSION" >> $FLAVOR.pkglist
  23.917 -			fi
  23.918 -		done
  23.919 -		[ -s $FLAVOR.nonfree ] && $FILES="$FILES\n$FLAVOR.nonfree"
  23.920 -		for i in $LOCALSTATE/undigest/*/mirror ; do
  23.921 -			[ -s $i ] && cat $i >> $FLAVOR.mirrors
  23.922 -		done
  23.923 -		[ -s $FLAVOR.mirrors ] && $FILES="$FILES\n$FLAVOR.mirrors"
  23.924 -		echo -e "$FLAVOR.desc\n$FILES" | cpio -o -H newc 2>/dev/null | \
  23.925 -			gzip -9 > $FLAVOR.flavor
  23.926 -		rm `echo -e $FILES`
  23.927 -		status
  23.928 -		echo "================================================================================"
  23.929 -		echo "Flavor size : `du -sh $FLAVOR.flavor`"
  23.930 -		echo ""
  23.931 -		;;
  23.932 -	upgrade-flavor)
  23.933 -		# Update package list to the lastest versions available.
  23.934 -		FLAVOR=${2%.flavor}
  23.935 -		if [ -f $FLAVOR.flavor ] || download $FLAVOR.flavor; then
  23.936 -			mkdir $TMP_DIR
  23.937 -			zcat $FLAVOR.flavor | ( cd $TMP_DIR; cpio -i >/dev/null )
  23.938 -			echo -n "Updating $FLAVOR package list..."
  23.939 -			[ -s /var/lib/tazpkg/packages.list ] || tazpkg recharge
  23.940 -			packed_size=0; unpacked_size=0
  23.941 -			while read org; do
  23.942 -				i=0
  23.943 -				pkg=$org
  23.944 -				while ! grep -q ^$pkg$ /var/lib/tazpkg/packages.txt; do
  23.945 -					pkg=${pkg%-*}
  23.946 -					i=$(($i + 1))
  23.947 -					[ $i -gt 5 ] && break;
  23.948 -				done
  23.949 -				set -- $(get_size $pkg)
  23.950 -				packed_size=$(( $packed_size + $1 ))
  23.951 -				unpacked_size=$(( $unpacked_size + $2 ))
  23.952 -				for i in $(grep ^$pkg /var/lib/tazpkg/packages.list); do
  23.953 -					echo $i
  23.954 -					break
  23.955 -				done
  23.956 -			done <  $TMP_DIR/$FLAVOR.pkglist \
  23.957 -			     > $TMP_DIR/$FLAVOR.pkglist.$$
  23.958 -			mv -f $TMP_DIR/$FLAVOR.pkglist.$$ $TMP_DIR/$FLAVOR.pkglist
  23.959 -			if [ -s $TMP_DIR/$FLAVOR.rootfs ]; then
  23.960 -				packed_size=$(($packed_size \
  23.961 -					+ $(cat $TMP_DIR/$FLAVOR.rootfs | wc -c ) / 100 ))
  23.962 -				unpacked_size=$(($unpacked_size \
  23.963 -					+ $(zcat $TMP_DIR/$FLAVOR.rootfs | wc -c ) / 100 ))
  23.964 -			fi
  23.965 -			# Estimate lzma
  23.966 -			packed_size=$(($packed_size * 2 / 3))
  23.967 -			iso_size=$(( $packed_size + 26000 ))
  23.968 -			if [ -s $TMP_DIR/$FLAVOR.rootcd ]; then
  23.969 -				iso_size=$(($iso_size \
  23.970 -					+ $(zcat $TMP_DIR/$FLAVOR.rootcd | wc -c ) / 100 ))
  23.971 -			fi
  23.972 -			sed -i -e '/Image is ready/d' \
  23.973 -			       -e "s/Rootfs size\( *:\) \(.*\)/Rootfs size\1 $(cent2human $unpacked_size)  (estimated)/" \
  23.974 -			       -e "s/Initramfs size\( *:\) \(.*\)/Initramfs size\1 $(cent2human $packed_size)  (estimated)/" \
  23.975 -			       -e "s/ISO image size\( *:\) \(.*\)/ISO image size\1 $(cent2human $iso_size)  (estimated)/" \
  23.976 -			       -e "s/date\( *:\) \(.*\)/date\1 $(date +%Y%m%d\ \at\ \%H:%M:%S)/" \
  23.977 -					$TMP_DIR/$FLAVOR.desc
  23.978 -			( cd $TMP_DIR ; ls | cpio -o -H newc ) | gzip -9 > \
  23.979 -				$FLAVOR.flavor
  23.980 -			status
  23.981 -			rm -Rf $TMP_DIR
  23.982 -		fi
  23.983 -		;;
  23.984 -	extract-flavor)
  23.985 -		# Extract a flavor into $FLAVORS_REPOSITORY.
  23.986 -		FLAVOR=${2%.flavor}
  23.987 -		if [ -f $FLAVOR.flavor ] || download $FLAVOR.flavor; then
  23.988 -			mkdir $TMP_DIR
  23.989 -			zcat $FLAVOR.flavor | ( cd $TMP_DIR; cpio -i >/dev/null )
  23.990 -			echo -n "Extracting $FLAVOR..."
  23.991 -			rm -rf $FLAVORS_REPOSITORY/$FLAVOR 2> /dev/null
  23.992 -			mkdir -p $FLAVORS_REPOSITORY/$FLAVOR
  23.993 -			echo "FLAVOR=\"$FLAVOR\"" > $FLAVORS_REPOSITORY/$FLAVOR/receipt
  23.994 -			grep ^Description $TMP_DIR/$FLAVOR.desc | \
  23.995 -				sed 's/.*: \(.*\)$/SHORT_DESC="\1"/' >> \
  23.996 -				$FLAVORS_REPOSITORY/$FLAVOR/receipt
  23.997 -			grep -q '^Rootfs list' $TMP_DIR/$FLAVOR.desc && \
  23.998 -			grep '^Rootfs list' $TMP_DIR/$FLAVOR.desc | \
  23.999 -				sed 's/.*: \(.*\)$/ROOTFS_SELECTION="\1"/' >> \
 23.1000 -				$FLAVORS_REPOSITORY/$FLAVOR/receipt
 23.1001 -			grep '^Rootfs size' $TMP_DIR/$FLAVOR.desc | \
 23.1002 -				sed 's/.*: \(.*\)$/ROOTFS_SIZE="\1"/' >> \
 23.1003 -				$FLAVORS_REPOSITORY/$FLAVOR/receipt
 23.1004 -			grep ^Initramfs $TMP_DIR/$FLAVOR.desc | \
 23.1005 -				sed 's/.*: \(.*\)$/INITRAMFS_SIZE="\1"/' >> \
 23.1006 -				$FLAVORS_REPOSITORY/$FLAVOR/receipt
 23.1007 -			grep ^ISO $TMP_DIR/$FLAVOR.desc | \
 23.1008 -				sed 's/.*: \(.*\)$/ISO_SIZE="\1"/' >> \
 23.1009 -				$FLAVORS_REPOSITORY/$FLAVOR/receipt
 23.1010 -			for i in rootcd rootfs; do
 23.1011 -				[ -f $TMP_DIR/$FLAVOR.$i ] || continue
 23.1012 -				mkdir $FLAVORS_REPOSITORY/$FLAVOR/$i
 23.1013 -				zcat $TMP_DIR/$FLAVOR.$i | \
 23.1014 -				  (cd $FLAVORS_REPOSITORY/$FLAVOR/$i; \
 23.1015 -				   cpio -idm > /dev/null)
 23.1016 -			done
 23.1017 -			[ -s $TMP_DIR/$FLAVOR.mirrors ] &&
 23.1018 -				cp $TMP_DIR/$FLAVOR.mirrors \
 23.1019 -					$FLAVORS_REPOSITORY/$FLAVOR/mirrors
 23.1020 -			[ -s /var/lib/tazpkg/packages.list ] || tazpkg recharge
 23.1021 -			while read org; do
 23.1022 -				i=0
 23.1023 -				pkg=$org
 23.1024 -				while ! grep -q ^$pkg$ /var/lib/tazpkg/packages.txt; do
 23.1025 -					pkg=${pkg%-*}
 23.1026 -					i=$(($i + 1))
 23.1027 -					[ $i -gt 5 ] && break;
 23.1028 -				done
 23.1029 -				echo $pkg
 23.1030 -			done <  $TMP_DIR/$FLAVOR.pkglist \
 23.1031 -			     > $FLAVORS_REPOSITORY/$FLAVOR/packages.list
 23.1032 -			status
 23.1033 -			rm -Rf $TMP_DIR
 23.1034 -		fi
 23.1035 -		;;
 23.1036 -	pack-flavor)
 23.1037 -		# Create a flavor from $FLAVORS_REPOSITORY.
 23.1038 -		FLAVOR=${2%.flavor}
 23.1039 -		if [ -s $FLAVORS_REPOSITORY/$FLAVOR/receipt ]; then
 23.1040 -			mkdir $TMP_DIR
 23.1041 -			echo -n "Creating flavor $FLAVOR..."
 23.1042 -			[ -s /var/lib/tazpkg/packages.list ] || tazpkg recharge
 23.1043 -			if [ -s $FLAVORS_REPOSITORY/$FLAVOR/mirrors ]; then
 23.1044 -				cp $FLAVORS_REPOSITORY/$FLAVOR/mirrors \
 23.1045 -					$TMP_DIR/$FLAVOR.mirrors
 23.1046 -				for i in $(cat $TMP_DIR/$FLAVOR.mirrors); do
 23.1047 -					wget -O - $i/packages.list >> $TMP_DIR/packages.list
 23.1048 -				done
 23.1049 -			fi
 23.1050 -			[ -s $FLAVORS_REPOSITORY/$FLAVOR/packages.list ] &&
 23.1051 -			get_pkglist $FLAVOR > $TMP_DIR/$FLAVOR.pkglist
 23.1052 -			if grep -q ^ROOTFS_SELECTION \
 23.1053 -				$FLAVORS_REPOSITORY/$FLAVOR/receipt; then
 23.1054 -				. $FLAVORS_REPOSITORY/$FLAVOR/receipt
 23.1055 -				set -- $ROOTFS_SELECTION
 23.1056 -				[ -n "$FRUGAL_RAM" ] || FRUGAL_RAM=$1
 23.1057 -				[ -f $FLAVORS_REPOSITORY/$2/packages.list ] ||
 23.1058 -					tazlito extract-flavor $2
 23.1059 -				get_pkglist $2 > $TMP_DIR/$FLAVOR.pkglist
 23.1060 -			fi
 23.1061 -			for i in rootcd rootfs; do
 23.1062 -				[ -d $FLAVORS_REPOSITORY/$FLAVOR/$i ] || \
 23.1063 -					continue
 23.1064 -				( cd $FLAVORS_REPOSITORY/$FLAVOR/$i ; find . | \
 23.1065 -				cpio -o -H newc 2> /dev/null ) | \
 23.1066 -				gzip -9 >$TMP_DIR/$FLAVOR.$i
 23.1067 -			done
 23.1068 -			if [ -s $TMP_DIR/$FLAVOR.rootfs ]; then
 23.1069 -				packed_size=$(($packed_size \
 23.1070 -					+ $(cat $TMP_DIR/$FLAVOR.rootfs | wc -c ) / 100 ))
 23.1071 -				unpacked_size=$(($unpacked_size \
 23.1072 -					+ $(zcat $TMP_DIR/$FLAVOR.rootfs | wc -c ) / 100 ))
 23.1073 -			fi
 23.1074 -			# Estimate lzma
 23.1075 -			packed_size=$(($packed_size * 2 / 3))
 23.1076 -			iso_size=$(( $packed_size + 26000 ))
 23.1077 -			if [ -s $TMP_DIR/$FLAVOR.rootcd ]; then
 23.1078 -				iso_size=$(($iso_size \
 23.1079 -					+ $(zcat $TMP_DIR/$FLAVOR.rootcd | wc -c ) / 100 ))
 23.1080 -			fi
 23.1081 -			VERSION=""
 23.1082 -			MAINTAINER=""
 23.1083 -			ROOTFS_SELECTION=""
 23.1084 -			ROOTFS_SIZE="$(cent2human $unpacked_size) (estimated)"
 23.1085 -			INITRAMFS_SIZE="$(cent2human $packed_size) (estimated)"
 23.1086 -			ISO_SIZE="$(cent2human $iso_size) (estimated)"
 23.1087 -			. $FLAVORS_REPOSITORY/$FLAVOR/receipt
 23.1088 -			cat > $TMP_DIR/$FLAVOR.desc <<EOT
 23.1089 -Flavor          : $FLAVOR
 23.1090 -Description     : $SHORT_DESC
 23.1091 -EOT
 23.1092 -			[ -n "$VERSION" ] && cat >> $TMP_DIR/$FLAVOR.desc <<EOT
 23.1093 -Version         : $VERSION
 23.1094 -EOT
 23.1095 -			[ -n "$MAINTAINER" ] && cat >> $TMP_DIR/$FLAVOR.desc <<EOT
 23.1096 -Maintainer      : $MAINTAINER
 23.1097 -EOT
 23.1098 -			[ -n "$FRUGAL_RAM" ] && cat >> $TMP_DIR/$FLAVOR.desc <<EOT
 23.1099 -LiveCD RAM size : $FRUGAL_RAM
 23.1100 -EOT
 23.1101 -			[ -n "$ROOTFS_SELECTION" ] && cat >> $TMP_DIR/$FLAVOR.desc <<EOT
 23.1102 -Rootfs list     : $ROOTFS_SELECTION
 23.1103 -EOT
 23.1104 -			cat >> $TMP_DIR/$FLAVOR.desc <<EOT
 23.1105 -Build date      : $(date +%Y%m%d\ \at\ \%H:%M:%S)
 23.1106 -Packages        : $(grep -v ^# $TMP_DIR/$FLAVOR.pkglist | wc -l)
 23.1107 -Rootfs size     : $ROOTFS_SIZE
 23.1108 -Initramfs size  : $INITRAMFS_SIZE
 23.1109 -ISO image size  : $ISO_SIZE
 23.1110 -================================================================================
 23.1111 -
 23.1112 -EOT
 23.1113 -			rm -f $TMP_DIR/packages.list
 23.1114 -			( cd $TMP_DIR ; ls | cpio -o -H newc 2> /dev/null) | \
 23.1115 -				gzip -9 > $FLAVOR.flavor
 23.1116 -			status
 23.1117 -			rm -Rf $TMP_DIR
 23.1118 -		else
 23.1119 -			echo "No $FLAVOR flavor in $FLAVORS_REPOSITORY."
 23.1120 -		fi
 23.1121 -		;;
 23.1122 -	get-flavor)
 23.1123 -		# Get a flavor's files and prepare for gen-distro.
 23.1124 -		FLAVOR=${2%.flavor}
 23.1125 -		echo ""
 23.1126 -		if [ -f $FLAVOR.flavor ] || download $FLAVOR.flavor; then
 23.1127 -			echo -n "Cleaning $DISTRO..."
 23.1128 -			rm -R $DISTRO 2> /dev/null
 23.1129 -			mkdir -p $DISTRO
 23.1130 -			status
 23.1131 -			mkdir $TMP_DIR
 23.1132 -			echo -n "Extracting flavor $FLAVOR.flavor... "
 23.1133 -			zcat $FLAVOR.flavor | ( cd $TMP_DIR; cpio -i 2>/dev/null )
 23.1134 -			echo -n "Creating distro-packages.list..."
 23.1135 -			mv $TMP_DIR/$FLAVOR.nonfree non-free.list 2> /dev/null
 23.1136 -			mv $TMP_DIR/$FLAVOR.pkglist distro-packages.list
 23.1137 -			status
 23.1138 -			for i in rootcd rootfs; do
 23.1139 -				if [ -f $TMP_DIR/$FLAVOR.$i ]; then
 23.1140 -					echo -n "Adding $i... "
 23.1141 -					mkdir -p "$ADDFILES/$i"
 23.1142 -					zcat $TMP_DIR/$FLAVOR.$i | \
 23.1143 -						( cd "$ADDFILES/$i"; cpio -id 2> /dev/null)
 23.1144 -				fi
 23.1145 -			done
 23.1146 -			if [ -s $TMP_DIR/$FLAVOR.mirrors ]; then
 23.1147 -				n=""
 23.1148 -				while read line; do
 23.1149 -					mkdir -p $LOCALSTATE/undigest/$FLAVOR$n
 23.1150 -					echo "$line" > $LOCALSTATE/undigest/$FLAVOR$n/mirror
 23.1151 -					n=$(( $n + 1 ))
 23.1152 -				done < $TMP_DIR/$FLAVOR.mirrors
 23.1153 -				tazpkg recharge
 23.1154 -			fi
 23.1155 -			rm -f /etc/tazlito/rootfs.list
 23.1156 -			grep -q '^Rootfs list' $TMP_DIR/$FLAVOR.desc &&
 23.1157 -				grep '^Rootfs list' $TMP_DIR/$FLAVOR.desc | \
 23.1158 -				sed 's/.*: \(.*\)$/\1/' > /etc/tazlito/rootfs.list
 23.1159 -			echo -n "Updating tazlito.conf..."
 23.1160 -			[ -f tazlito.conf ] || cp /etc/tazlito/tazlito.conf .
 23.1161 -			cat tazlito.conf | grep -v "^#VOLUM_NAME" | \
 23.1162 -			sed "s/^VOLUM_NA/VOLUM_NAME=\"SliTaz $FLAVOR\"\\n#VOLUM_NA/" \
 23.1163 -				> tazlito.conf.$$ && mv tazlito.conf.$$ tazlito.conf
 23.1164 -			sed -i "s/ISO_NAME=.*/ISO_NAME=\"slitaz-$FLAVOR\"/" tazlito.conf
 23.1165 -			status
 23.1166 -			rm -Rf $TMP_DIR
 23.1167 -		fi
 23.1168 -		echo ""
 23.1169 -		;;
 23.1170 -	check-list)
 23.1171 -		# Use current packages list in $PWD by default.
 23.1172 -		DISTRO_PKGS_LIST=distro-packages.list
 23.1173 -		[ -d "$2" ] && DISTRO_PKGS_LIST=$2/distro-packages.list
 23.1174 -		[ -f "$2" ] && DISTRO_PKGS_LIST=$2
 23.1175 -		[ ! -f $DISTRO_PKGS_LIST ] && echo "No packages list found." && exit 0
 23.1176 -		echo ""
 23.1177 -		echo -e "\033[1mLiveCD packages list check\033[0m"
 23.1178 -		echo "================================================================================"
 23.1179 -		for pkg in `cat $DISTRO_PKGS_LIST`
 23.1180 -		do
 23.1181 -			if ! grep -q "$pkg" /var/lib/tazpkg/packages.list; then
 23.1182 -				echo "Update: $pkg"
 23.1183 -				up=$(($up + 1))
 23.1184 -			fi
 23.1185 -		done
 23.1186 -		[ -z $up ] && echo -e "List is up-to-date\n" && exit 0
 23.1187 -		echo "================================================================================"
 23.1188 -		echo -e "Updates: $up\n" ;;
 23.1189 -	gen-distro)
 23.1190 -		# Generate a live distro tree with a set of packages.
 23.1191 -		#
 23.1192 -		check_root
 23.1193 -		
 23.1194 -		# Check if a package list was specified on cmdline.
 23.1195 -		LIST_NAME="distro-packages.list"
 23.1196 -		CDROM=""
 23.1197 -		while [ -n "$2" ]; do
 23.1198 -			case "$2" in
 23.1199 -			--iso=*)
 23.1200 -				CDROM="-o loop ${2#--iso=}"
 23.1201 -				;;
 23.1202 -			--cdrom)
 23.1203 -				CDROM="/dev/cdrom"
 23.1204 -				;;
 23.1205 -			--force)
 23.1206 -				DELETE_ROOTFS="true"
 23.1207 -				;;
 23.1208 -			*)	if [ ! -f "$2" ] ; then
 23.1209 -					echo -e "\nUnable to find the specified packages list."
 23.1210 -					echo -e "List name : $2\n"
 23.1211 -					exit 1
 23.1212 -				fi
 23.1213 -				LIST_NAME=$2
 23.1214 -				;;
 23.1215 -			esac
 23.1216 -			shift
 23.1217 -		done
 23.1218 -		 
 23.1219 -		if [ -d $ROOTFS ] ; then
 23.1220 -			# Delete $ROOTFS if --force is set on command line
 23.1221 -			if [ ! -z $DELETE_ROOTFS ]; then
 23.1222 -				rm -rf $ROOTFS
 23.1223 -				unset $DELETE_ROOTFS
 23.1224 -			else
 23.1225 -				echo -e "\nA rootfs exists in : $DISTRO"
 23.1226 -				echo -e "Please clean the distro tree or change directory path.\n"
 23.1227 -				exit 0
 23.1228 -			fi
 23.1229 -		fi
 23.1230 -		if [ ! -f "$LIST_NAME" -a -d $INSTALLED ] ; then
 23.1231 -		# Build list with installed packages
 23.1232 -			for i in $(ls $INSTALLED); do
 23.1233 -				eval $(grep ^VERSION= $INSTALLED/$i/receipt)
 23.1234 -				EXTRAVERSION=""
 23.1235 -				eval $(grep ^EXTRAVERSION= $INSTALLED/$i/receipt)
 23.1236 -				echo "$i-$VERSION$EXTRAVERSION" >> $LIST_NAME
 23.1237 -			done
 23.1238 -		fi
 23.1239 -		# Exit if no list name.
 23.1240 -		if [ ! -f "$LIST_NAME" ]; then
 23.1241 -			echo -e "\nNo packages list found or specified. Please read the docs.\n"
 23.1242 -			exit 0
 23.1243 -		fi
 23.1244 -		# Start generation.
 23.1245 -		echo ""
 23.1246 -		echo -e "\033[1mTazlito generating a distro\033[0m"
 23.1247 -		echo "================================================================================"
 23.1248 -		# Misc checks
 23.1249 -		[ -n "$PACKAGES_REPOSITORY" ] || PACKAGES_REPOSITORY="."
 23.1250 -		[ -d $PACKAGES_REPOSITORY ] || mkdir -p $PACKAGES_REPOSITORY
 23.1251 -		# Get the list of packages using cat for a file list.
 23.1252 -		LIST=`cat $LIST_NAME`
 23.1253 -		# Verify if all packages in list are present in $PACKAGES_REPOSITORY.
 23.1254 -		REPACK=""
 23.1255 -		DOWNLOAD=""
 23.1256 -		for pkg in $LIST
 23.1257 -		do
 23.1258 -			[ "$pkg" = "" ] && continue
 23.1259 -			pkg=${pkg%.tazpkg}
 23.1260 -			[ -f $PACKAGES_REPOSITORY/$pkg.tazpkg ] && continue
 23.1261 -			PACKAGE=$(installed_package_name $pkg)
 23.1262 -			[ -n "$PACKAGE" -a "$REPACK" = "y" ] && continue
 23.1263 -			[ -z "$PACKAGE" -a -n "$DOWNLOAD" ] && continue
 23.1264 -			echo -e "\nUnable to find $pkg in the repository."
 23.1265 -			echo -e "Path : $PACKAGES_REPOSITORY\n"
 23.1266 -			if [ -n "$PACKAGE" -a -z "$REPACK" ]; then
 23.1267 -				yesorno "Repack packages from rootfs (y/N) ? "
 23.1268 -				REPACK="$answer"
 23.1269 -				[ "$answer" = "y" ] || REPACK="n"
 23.1270 -				[ "$DOWNLOAD" = "y" ] && break
 23.1271 -			fi
 23.1272 -			if [ -f $MIRROR -a -z "$DOWNLOAD" ]; then
 23.1273 -				yesorno "Download packages from mirror (Y/n) ? "
 23.1274 -				DOWNLOAD="$answer"
 23.1275 -				if [ "$answer" = "n" ]; then
 23.1276 -					[ -z "$PACKAGE" ] && exit 1
 23.1277 -				else
 23.1278 -					DOWNLOAD="y"
 23.1279 -					[ -n "$REPACK" ] && break
 23.1280 -				fi
 23.1281 -			fi
 23.1282 -			[ "$REPACK" = "n" -a "$DOWNLOAD" = "n" ] && exit 1
 23.1283 -		done
 23.1284 -		
 23.1285 -		# Mount cdrom to be able to repack boot-loader packages
 23.1286 -		if [ ! -e /boot -a -n "$CDROM" ]; then
 23.1287 -			mkdir $TMP_MNT
 23.1288 -			if mount -r $CDROM $TMP_MNT 2> /dev/null; then
 23.1289 -				ln -s $TMP_MNT/boot /
 23.1290 -				if [ ! -d "$ADDFILES/rootcd" ] ; then
 23.1291 -					mkdir -p $ADDFILES/rootcd
 23.1292 -					for i in $(ls $TMP_MNT); do
 23.1293 -						[ "$i" = "boot" ] && continue
 23.1294 -						cp -a $TMP_MNT/$i $ADDFILES/rootcd
 23.1295 -					done
 23.1296 -				fi
 23.1297 -			else
 23.1298 -				rmdir $TMP_MNT
 23.1299 -			fi
 23.1300 -		fi
 23.1301 -
 23.1302 -		# Root fs stuff.
 23.1303 -		echo "Preparing the rootfs directory..."
 23.1304 -		mkdir -p $ROOTFS
 23.1305 -		sleep 2
 23.1306 -		for pkg in $LIST
 23.1307 -		do
 23.1308 -			[ "$pkg" = "" ] && continue
 23.1309 -			# First copy and extract the package in tmp dir.
 23.1310 -			pkg=${pkg%.tazpkg}
 23.1311 -			PACKAGE=$(installed_package_name $pkg)
 23.1312 -			mkdir -p $TMP_DIR
 23.1313 -			if [ ! -f $PACKAGES_REPOSITORY/$pkg.tazpkg ]; then
 23.1314 -				# Look for package in cache
 23.1315 -				if [ -f $CACHE_DIR/$pkg.tazpkg ]; then
 23.1316 -					ln -s $CACHE_DIR/$pkg.tazpkg $PACKAGES_REPOSITORY
 23.1317 -				# Look for package in running distribution
 23.1318 -				elif [ -n "$PACKAGE" -a "$REPACK" = "y" ]; then
 23.1319 -					tazpkg repack $PACKAGE && \
 23.1320 -					  mv $pkg.tazpkg $PACKAGES_REPOSITORY 
 23.1321 -				fi
 23.1322 -			fi
 23.1323 -			if [ ! -f $PACKAGES_REPOSITORY/$pkg.tazpkg ]; then
 23.1324 -				# Get package from mirror
 23.1325 -				[ "$DOWNLOAD" = "y" ] && \
 23.1326 -				download $pkg.tazpkg && \
 23.1327 -				mv $pkg.tazpkg $PACKAGES_REPOSITORY
 23.1328 -			fi
 23.1329 -			if [ ! -f $PACKAGES_REPOSITORY/$pkg.tazpkg ]; then
 23.1330 -				echo "Missing package $pkg."
 23.1331 -				cleanup
 23.1332 -				exit 1
 23.1333 -			fi
 23.1334 -		done
 23.1335 -		if [ -f non-free.list ]; then
 23.1336 -			echo "Preparing non-free packages..."
 23.1337 -			cp non-free.list $ROOTFS/etc/tazlito/non-free.list
 23.1338 -			for pkg in $(cat non-free.list); do
 23.1339 -				if [ ! -d $INSTALLED/$pkg ]; then
 23.1340 -					if [ ! -d $INSTALLED/get-$pkg ]; then
 23.1341 -						tazpkg get-install get-$pkg
 23.1342 -					fi
 23.1343 -					get-$pkg
 23.1344 -				fi
 23.1345 -				tazpkg repack $pkg
 23.1346 -				pkg=$(ls $pkg*.tazpkg)
 23.1347 -				grep -q "^$pkg$" $LIST_NAME || \
 23.1348 -					echo $pkg >>$LIST_NAME
 23.1349 -				mv $pkg $PACKAGES_REPOSITORY 
 23.1350 -			done
 23.1351 -		fi
 23.1352 -		echo ""
 23.1353 -		cp $LIST_NAME $DISTRO/distro-packages.list
 23.1354 -		sed 's/\(.*\)/\1.tazpkg/' < $DISTRO/distro-packages.list > $DISTRO/list-packages
 23.1355 -		cd $PACKAGES_REPOSITORY
 23.1356 -		yes y | tazpkg install-list \
 23.1357 -			$DISTRO/list-packages --root=$ROOTFS
 23.1358 -		cd $DISTRO
 23.1359 -		cp distro-packages.list $ROOTFS/etc/tazlito
 23.1360 -		# Copy all files from $ADDFILES/rootfs to the rootfs.
 23.1361 -		if [ -d "$ADDFILES/rootfs" ] ; then
 23.1362 -			echo -n "Copying addfiles content to the rootfs... "
 23.1363 -			cp -a $ADDFILES/rootfs/* $ROOTFS
 23.1364 -			status
 23.1365 -		fi
 23.1366 -		echo "Root file system is generated..."
 23.1367 -		# Root CD part.
 23.1368 -		echo -n "Preparing the rootcd directory..."
 23.1369 -		mkdir -p $ROOTCD
 23.1370 -		status
 23.1371 -		# Move the boot dir with the Linux kernel from rootfs.
 23.1372 -		# The boot dir goes directly on the CD.
 23.1373 -		if [ -d "$ROOTFS/boot" ] ; then
 23.1374 -			echo -n "Moving the boot directory..."
 23.1375 -			mv $ROOTFS/boot $ROOTCD
 23.1376 -			cd $ROOTCD/boot
 23.1377 -			ln vmlinuz-* bzImage
 23.1378 -			status
 23.1379 -		fi
 23.1380 -		cd $DISTRO
 23.1381 -		# Copy all files from $ADDFILES/rootcd to the rootcd.
 23.1382 -		if [ -d "$ADDFILES/rootcd" ] ; then
 23.1383 -			echo -n "Copying addfiles content to the rootcd... "
 23.1384 -			cp -a $ADDFILES/rootcd/* $ROOTCD
 23.1385 -			status
 23.1386 -		fi
 23.1387 -		# Execute the distro script (used to perform tasks in the rootfs
 23.1388 -		# before compression. Give rootfs path in arg
 23.1389 -		[ -z $DISTRO_SCRIPT ] && DISTRO_SCRIPT=$TOP_DIR/distro.sh
 23.1390 -		if [ -x $DISTRO_SCRIPT ]; then
 23.1391 -			echo "Executing distro script..."
 23.1392 -			sh $DISTRO_SCRIPT $DISTRO
 23.1393 -		fi
 23.1394 -		if [ -s /etc/tazlito/rootfs.list ]; then
 23.1395 -			[ -f $ROOTCD/boot/isolinux/ifmem.c32 ] ||
 23.1396 -			cp /boot/isolinux/ifmem.c32 $ROOTCD/boot/isolinux
 23.1397 -			n=0
 23.1398 -			last=$ROOTFS
 23.1399 -			while read flavor; do
 23.1400 -				n=$(($n+1))
 23.1401 -				echo "Building $flavor rootfs..."
 23.1402 -				download $flavor.flavor
 23.1403 -				zcat $flavor.flavor | cpio -i $flavor.pkglist
 23.1404 -				sed 's/.*/&.tazpkg/' < $flavor.pkglist \
 23.1405 -					> $DISTRO/list-packages0$n
 23.1406 -				mkdir ${ROOTFS}0$n
 23.1407 -				cd $PACKAGES_REPOSITORY
 23.1408 -				yes y | tazpkg install-list \
 23.1409 -					$DISTRO/list-packages0$n --root=${ROOTFS}0$n
 23.1410 -				rm -rf ${ROOTFS}0$n/boot
 23.1411 -				status
 23.1412 -				cd $DISTRO
 23.1413 -				mv $flavor.pkglist ${ROOTFS}0$n/etc/tazlito/distro-packages.list
 23.1414 -				rm -f $flavor.flavor install-list
 23.1415 -				mergefs ${ROOTFS}0$n $last
 23.1416 -				last=${ROOTFS}0$n
 23.1417 -			done <<EOT
 23.1418 -$(awk '{ for (i = 4; i <= NF; i+=2) print $i; }' < /etc/tazlito/rootfs.list)
 23.1419 -EOT
 23.1420 -			i=$(($n+1))
 23.1421 -			while [ $n -gt 0 ]; do
 23.1422 -				mv ${ROOTFS}0$n ${ROOTFS}$i
 23.1423 -				echo "Compression ${ROOTFS}0$n ($(du -hs ${ROOTFS}$i | awk '{ print $1 }')) ..."
 23.1424 -				gen_initramfs ${ROOTFS}$i
 23.1425 -				n=$(($n-1))
 23.1426 -				i=$(($i-1))
 23.1427 -			done
 23.1428 -			mv $ROOTFS ${ROOTFS}$i
 23.1429 -			gen_initramfs ${ROOTFS}$i
 23.1430 -			update_bootconfig $ROOTCD/boot/isolinux \
 23.1431 -				"$(cat /etc/tazlito/rootfs.list)"
 23.1432 -		else
 23.1433 -			# Initramfs and ISO image stuff.
 23.1434 -			gen_initramfs $ROOTFS
 23.1435 -		fi
 23.1436 -		gen_livecd_isolinux
 23.1437 -		distro_stats
 23.1438 -		cleanup
 23.1439 -		;;
 23.1440 -	clean-distro)
 23.1441 -		# Remove old distro tree.
 23.1442 -		#
 23.1443 -		check_root
 23.1444 -		echo ""
 23.1445 -		echo -e "\033[1mCleaning :\033[0m $DISTRO"
 23.1446 -		echo "================================================================================"
 23.1447 -		if [ -d "$DISTRO" ] ; then
 23.1448 -			if [ -d "$ROOTFS" ] ; then
 23.1449 -				echo -n "Removing the rootfs..."
 23.1450 -				rm -f $DISTRO/$INITRAMFS
 23.1451 -				rm -rf $ROOTFS
 23.1452 -				status
 23.1453 -			fi
 23.1454 -			if [ -d "$ROOTCD" ] ; then
 23.1455 -				echo -n "Removing the rootcd..."
 23.1456 -				rm -rf $ROOTCD
 23.1457 -				status
 23.1458 -			fi
 23.1459 -			echo -n "Removing eventual ISO image..."
 23.1460 -			rm -f $DISTRO/$ISO_NAME.iso
 23.1461 -			rm -f $DISTRO/$ISO_NAME.md5
 23.1462 -			status
 23.1463 -		fi
 23.1464 -		echo "================================================================================"
 23.1465 -		echo ""
 23.1466 -		;;
 23.1467 -	check-distro)
 23.1468 -		# Check for a few LiveCD needed files not installed by packages.
 23.1469 -		#
 23.1470 -		check_rootfs
 23.1471 -		echo ""
 23.1472 -		echo -e "\033[1mChecking distro :\033[0m $ROOTFS"
 23.1473 -		echo "================================================================================"
 23.1474 -		# SliTaz release info.
 23.1475 -		if [ ! -f "$ROOTFS/etc/slitaz-release" ]; then
 23.1476 -			echo "Missing release info : /etc/slitaz-release"
 23.1477 -		else
 23.1478 -			release=`cat $ROOTFS/etc/slitaz-release`
 23.1479 -			echo -n "Release      : $release"
 23.1480 -			status
 23.1481 -		fi
 23.1482 -		# Tazpkg mirror.
 23.1483 -		if [ ! -f "$ROOTFS/var/lib/tazpkg/mirror" ]; then
 23.1484 -			echo -n "Mirror URL   : Missing /var/lib/tazpkg/mirror"
 23.1485 -			todomsg
 23.1486 -		else
 23.1487 -			echo -n "Mirror configuration exists..."
 23.1488 -			status
 23.1489 -		fi
 23.1490 -		# Isolinux msg	
 23.1491 -		if grep -q "cooking-XXXXXXXX" /$ROOTCD/boot/isolinux/isolinux.msg; then
 23.1492 -			echo -n "Isolinux msg : Missing cooking date XXXXXXXX (ex `date +%Y%m%d`)"
 23.1493 -			todomsg
 23.1494 -		else
 23.1495 -			echo -n "Isolinux message seems good..."
 23.1496 -			status
 23.1497 -		fi
 23.1498 -		echo "================================================================================"
 23.1499 -		echo ""
 23.1500 -		;;
 23.1501 -	writeiso)
 23.1502 -				# Writefs to ISO image including /home unlike gen-distro we dont use
 23.1503 -		# packages to generate a rootfs, we build a compressed rootfs with all 
 23.1504 -		# the current filesystem similar to 'tazusb writefs'.
 23.1505 -		#
 23.1506 -		DISTRO="/home/slitaz/distro"
 23.1507 -		ROOTCD="$DISTRO/rootcd"
 23.1508 -		if [ -z $2 ]; then
 23.1509 -			COMPRESSION=none
 23.1510 -		else
 23.1511 -			COMPRESSION=$2
 23.1512 -		fi
 23.1513 -		if [ -z $3 ]; then
 23.1514 -			ISO_NAME="slitaz"
 23.1515 -		else
 23.1516 -			ISO_NAME="$3"
 23.1517 -		fi
 23.1518 -		check_root
 23.1519 -		# Start info
 23.1520 -		echo ""
 23.1521 -		echo -e "\033[1mWrite filesystem to ISO\033[0m
 23.1522 -===============================================================================
 23.1523 -The command writeiso will write the current filesystem into a suitable cpio 
 23.1524 -archive (rootfs.gz) and generate a bootable ISO image (slitaz.iso). 
 23.1525 -
 23.1526 -Archive compression: $COMPRESSION"
 23.1527 -		echo ""
 23.1528 -		
 23.1529 -		# Save some space
 23.1530 -		rm /var/cache/tazpkg/* -r -f
 23.1531 -		rm -rf /home/slitaz/distro
 23.1532 -
 23.1533 -		# Optionally remove sound card selection and screen resolution.
 23.1534 -		echo "Do you wish to remove the sound card and screen config ? "
 23.1535 -		echo -n "Press ENTER to keep or anser (No|yes|exit): "
 23.1536 -		read anser
 23.1537 -		case $anser in
 23.1538 -			e|E|"exit"|Exit)
 23.1539 -				exit 0 ;;
 23.1540 -			y|Y|yes|Yes)
 23.1541 -				echo -n "Removing current sound card and screen configuration..."
 23.1542 -				rm -f /var/lib/sound-card-driver
 23.1543 -				rm -f /etc/asound.state
 23.1544 -				rm -f /etc/X11/screen.conf 
 23.1545 -				rm -f /etc/X11/xorg.conf ;;
 23.1546 -			*)
 23.1547 -				echo -n "Keeping current sound card and screen configuration..." ;;
 23.1548 -		esac
 23.1549 -		status
 23.1550 -		
 23.1551 -		# Create list of files including default user files since it is defined in /etc/passwd
 23.1552 -		# and some new users might have been added.
 23.1553 -		find /bin /etc /init /sbin /var /dev /lib /root /usr /home >/tmp/list
 23.1554 -
 23.1555 -		for dir in /proc /sys /tmp /mnt /media /media/cdrom /media/flash /media/usbdisk
 23.1556 -		do
 23.1557 -			echo $dir >>/tmp/list
 23.1558 -		done
 23.1559 -
 23.1560 -		# Generate initramfs with specified compression and display rootf
 23.1561 -		# size in realtime.
 23.1562 -		rm -f /tmp/rootfs
 23.1563 -		write_initramfs &
 23.1564 -		sleep 2
 23.1565 -		echo -en "\nFilesystem size:"
 23.1566 -		while [ ! -f /tmp/rootfs ]
 23.1567 -		do
 23.1568 -			sleep 1
 23.1569 -			echo -en "\\033[18G`du -sh /rootfs.gz | awk '{print $1}'`    "
 23.1570 -		done
 23.1571 -		echo -e "\n"
 23.1572 -
 23.1573 -		# Move freshly generated rootfs to the cdrom.
 23.1574 -		mkdir -p $ROOTCD/boot
 23.1575 -		mv -f /rootfs.gz $ROOTCD/boot
 23.1576 -		
 23.1577 -		# Now we need the kernel and isolinux files.
 23.1578 -		if mount /dev/cdrom /media/cdrom 2>/dev/null; then
 23.1579 -			cp /media/cdrom/boot/bzImage $ROOTCD/boot
 23.1580 -			cp -a /media/cdrom/boot/isolinux $ROOTCD/boot
 23.1581 -			umount /media/cdrom
 23.1582 -		else
 23.1583 -			echo -e "
 23.1584 -Unable to mount the cdrom to copy the Kernel and needed files. When SliTaz
 23.1585 -is running in RAM the kernel and bootloader files are keeped on the cdrom.
 23.1586 -Please insert a LiveCD or unmount curent cdrom to let Tazlito handle the media.\n"
 23.1587 -			echo -en "----\nENTER to continue..."; read i
 23.1588 -			exit 1
 23.1589 -		fi
 23.1590 -		
 23.1591 -		# Generate the iso image.
 23.1592 -		cd $DISTRO
 23.1593 -		echo "Generating ISO image..."
 23.1594 -		genisoimage -R -o $ISO_NAME.iso -b boot/isolinux/isolinux.bin \
 23.1595 -		-c boot/isolinux/boot.cat -no-emul-boot -boot-load-size 4 \
 23.1596 -		-V "SliTaz" -input-charset iso8859-1 -boot-info-table $ROOTCD
 23.1597 -		if [ -x /usr/bin/isohybrid ]; then
 23.1598 -			echo -n "Creating hybrid ISO..."
 23.1599 -			/usr/bin/isohybrid $ISO_NAME.iso 2> /dev/null
 23.1600 -			status
 23.1601 -		fi
 23.1602 -		echo -n "Creating the ISO md5sum..."
 23.1603 -		md5sum $ISO_NAME.iso > $ISO_NAME.md5
 23.1604 -		status
 23.1605 -
 23.1606 -		echo "==============================================================================="
 23.1607 -		echo "ISO image: `du -sh /home/slitaz/distro/$ISO_NAME.iso`"
 23.1608 -		echo ""
 23.1609 -		echo -n "Exit or burn ISO to cdrom (Exit|burn)? "; read anser
 23.1610 -		case $anser in
 23.1611 -			burn)
 23.1612 -				eject
 23.1613 -				echo -n "Please insert a blank cdrom and press ENTER..."
 23.1614 -				read i && sleep 2
 23.1615 -				tazlito burn-iso /home/slitaz/distro/$ISO_NAME.iso
 23.1616 -				echo -en "----\nENTER to continue..."; read i ;;
 23.1617 -			*)
 23.1618 -				exit 0 ;;
 23.1619 -		esac ;;
 23.1620 -	burn-iso)
 23.1621 -		# Guess cdrom device, ask user and burn the ISO.
 23.1622 -		#
 23.1623 -		check_root
 23.1624 -		DRIVE_NAME=`cat /proc/sys/dev/cdrom/info | grep "drive name" | cut -f 3`
 23.1625 -		DRIVE_SPEED=`cat /proc/sys/dev/cdrom/info | grep "drive speed" | cut -f 3`
 23.1626 -		# We can specify an alternative ISO from the cmdline.
 23.1627 -		if [ -n "$2" ] ; then
 23.1628 -			iso=$2
 23.1629 -		else
 23.1630 -			iso=$DISTRO/$ISO_NAME.iso
 23.1631 -		fi
 23.1632 -		if [ ! -f "$iso" ]; then
 23.1633 -			echo -e "\nUnable to find ISO : $iso\n"
 23.1634 -			exit 0
 23.1635 -		fi
 23.1636 -		echo ""
 23.1637 -		echo -e "\033[1mTazlito burn ISO\033[0m "
 23.1638 -		echo "================================================================================"
 23.1639 -		echo "Cdrom device  : /dev/$DRIVE_NAME"
 23.1640 -		echo "Drive speed   : $DRIVE_SPEED"
 23.1641 -		echo "ISO image     : $iso"
 23.1642 -		echo "================================================================================"
 23.1643 -		echo ""
 23.1644 -		yesorno "Burn ISO image (y/N) ? "
 23.1645 -		if [ "$answer" == "y" ]; then
 23.1646 -			echo ""
 23.1647 -			echo "Starting Wodim to burn the iso..." && sleep 2
 23.1648 -			echo "================================================================================"
 23.1649 -			wodim speed=$DRIVE_SPEED dev=/dev/$DRIVE_NAME $iso
 23.1650 -			echo "================================================================================"
 23.1651 -			echo "ISO image is burned to cdrom."
 23.1652 -		else
 23.1653 -			echo -e "\nExiting. No ISO burned."
 23.1654 -		fi
 23.1655 -		echo ""
 23.1656 -		;;
 23.1657 -	merge)
 23.1658 -		# Merge multiple rootfs into one iso.
 23.1659 -		#
 23.1660 -		if [ -z "$2" ]; then
 23.1661 -			cat << EOT
 23.1662 -Usage: tazlito merge size1 iso size2 rootfs2 [sizeN rootfsN]...
 23.1663 -
 23.1664 -Merge multiple rootfs into one iso. Rootfs are like russian dolls
 23.1665 -i.e: rootfsN is a subset of rootfsN-1
 23.1666 -rootfs1 is found in iso, sizeN is the RAM size need to launch rootfsN.
 23.1667 -The boot loader will select the rootfs according to the RAM size detected.
 23.1668 -
 23.1669 -Example: 
 23.1670 -$ tazlito merge 160M slitaz-core.iso 96M rootfs-justx.gz 32M rootfs-base.gz
 23.1671 -
 23.1672 -Will start slitaz-core with 160M+ RAM, slitaz-justX with 96M-160M RAM,
 23.1673 -slitaz-base with 32M-96M RAM and display an error message if RAM < 32M.
 23.1674 -EOT
 23.1675 -			exit 2
 23.1676 -		fi
 23.1677 -
 23.1678 -		shift	# skip merge
 23.1679 -		append="$1 slitaz1"
 23.1680 -		shift	# skip size1
 23.1681 -		mkdir -p $TMP_DIR/mnt $TMP_DIR/rootfs1
 23.1682 -
 23.1683 -		ISO=$1.merged
 23.1684 -		# Extract filesystems
 23.1685 -		echo -n "Mounting $1"
 23.1686 -		mount -o loop,ro $1 $TMP_DIR/mnt 2> /dev/null
 23.1687 -		status || cleanup_merge
 23.1688 -		cp -a $TMP_DIR/mnt $TMP_DIR/iso
 23.1689 -		rm -f $TMP_DIR/iso/boot/bzImage
 23.1690 -		ln $TMP_DIR/iso/boot/vmlinuz* $TMP_DIR/iso/boot/bzImage
 23.1691 -		umount -d $TMP_DIR/mnt
 23.1692 -		if [ -f $TMP_DIR/iso/boot/rootfs1.gz ]; then
 23.1693 -			echo "$1 is already a merged iso. Aborting."
 23.1694 -			cleanup_merge
 23.1695 -		fi
 23.1696 -		if [ ! -f $TMP_DIR/iso/boot/isolinux/ifmem.c32 ]; then
 23.1697 -			if [ ! -f /boot/isolinux/ifmem.c32 ]; then
 23.1698 -				cat <<EOT
 23.1699 -No file /boot/isolinux/ifmem.c32
 23.1700 -Please install syslinux package !
 23.1701 -EOT
 23.1702 -				rm -rf $TMP_DIR
 23.1703 -				exit 1
 23.1704 -			fi
 23.1705 -			cp /boot/isolinux/ifmem.c32 $TMP_DIR/iso/boot/isolinux
 23.1706 -		fi
 23.1707 -		
 23.1708 -		echo -n "Extracting iso/rootfs.gz"
 23.1709 -		extract_rootfs $TMP_DIR/iso/boot/rootfs.gz $TMP_DIR/rootfs1 &&
 23.1710 -		[ -d $TMP_DIR/rootfs1/etc ]
 23.1711 -		status || cleanup_merge
 23.1712 -		n=1
 23.1713 -		while [ -n "$2" ]; do
 23.1714 -			shift	# skip rootfs N-1
 23.1715 -			p=$n
 23.1716 -			n=$(($n + 1))
 23.1717 -			append="$append $1 slitaz$n"
 23.1718 -			shift	# skip size N
 23.1719 -			mkdir -p $TMP_DIR/rootfs$n
 23.1720 -			echo -n "Extracting $1"
 23.1721 -			extract_rootfs $1 $TMP_DIR/rootfs$n &&
 23.1722 -			[ -d $TMP_DIR/rootfs$n/etc ]
 23.1723 -			status || cleanup_merge
 23.1724 -			mergefs $TMP_DIR/rootfs$n $TMP_DIR/rootfs$p
 23.1725 -			echo "Creating rootfs$p.gz"
 23.1726 -			pack_rootfs $TMP_DIR/rootfs$p $TMP_DIR/iso/boot/rootfs$p.gz
 23.1727 -			status
 23.1728 -		done
 23.1729 -		echo "Creating rootfs$n.gz"
 23.1730 -		pack_rootfs $TMP_DIR/rootfs$n $TMP_DIR/iso/boot/rootfs$n.gz
 23.1731 -		status
 23.1732 -		rm -f $TMP_DIR/iso/boot/rootfs.gz
 23.1733 -		update_bootconfig $TMP_DIR/iso/boot/isolinux "$append"
 23.1734 -		echo "Generating $ISO"
 23.1735 -		create_iso $ISO $TMP_DIR/iso
 23.1736 -		rm -rf $TMP_DIR
 23.1737 -		;;
 23.1738 -
 23.1739 -	repack)
 23.1740 -		# Repack an iso with maximum lzma compression ratio.
 23.1741 -		#
 23.1742 -
 23.1743 -		ISO=$2
 23.1744 -
 23.1745 -		mkdir -p $TMP_DIR/mnt
 23.1746 -		# Extract filesystems
 23.1747 -		echo -n "Mounting $ISO"
 23.1748 -		mount -o loop,ro $ISO $TMP_DIR/mnt 2> /dev/null
 23.1749 -		status || cleanup_merge
 23.1750 -		cp -a $TMP_DIR/mnt $TMP_DIR/iso
 23.1751 -		umount -d $TMP_DIR/mnt
 23.1752 -		
 23.1753 -		for i in $TMP_DIR/iso/boot/rootfs* ; do
 23.1754 -			echo -n "Repacking $(basename $i)"
 23.1755 -			(zcat $i || unlzma -c $i || cat $i) \
 23.1756 -				2>/dev/null > $TMP_DIR/rootfs
 23.1757 -			lzma e $TMP_DIR/rootfs $i \
 23.1758 -				 $(lzma_switches $TMP_DIR/rootfs)
 23.1759 -			status
 23.1760 -		done
 23.1761 -		
 23.1762 -		echo "Generating $ISO"
 23.1763 -		create_iso $ISO $TMP_DIR/iso
 23.1764 -		rm -rf $TMP_DIR ;;
 23.1765 -	
 23.1766 -	frugal-install|-fi)
 23.1767 -		ISO_IMAGE="$2"
 23.1768 -		echo ""
 23.1769 -		mkdir -p /boot/frugal
 23.1770 -		if [ -f "$ISO_IMAGE" ]; then
 23.1771 -			echo -n "Using ISO image: $ISO_IMAGE"
 23.1772 -			mkdir -p /tmp/iso && mount -o loop $ISO_IMAGE /tmp/iso
 23.1773 -			status
 23.1774 -			echo -n "Installing the Kernel and rootfs..."
 23.1775 -			cp -a /tmp/iso/boot/bzImage /boot/frugal
 23.1776 -			cp -a /tmp/iso/boot/rootfs.gz /boot/frugal
 23.1777 -			umount /tmp/iso
 23.1778 -			status
 23.1779 -		else
 23.1780 -			echo -n "Using distro: $DISTRO"
 23.1781 -			cd $DISTRO && status
 23.1782 -			echo -n "Installing the Kernel and rootfs..."
 23.1783 -			cp -a $DISTRO/rootcd/boot/bzImage /boot/frugal
 23.1784 -			cp -a $DISTRO/rootcd/boot/rootfs.gz /boot/frugal
 23.1785 -			status
 23.1786 -		fi
 23.1787 -		# Grub entry
 23.1788 -		if ! grep -q "^kernel /boot/frugal/bzImage" /boot/grub/menu.lst; then
 23.1789 -			echo -n "Configuring GRUB menu list..."
 23.1790 -			cat >> /boot/grub/menu.lst << EOT
 23.1791 -title SliTaz GNU/Linux (frugal)
 23.1792 -root (hd0,0)
 23.1793 -kernel /boot/frugal/bzImage root=/dev/null
 23.1794 -initrd /boot/frugal/rootfs.gz
 23.1795 -EOT
 23.1796 -		else
 23.1797 -			echo -n "GRUB menu list is up-to-date..."
 23.1798 -		fi
 23.1799 -		status
 23.1800 -		echo "" ;;
 23.1801 -	
 23.1802 -	emu-iso)
 23.1803 -		# Emulate an ISO image with Qemu.
 23.1804 -		if [ -n "$2" ] ; then
 23.1805 -			iso=$2
 23.1806 -		else
 23.1807 -			iso=$DISTRO/$ISO_NAME.iso
 23.1808 -		fi
 23.1809 -		if [ ! -f "$iso" ]; then
 23.1810 -			echo -e "\nUnable to find ISO : $iso\n"
 23.1811 -			exit 0
 23.1812 -		fi
 23.1813 -		if [ ! -x "/usr/bin/qemu" ]; then
 23.1814 -			echo -e "\nUnable to find Qemu binary. Please install: qemu\n"
 23.1815 -			exit 0
 23.1816 -		fi
 23.1817 -		echo -e "\nStarting Qemu emulator:\n"
 23.1818 -		echo -e "qemu $QEMU_OPTS $iso\n"
 23.1819 -		qemu $QEMU_OPTS $iso ;;
 23.1820 -
 23.1821 -	usage|*)
 23.1822 -		# Clear and print usage also for all unknown commands.
 23.1823 -		#
 23.1824 -		clear
 23.1825 -		usage ;;
 23.1826 -esac
 23.1827 -
 23.1828 -exit 0
    24.1 --- a/xfce/rootfs/usr/bin/tazlitobox	Tue Apr 10 13:00:52 2012 +0200
    24.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    24.3 @@ -1,445 +0,0 @@
    24.4 -#!/bin/sh
    24.5 -# 
    24.6 -# Gtkdialog box for Tazlito - SliTaz Live Tool.
    24.7 -# Tabs are used for ident ans all action should go into functions to
    24.8 -# separate GUI and commands.
    24.9 -#
   24.10 -# (C) GNU gpl v3 - SliTaz GNU/Linux 2010.
   24.11 -#
   24.12 -VERSION=2.2
   24.13 -
   24.14 -export BIN=$0
   24.15 -
   24.16 -# Check if user is root.
   24.17 -check_root()
   24.18 -{
   24.19 -	if test $(id -u) != 0 ; then
   24.20 -		echo -e "
   24.21 -You must be root to run `basename $0`. Please type 'su' and 
   24.22 -root password to become super-user.\n"
   24.23 -		exit 0
   24.24 -	fi
   24.25 -}
   24.26 -
   24.27 -# We need to parse flavors.list for GTK tree.
   24.28 -list_flavors()
   24.29 -{
   24.30 -	tazlito list-flavors | grep ^[a-z] | while read line
   24.31 -	do		
   24.32 -		info=`echo -n $line | awk '{print $1 " " $2 " " $3}'`
   24.33 -		printinfo=`echo -n $line | awk '{print $1 "|" $2 "|" $3}'`
   24.34 -		echo "$printinfo|`echo $line | sed s/\"$info\"//`"
   24.35 -	done
   24.36 -}
   24.37 -
   24.38 -recharge_list()
   24.39 -{
   24.40 -	xterm -geometry 90x14 \
   24.41 -		-title "list-flavors --recharge" \
   24.42 -		-e "tazlito list-flavors --recharge | grep ^[a-z] && sleep 2"
   24.43 -}
   24.44 -
   24.45 -# When using gen-liveflavor, gen-flavor or gen-distro, user can put some
   24.46 -# addfiles copied into the rootfs.
   24.47 -addfiles_action()
   24.48 -{
   24.49 -	cd /home/slitaz
   24.50 -	mkdir -p distro/addfiles/rootfs/usr/share/images
   24.51 -	mkdir -p distro/addfiles/rootcd
   24.52 -	file-manager distro/addfiles &
   24.53 -}
   24.54 -
   24.55 -writeiso_action()
   24.56 -{
   24.57 -	xterm -geometry 80x16 \
   24.58 -		-title "writeiso" \
   24.59 -		-e "tazlito writeiso $COMPRESSION"
   24.60 -}
   24.61 -
   24.62 -gen_liveflavor_action()
   24.63 -{
   24.64 -	cd /home/slitaz
   24.65 -	sed -i "s/ISO_NAME=.*/ISO_NAME=\"slitaz-$GEN_LIVEFLAVOR_NAME\"/" \
   24.66 -		/etc/tazlito/tazlito.conf
   24.67 -	xterm -geometry 80x16 \
   24.68 -		-title "gen-liveflavor" \
   24.69 -		-e "tazlito gen-liveflavor $GEN_LIVEFLAVOR_NAME && echo -e \"----\nENTER to continue...\" && read close"
   24.70 -}
   24.71 -
   24.72 -clean_distro_action()
   24.73 -{
   24.74 -	cd /home/slitaz
   24.75 -	xterm -geometry 80x16 \
   24.76 -		-title "clean-distro" \
   24.77 -		-e "tazlito clean-distro && sleep 1"
   24.78 -}
   24.79 -
   24.80 -get_flavor_action()
   24.81 -{
   24.82 -	cd /home/slitaz
   24.83 -	xterm -geometry 80x16 \
   24.84 -		-title "get-flavor $COMMUNITY_FLAVOR" \
   24.85 -		-e "tazlito get-flavor $COMMUNITY_FLAVOR && echo -e \"----\nENTER to continue...\" && read close"
   24.86 -}
   24.87 -
   24.88 -gen_distro_action()
   24.89 -{
   24.90 -	cd /home/slitaz
   24.91 -	xterm -geometry 80x16 \
   24.92 -		-title "gen-distro" \
   24.93 -		-e "tazlito gen-distro && echo -e \"----\nENTER to continue...\" && read close"
   24.94 -}
   24.95 -
   24.96 -gen_flavor_action()
   24.97 -{
   24.98 -	cd /home/slitaz
   24.99 -	xterm -geometry 80x16 \
  24.100 -		-title "gen-flavor $GEN_FLAVOR_NAME" \
  24.101 -		-e "tazlito gen-flavor $GEN_FLAVOR_NAME && echo -e \"----\nENTER to continue...\" && read close"
  24.102 -}
  24.103 -
  24.104 -edit_distro_script()
  24.105 -{
  24.106 -	[ ! -f $DISTRO_SCRIPT ] && echo "#!/bin/sh" > $DISTRO_SCRIPT
  24.107 -	chmod +x $DISTRO_SCRIPT
  24.108 -	editor $DISTRO_SCRIPT
  24.109 -}
  24.110 -
  24.111 -# Boxes
  24.112 -
  24.113 -export HELP='
  24.114 -<window title="Tazlito Box - Help" icon-name="media-cdrom">
  24.115 -<vbox>
  24.116 -	<text use-markup="true">
  24.117 -		<label>"
  24.118 -<b>Tazlito Box - Help</b>"
  24.119 -		</label>
  24.120 -	</text>
  24.121 -	
  24.122 -	<frame Overview>
  24.123 -		<text wrap="true" width-chars="52" use-markup="true">
  24.124 -			<label>
  24.125 -"
  24.126 -Tazlito Box is a tiny interface to the SliTaz Live Tool aka Tazlito.
  24.127 -You can simply generate a LiveCD in a few minutes, using your
  24.128 -own flavor or one from the SliTaz community. Tazlito can also 
  24.129 -generate a LiveCD flavor using all of the currently installed 
  24.130 -packages. Tazlito commands are executed in a XTerm, you can 
  24.131 -press ENTER or the mouse to close the window.
  24.132 -"
  24.133 -			</label>
  24.134 -		</text>
  24.135 -	</frame>
  24.136 -	
  24.137 -	<frame Default paths>
  24.138 -		<text wrap="true" width-chars="50" use-markup="true">
  24.139 -			<label>
  24.140 -"
  24.141 -Distro      : /home/slitaz/distro
  24.142 -Flavors    : /home/slitaz/flavors
  24.143 -Packages : /home/slitaz/packages
  24.144 -"
  24.145 -			</label>
  24.146 -		</text>
  24.147 -	</frame>
  24.148 -	
  24.149 -	<hbox>
  24.150 -		<button>
  24.151 -			<input file icon="exit"></input>
  24.152 -			<action type="closewindow">HELP</action>
  24.153 -		</button>
  24.154 -	</hbox>
  24.155 -
  24.156 -</vbox>
  24.157 -</window>
  24.158 -'
  24.159 -
  24.160 -# List all flavors on the mirror.
  24.161 -export LIST_FLAVORS_BOX='
  24.162 -<window title="Community flavors list" icon-name="tazlito">
  24.163 -<vbox>
  24.164 -	<tree>
  24.165 -		<width>500</width><height>200</height>
  24.166 -		<variable>COMMUNITY_FLAVOR</variable>
  24.167 -		<label>Name|ISO|Rootfs|Description</label>
  24.168 -		<input exported_column="0">$BIN list_flavors</input>
  24.169 -	</tree>
  24.170 -	<hbox>
  24.171 -		<button>
  24.172 -			<label>Recharge list</label>
  24.173 -			<input file icon="reload"></input>
  24.174 -			<action>$BIN recharge_list</action>
  24.175 -			<action>refresh:COMMUNITY_FLAVOR</action>
  24.176 -		</button>
  24.177 -		<button>
  24.178 -			<label>Exit</label>
  24.179 -			<input file icon="exit"></input>
  24.180 -			<action type="closewindow">LIST_FLAVORS_BOX</action>
  24.181 -		</button>
  24.182 -	</hbox>
  24.183 -</vbox>
  24.184 -</window>'
  24.185 -
  24.186 -# Execute tazlito commands in a XTerm. Notebook: tab-pos="GTK_POS_LEFT"
  24.187 -export TAZLITO_BOX='
  24.188 -<window title="Tazlito Box" icon-name="media-cdrom">
  24.189 -<vbox>
  24.190 -
  24.191 -	<hbox>
  24.192 -	<text use-markup="true">
  24.193 -		<label>"<b>SliTaz Live Tool</b>"</label>
  24.194 -	</text>
  24.195 -	<pixmap>
  24.196 -		<input file>/usr/share/pixmaps/tazlito.png</input>
  24.197 -	</pixmap>
  24.198 -	</hbox>
  24.199 -
  24.200 -	<notebook labels="Writeiso|Live flavor|Flavors list|Gen flavor|Configuration">
  24.201 -
  24.202 -	<frame Filesystem to ISO>
  24.203 -
  24.204 -	<text wrap="true" width-chars="60" use-markup="true">
  24.205 -		<label>
  24.206 -"
  24.207 -Writeiso will generate an ISO image of the current filesystem as
  24.208 -is, including the /home directory. It is an easy way to remaster a
  24.209 -SliTaz Live system, you just have to: boot, modify, writeiso.
  24.210 -"
  24.211 -		</label>
  24.212 -	</text>
  24.213 -
  24.214 -	<hbox>
  24.215 -		<text use-markup="true">
  24.216 -			<label>"<b>Compression (gzip,lzma,none):</b>"</label>
  24.217 -		</text>
  24.218 -		<entry>
  24.219 -			<default>gzip</default>
  24.220 -			<variable>COMPRESSION</variable>
  24.221 -		</entry>
  24.222 -	</hbox>
  24.223 -
  24.224 -	<hbox>
  24.225 -		<button>
  24.226 -			<label>Writeiso</label>
  24.227 -			<input file icon="forward"></input>
  24.228 -			<action>$BIN writeiso_action</action>
  24.229 -		</button>
  24.230 -	</hbox>
  24.231 -	
  24.232 -	</frame>
  24.233 -	
  24.234 -	<frame Current packages selection>
  24.235 -	
  24.236 -	<text wrap="true" width-chars="60" use-markup="true">
  24.237 -		<label>
  24.238 -"
  24.239 -Gen Live flavor will create a LiveCD based on all the currently
  24.240 -installed packages. To build the rootfs and ISO image it will use
  24.241 -original SliTaz packages. Some addfiles can be copied before
  24.242 -gen distro.
  24.243 -"
  24.244 -		</label>
  24.245 -	</text>
  24.246 -
  24.247 -	<hbox>
  24.248 -		<text use-markup="true">
  24.249 -			<label>"<b>Flavor name :</b>"</label>
  24.250 -		</text>
  24.251 -		<entry>
  24.252 -			<default>slitaz</default>
  24.253 -			<variable>GEN_LIVEFLAVOR_NAME</variable>
  24.254 -		</entry>
  24.255 -	</hbox>
  24.256 -
  24.257 -	<hbox>
  24.258 -		<button>
  24.259 -			<label>Addfiles</label>
  24.260 -			<input file icon="gtk-open"></input>
  24.261 -			<action>$BIN addfiles_action</action>
  24.262 -		</button>
  24.263 -		<button>
  24.264 -			<label>Gen distro</label>
  24.265 -			<input file icon="forward"></input>
  24.266 -			<action>$BIN gen_liveflavor_action</action>
  24.267 -		</button>
  24.268 -		<button>
  24.269 -			<label>Clean distro</label>
  24.270 -			<input file icon="edit-clear"></input>
  24.271 -			<action>$BIN clean_distro_action</action>
  24.272 -		</button>
  24.273 -	</hbox>
  24.274 -
  24.275 -	</frame>
  24.276 -	
  24.277 -	<frame Community and personal flavors>
  24.278 -	
  24.279 -	<text wrap="true" width-chars="60" use-markup="true">
  24.280 -		<label>
  24.281 -"
  24.282 -Get and build preconfigured flavors from the community. Flavors
  24.283 -llist can be recharged from SliTaz mirror. Some addfiles can be
  24.284 -copied before generating the distro.
  24.285 -"
  24.286 -		</label>
  24.287 -	</text>
  24.288 -
  24.289 -	<hbox>
  24.290 -		<text use-markup="true">
  24.291 -			<label>"<b>Flavor :</b>"</label>
  24.292 -		</text>
  24.293 -		<entry>
  24.294 -			<default>core</default>
  24.295 -			<variable>COMMUNITY_FLAVOR</variable>
  24.296 -		</entry>
  24.297 -		<button>
  24.298 -			<label>List flavors</label>
  24.299 -			<input file icon="media-cdrom"></input>
  24.300 -			<action type="launch">LIST_FLAVORS_BOX</action>
  24.301 -		</button>
  24.302 -	</hbox>
  24.303 -
  24.304 -	<hbox>
  24.305 -		<button>
  24.306 -			<label>Get flavor</label>
  24.307 -			<input file icon="forward"></input>
  24.308 -			<action>$BIN get_flavor_action</action>
  24.309 -		</button>
  24.310 -		<button>
  24.311 -			<label>Addfiles</label>
  24.312 -			<input file icon="gtk-open"></input>
  24.313 -			<action>$BIN addfiles_action</action>
  24.314 -		</button>
  24.315 -		<button>
  24.316 -			<label>Gen distro</label>
  24.317 -			<input file icon="forward"></input>
  24.318 -			<action>$BIN gen_distro_action</action>
  24.319 -		</button>
  24.320 -		<button>
  24.321 -			<label>Clean distro</label>
  24.322 -			<input file icon="edit-clear"></input>
  24.323 -			<action>$BIN clean_distro_action</action>
  24.324 -		</button>
  24.325 -	</hbox>
  24.326 -
  24.327 -	</frame>
  24.328 -	<frame Generate a flavor>
  24.329 -
  24.330 -	<text wrap="true" width-chars="60" use-markup="true">
  24.331 -		<label>
  24.332 -"
  24.333 -Gen Flavor will generate a new flavor file based on rootfs in 
  24.334 -/home/slitaz/distro. All addfiles will be included in the flavor file.
  24.335 -"
  24.336 -		</label>
  24.337 -	</text>
  24.338 -
  24.339 -	<hbox>
  24.340 -		<text use-markup="true">
  24.341 -			<label>"<b>New flavor :</b>"</label>
  24.342 -		</text>
  24.343 -		<entry>
  24.344 -			<default>slitaz</default>
  24.345 -			<variable>GEN_FLAVOR_NAME</variable>
  24.346 -		</entry>
  24.347 -	</hbox>
  24.348 -	
  24.349 -	<hbox>
  24.350 -		<button>
  24.351 -			<label>Addfiles</label>
  24.352 -			<input file icon="gtk-open"></input>
  24.353 -			<action>$BIN addfiles_action</action>
  24.354 -		</button>
  24.355 -		<button>
  24.356 -			<label>Gen new flavor</label>
  24.357 -			<input file icon="forward"></input>
  24.358 -			<action>$BIN gen_flavor_action</action>
  24.359 -		</button>
  24.360 -	</hbox>
  24.361 -
  24.362 -	</frame>
  24.363 -	
  24.364 -	<frame Flavor config and packages list>
  24.365 -
  24.366 -	<text wrap="true" width-chars="60" use-markup="true">
  24.367 -		<label>
  24.368 -"
  24.369 -Before editing files you must have a flavor description. Distro
  24.370 -script can be used to perform actions into the rootfs before
  24.371 -compression.
  24.372 -"
  24.373 -		</label>
  24.374 -	</text>
  24.375 -
  24.376 -	<hbox>
  24.377 -		<text use-markup="true">
  24.378 -			<label>"<b>Flavor config :</b>"</label>
  24.379 -		</text>
  24.380 -		<entry>
  24.381 -			<default>/home/slitaz/tazlito.conf</default>
  24.382 -			<variable>CONFIG_FILE</variable>
  24.383 -		</entry>
  24.384 -		<button>
  24.385 -			<input file icon="accessories-text-editor"></input>
  24.386 -			<action>editor $CONFIG_FILE</action>
  24.387 -		</button>
  24.388 -	</hbox>
  24.389 -
  24.390 -	<hbox>
  24.391 -		<text use-markup="true">
  24.392 -			<label>"<b>Packages list :</b>"</label>
  24.393 -		</text>
  24.394 -		<entry>
  24.395 -			<default>/home/slitaz/distro-packages.list</default>
  24.396 -			<variable>PKGS_LIST</variable>
  24.397 -		</entry>
  24.398 -		<button>
  24.399 -			<input file icon="accessories-text-editor"></input>
  24.400 -			<action>editor $PKGS_LIST</action>
  24.401 -		</button>
  24.402 -	</hbox>
  24.403 -
  24.404 -	<hbox>
  24.405 -		<text use-markup="true">
  24.406 -			<label>"<b>Distro script :</b> "</label>
  24.407 -		</text>
  24.408 -		<entry>
  24.409 -			<default>/home/slitaz/distro.sh</default>
  24.410 -			<variable>DISTRO_SCRIPT</variable>
  24.411 -		</entry>
  24.412 -		<button>
  24.413 -			<input file icon="accessories-text-editor"></input>
  24.414 -			<action>$BIN edit_distro_script</action>
  24.415 -		</button>
  24.416 -	</hbox>
  24.417 -
  24.418 -	</frame>
  24.419 -
  24.420 -	</notebook>
  24.421 -
  24.422 -	<hbox>
  24.423 -		<button help>
  24.424 -			<input file icon="help-browser"></input>
  24.425 -			<action type="launch">HELP</action>
  24.426 -		</button>
  24.427 -		<button>
  24.428 -			<label>Exit</label>
  24.429 -			<input file icon="exit"></input>
  24.430 -			<action type="exit">Exit</action>
  24.431 -		</button>
  24.432 -	</hbox>
  24.433 -
  24.434 -</vbox>
  24.435 -</window>
  24.436 -'
  24.437 -
  24.438 -case $1 in
  24.439 -	*_*)
  24.440 -		# Exec all function called by args (must have an underscore).
  24.441 -		$1 ;;
  24.442 -	*)
  24.443 -		# Tazlitobox action.
  24.444 -		check_root
  24.445 -		gtkdialog --center --program=TAZLITO_BOX ;;
  24.446 -esac
  24.447 -
  24.448 -exit 0
    25.1 --- a/xfce/rootfs/usr/bin/wifibox	Tue Apr 10 13:00:52 2012 +0200
    25.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    25.3 @@ -1,634 +0,0 @@
    25.4 -#!/bin/sh
    25.5 -#
    25.6 -# GTKdialog interface to manage wireless connections in a simple way.
    25.7 -# Use tabs to indent, split commands from the GUI and use functions.
    25.8 -# Favorite networks are also supported
    25.9 -#
   25.10 -# (c) 2010 SliTaz GNU/Linux - GNU gpl v3
   25.11 -#
   25.12 -VERSION=20100118
   25.13 -
   25.14 -# Export script path and others if needed so we can use them in 'quote'.
   25.15 -export BIN=$0
   25.16 -export FAVORITES_WIFI=/etc/wireless
   25.17 -. /etc/network.conf
   25.18 -
   25.19 -# Wifibox is only for root.
   25.20 -if test $(id -u) != 0 ; then
   25.21 -	exec subox wifibox
   25.22 -	exit 0
   25.23 -fi
   25.24 -
   25.25 -# Sanity check
   25.26 -[ -x /usr/sbin/iwconfig ] || tazpkg get-install wireless_tools
   25.27 -[ -d $FAVORITES_WIFI ] || mkdir -p $FAVORITES_WIFI
   25.28 -rm -f $FAVORITES_WIFI/any.conf
   25.29 -
   25.30 -# Catch ESSIDs and format output for GTK tree. We get the list of
   25.31 -# networks by Cell and without spaces.
   25.32 -detect_wifi_networks()
   25.33 -{
   25.34 -	desktopbox notify "Scanning Wireless interface: $WIFI_INTERFACE" &
   25.35 -	if [ -d /sys/class/net/$WIFI_INTERFACE/wireless ]; then
   25.36 -		ifconfig $WIFI_INTERFACE up
   25.37 -		for i in `iwlist $WIFI_INTERFACE scan | sed s/"Cell "/Cell-/ | grep "Cell-" | awk '{print $1}'`
   25.38 -		do
   25.39 -			SCAN=`iwlist $WIFI_INTERFACE scan last | \
   25.40 -				awk '/(Cell|ESS|Qual|Encry|IE: WPA)/ {print}' | \
   25.41 -				sed s/"Cell "/Cell-/ | grep -A 5 "$i"`
   25.42 -			ESSID=`echo $SCAN | cut -d '"' -f 2`
   25.43 -			if echo "$SCAN" | grep -q Quality; then
   25.44 -				QUALITY=`echo $SCAN | sed 's/.*Quality=\([^ ]*\).*/\1/' | sed 's/.*Quality:\([^ ]*\).*/\1/'`
   25.45 -			else
   25.46 -				QUALITY="-"
   25.47 -			fi
   25.48 -			ENCRYPTION=`echo $SCAN | sed 's/.*key:\([^ ]*\).*/\1/'`
   25.49 -			# Check encryption type
   25.50 -			if echo "$SCAN" | grep -q WPA; then
   25.51 -				ENCRYPTION="${ENCRYPTION} (WPA)"
   25.52 -			fi
   25.53 -			# Connected or not connected...
   25.54 -			if ifconfig | grep -A 1 $WIFI_INTERFACE | \
   25.55 -				grep -q inet && iwconfig $WIFI_INTERFACE | \
   25.56 -				grep ESSID | grep -q -w "$ESSID"; then
   25.57 -				STATUS=connected
   25.58 -			else
   25.59 -				STATUS="-"
   25.60 -			fi
   25.61 -			echo -n ""
   25.62 -			echo "$ESSID | $QUALITY | $ENCRYPTION | $STATUS"
   25.63 -		done
   25.64 -	fi
   25.65 -}
   25.66 -
   25.67 -# cmdline functions
   25.68 -
   25.69 -# Toggle Software RF Switch on some laptops
   25.70 -set_rfswitch()
   25.71 -{
   25.72 -	for i in /proc/driver/acerhk/wirelessled /proc/acpi/asus/wled ; do
   25.73 -		[ -e $i ] && echo $1 > $i
   25.74 -	done
   25.75 -}
   25.76 -
   25.77 -# Configure /etc/network.conf and restart connection with init script.
   25.78 -start_wifi_connection()
   25.79 -{
   25.80 -	# Get tmp config created by connect_to_essid() if exists and set 
   25.81 -	# empty value to clean config file.
   25.82 -	if [ -f /tmp/wifi.conf ]; then
   25.83 -		. /tmp/wifi.conf
   25.84 -		WIFI_MODE=""
   25.85 -		WIFI_IWCONFIG_ARGS=""
   25.86 -		WIFI_CHANNEL=""
   25.87 -	fi
   25.88 -	sed -i "s/`grep ^WIFI= /etc/network.conf`/WIFI=\"yes\"/" \
   25.89 -		/etc/network.conf
   25.90 -	sed -i "s/`grep ^WIFI_INTERFACE= /etc/network.conf`/WIFI_INTERFACE=\"$WIFI_INTERFACE\"/" \
   25.91 -		/etc/network.conf
   25.92 -	sed -i "s/`grep ^WIFI_ESSID= /etc/network.conf`/WIFI_ESSID=\"$WIFI_ESSID\"/" \
   25.93 -		/etc/network.conf
   25.94 -	sed -i "s/`grep ^WIFI_KEY= /etc/network.conf`/WIFI_KEY=\"$WIFI_KEY\"/" \
   25.95 -		/etc/network.conf
   25.96 -	sed -i "s/`grep ^WIFI_MODE= /etc/network.conf`/WIFI_MODE=\"$WIFI_MODE\"/" \
   25.97 -		/etc/network.conf
   25.98 -	sed -i "s/`grep ^WIFI_IWCONFIG_ARGS= /etc/network.conf`/WIFI_IWCONFIG_ARGS=\"$WIFI_IWCONFIG_ARGS\"/" \
   25.99 -		/etc/network.conf
  25.100 -	sed -i "s/`grep ^WIFI_KEY_TYPE= /etc/network.conf`/WIFI_KEY_TYPE=\"$WIFI_KEY_TYPE\"/" \
  25.101 -		/etc/network.conf
  25.102 -	sed -i "s/`grep ^WIFI_CHANNEL= /etc/network.conf`/WIFI_CHANNEL=\"$WIFI_CHANNEL\"/" \
  25.103 -		/etc/network.conf	
  25.104 -	[ -s /var/run/udhcpc.$WIFI_INTERFACE.pid ] && kill `cat /var/run/udhcpc.$WIFI_INTERFACE.pid`
  25.105 -	ifconfig $WIFI_INTERFACE down
  25.106 -	set_rfswitch 1 
  25.107 -	iwconfig $WIFI_INTERFACE txpower auto
  25.108 -	/etc/init.d/network.sh restart
  25.109 -	# Remove tmp file (could be used to have wireless profiles)
  25.110 -	rm -f /tmp/wifi.conf
  25.111 -	sleep 2
  25.112 -}
  25.113 -
  25.114 -# We must sleep 4 sec to refresh networks list.
  25.115 -stop_wifi_connexion()
  25.116 -{
  25.117 -	sed -i s/`grep ^WIFI= /etc/network.conf`/WIFI=\"no\"/ \
  25.118 -		/etc/network.conf
  25.119 -	[ -x /etc/init.d/wpa_supplicant ] && /etc/init.d/wpa_supplicant stop
  25.120 -	ifconfig $WIFI_INTERFACE down
  25.121 -	iwconfig $WIFI_INTERFACE txpower off
  25.122 -	set_rfswitch 0 
  25.123 -	[ -s /var/run/udhcpc.$WIFI_INTERFACE.pid ] && kill `cat /var/run/udhcpc.$WIFI_INTERFACE.pid`
  25.124 -	sleep 2
  25.125 -}
  25.126 -
  25.127 -# Favorite wireless networks use only 3 values: essid. key and type of
  25.128 -# key
  25.129 -favorites_wifi_list()
  25.130 -{
  25.131 -	for i in $FAVORITES_WIFI/*.conf
  25.132 -	do
  25.133 -		WIFI_ESSID=""
  25.134 -		WIFI_KEY=""
  25.135 -		WIFI_KEY_TYPE=""
  25.136 -		. "$i"
  25.137 -		[ -z "$WIFI_ESSID" ] && WIFI_ESSID="Bad config file: $i"
  25.138 -		[ -z "$WIFI_KEY_TYPE" ] && WIFI_KEY_TYPE="-"
  25.139 -		if [ -n "$WIFI_KEY" ]; then
  25.140 -			WIFI_KEY="********"
  25.141 -		else
  25.142 -			WIFI_KEY="-"
  25.143 -		fi
  25.144 -		echo "$WIFI_ESSID | $WIFI_KEY_TYPE | $WIFI_KEY"
  25.145 -	done
  25.146 -}
  25.147 -
  25.148 -favorite_wifi_actions()
  25.149 -{
  25.150 -	cp -a $FAVORITES_WIFI/"$FAVORITE".conf /tmp/wifi.conf
  25.151 -	. /tmp/wifi.conf
  25.152 -	export CONNECT_FAVORITE="
  25.153 -<window title=\"Connect to: $WIFI_ESSID\" icon-name=\"network-wireless\">
  25.154 -<vbox>
  25.155 -	
  25.156 -	<text width-chars=\"54\">
  25.157 -		<label>
  25.158 -\"
  25.159 -ESSID name: $WIFI_ESSID
  25.160 -\"
  25.161 -		</label>
  25.162 -	</text>
  25.163 -	
  25.164 -	<hbox>
  25.165 -		<button>
  25.166 -			<label>Connect</label>
  25.167 -			<input file icon=\"forward\"></input>	
  25.168 -			<action>$0 start_wifi_connection</action>
  25.169 -			<action type=\"exit\">exit</action>
  25.170 -		</button>
  25.171 -		<button>
  25.172 -			<label>Edit settings</label>
  25.173 -			<input file icon=\"accessories-text-editor\"></input>	
  25.174 -			<action>leafpad $FAVORITES_WIFI/\"$FAVORITE\".conf</action>
  25.175 -			<action>rm -f /tmp/wifi.conf</action>
  25.176 -			<action type=\"exit\">exit</action>
  25.177 -		</button>
  25.178 -		<button>
  25.179 -			<label>Delete</label>
  25.180 -			<input file icon=\"gtk-delete\"></input>	
  25.181 -			<action>rm -f $FAVORITES_WIFI/\"$FAVORITE\".conf</action>
  25.182 -			<action type=\"exit\">exit</action>
  25.183 -		</button>
  25.184 -		<button cancel></button>
  25.185 -	</hbox>
  25.186 -	
  25.187 -</vbox>
  25.188 -</window>"
  25.189 -	gtkdialog --center --program=CONNECT_FAVORITE >/dev/null
  25.190 -}
  25.191 -
  25.192 -add_favorite_network_box()
  25.193 -{
  25.194 -	ADD_FAVORITE='
  25.195 -<window title="Add new favorite Wireless" icon-name="network-wireless">
  25.196 -<vbox>
  25.197 -	<text width-chars="54">
  25.198 -		<label>
  25.199 -"
  25.200 -Please configure your new favorite Wireless network
  25.201 -"
  25.202 -		</label>
  25.203 -	</text>
  25.204 -	<hbox>
  25.205 -		<text use-markup="true">
  25.206 -			<label>"<b>ESSID:</b>"</label>
  25.207 -		</text>
  25.208 -		<entry>
  25.209 -			<variable>WIFI_ESSID</variable>
  25.210 -		</entry>
  25.211 -	</hbox>
  25.212 -	<hbox>
  25.213 -		<text use-markup="true">
  25.214 -			<label>"<b>Key:   </b>"</label>
  25.215 -		</text>
  25.216 -		<entry>
  25.217 -			<variable>WIFI_KEY</variable>
  25.218 -		</entry>
  25.219 -	</hbox>
  25.220 -	<hbox>
  25.221 -		<text use-markup="true">
  25.222 -			<label>"<b>Key type:</b>"</label>
  25.223 -		</text>
  25.224 -		<combobox>'
  25.225 -	tmp="${ADD_FAVORITE}<item>$WIFI_KEY_TYPE</item>"
  25.226 -	for i in none WEP WPA any; do
  25.227 -		tmp=${tmp}"<item>$i</item>"
  25.228 -	done
  25.229 -	export ADD_FAVORITE=${tmp}'
  25.230 -			<variable>WIFI_KEY_TYPE</variable>
  25.231 -		</combobox>
  25.232 -	</hbox>
  25.233 -	<hbox>
  25.234 -		<button>
  25.235 -			<label>Add to list</label>
  25.236 -			<input file icon="forward"></input>
  25.237 -			<action>echo "# Wireless connection configuration." > $FAVORITES_WIFI/"$WIFI_ESSID".conf</action>
  25.238 -			<action>echo "#" >> /etc/wireless/"$WIFI_ESSID".conf</action>
  25.239 -			<action>echo "WIFI_ESSID=\"$WIFI_ESSID\"" >> $FAVORITES_WIFI/"$WIFI_ESSID".conf</action>
  25.240 -			<action>echo "WIFI_KEY=\"$WIFI_KEY\"" >> $FAVORITES_WIFI/"$WIFI_ESSID".conf</action>
  25.241 -			<action>echo "WIFI_KEY_TYPE=\"$WIFI_KEY_TYPE\"" >> $FAVORITES_WIFI/"$WIFI_ESSID".conf</action>
  25.242 -			<action type="exit">exit</action>
  25.243 -		</button>
  25.244 -		<button cancel></button>
  25.245 -	</hbox>
  25.246 -</vbox>
  25.247 -</window>'
  25.248 -	gtkdialog --center --program=ADD_FAVORITE #>/dev/null
  25.249 -}
  25.250 -
  25.251 -# GUI functions
  25.252 -
  25.253 -helpbutton()
  25.254 -{
  25.255 -	local label;
  25.256 -        label="<label>$3</label>"
  25.257 -	[ -n "$3" ] || label=""
  25.258 -	cat << EOT
  25.259 -<button>
  25.260 -	<input file icon="help"></input>$label
  25.261 -	<action>xterm -fa MiscFixed -fs 11 -bg gray93 -fg black -geometry $2 -title "$1 help" -e "$(which $1) --help ; echo -e \\"----\\nENTER to continue...\\" && read close"</action>
  25.262 -</button>
  25.263 -EOT
  25.264 -}
  25.265 -
  25.266 -manbutton()
  25.267 -{
  25.268 -	cat << EOT
  25.269 -<button>
  25.270 -	<input file icon="browser"></input>
  25.271 -	<label>man</label>
  25.272 -	<action>xterm -fa MiscFixed -fs 11 -bg gray93 -fg black -geometry 80x24 -title "$2 man (q to quit)" -e ". /etc/profile; man $1 $2"</action>
  25.273 -</button>
  25.274 -EOT
  25.275 -}
  25.276 -
  25.277 -# Independant dialog to connect on a wireless network. If encryption
  25.278 -# is on we ask for the security key.
  25.279 -connect_to_essid()
  25.280 -{
  25.281 -	SCAN=`iwlist $WIFI_INTERFACE scan | \
  25.282 -		awk '/(Cell|ESS|Qual|Encry|IE: WPA)/ {print}' | \
  25.283 -		grep -B 1 -A 1 "$ESSID_LIST"`
  25.284 -	WIFI_ESSID="$ESSID_LIST"
  25.285 -	ENCRYPTION=`echo $SCAN | sed 's/.*key:\([^ ]*\).*/\1/'`
  25.286 -	# Create tmp file used by active_wifi_connexion()
  25.287 -	cat > /tmp/wifi.conf << _EOF_
  25.288 -# Wireless connexion configuration file.
  25.289 -WIFI_ESSID="$ESSID_LIST"
  25.290 -_EOF_
  25.291 -	CONNECT_ESSID="
  25.292 -<window title=\"Connect to: $WIFI_ESSID\" icon-name=\"network-wireless\">
  25.293 -<vbox>
  25.294 -	<text width-chars=\"54\">
  25.295 -		<label>
  25.296 -\"
  25.297 -Connect $WIFI_INTERFACE to: $WIFI_ESSID
  25.298 -\"
  25.299 -		</label>
  25.300 -	</text>"
  25.301 -	# We maybe need a key to connect
  25.302 -	if [ "$ENCRYPTION" = "on" ] && [ "$ESSID_LIST" != "any" ]; then
  25.303 -		# WPA
  25.304 -		if echo "$SCAN" | grep -q WPA; then
  25.305 -			echo 'WIFI_KEY_TYPE="WPA"' >> /tmp/wifi.conf
  25.306 -			CONNECT_ESSID=${CONNECT_ESSID}'
  25.307 -			<hbox>
  25.308 -				<text use-markup="true">
  25.309 -					<label>"<b>WPA Key:</b>"</label>
  25.310 -				</text>
  25.311 -				<entry>
  25.312 -					<input>. /etc/network.conf; echo "$WIFI_KEY"</input>
  25.313 -					<variable>WIFI_KEY</variable>
  25.314 -				</entry>
  25.315 -			</hbox>'
  25.316 -		else
  25.317 -			# WEP
  25.318 -			echo 'WIFI_KEY_TYPE="WEP"' >> /tmp/wifi.conf
  25.319 -			CONNECT_ESSID=${CONNECT_ESSID}'
  25.320 -			<hbox>
  25.321 -				<text use-markup="true">
  25.322 -					<label>"<b>WEP Key:</b>"</label>
  25.323 -				</text>
  25.324 -				<entry>
  25.325 -					<input>. /etc/network.conf; echo "$WIFI_KEY"</input>
  25.326 -					<variable>WIFI_KEY</variable>
  25.327 -				</entry>
  25.328 -			</hbox>'
  25.329 -		fi
  25.330 -	else
  25.331 -		# No encryption
  25.332 -		echo 'WIFI_KEY=""' >> /tmp/wifi.conf
  25.333 -		echo 'WIFI_KEY_TYPE=""' >> /tmp/wifi.conf
  25.334 -		start_wifi_connection
  25.335 -		exit 0
  25.336 -	fi
  25.337 -	# Add key to config file so active_wifi_connexion() can use it.
  25.338 -	# WIFI_KEY is not exported if we quote with --> "
  25.339 -	export CONNECT_ESSID=${CONNECT_ESSID}'
  25.340 -	<hbox>
  25.341 -		<button>
  25.342 -			<label>Connect</label>
  25.343 -			<input file icon="forward"></input>	
  25.344 -			<action>echo "WIFI_KEY=\"$WIFI_KEY\"" >> /tmp/wifi.conf</action>
  25.345 -			<action>$BIN start_wifi_connection</action>
  25.346 -			<action type="exit">exit</action>
  25.347 -		</button>
  25.348 -		<button cancel></button>
  25.349 -	</hbox>
  25.350 -</vbox>
  25.351 -</window>'
  25.352 -	gtkdialog --center --program=CONNECT_ESSID #>/dev/null
  25.353 -}
  25.354 -
  25.355 -# Wifibox start with Networks tab.
  25.356 -box()
  25.357 -{
  25.358 -	WIFI_DIALOG="
  25.359 -<window title=\"Wireless manager\" icon-name=\"network-wireless\">
  25.360 -<vbox>
  25.361 -	
  25.362 -	<notebook labels=\"Networks|Favorites|Configuration|Drivers\">
  25.363 -	
  25.364 -	<vbox>
  25.365 -		<tree icon=\"network-wireless\">
  25.366 -			<width>520</width><height>160</height>
  25.367 -			<variable>ESSID_LIST</variable>
  25.368 -			<label>ESSID|Quality|Encryption|Status</label>
  25.369 -			<input>$0 detect_wifi_networks</input>
  25.370 -			<item icon=\"network-wireless\">any | * | off | (auto-connect)</item>
  25.371 -			<action>$0 connect_to_essid</action>
  25.372 -			<action>refresh:ESSID_LIST</action>
  25.373 -			<action>refresh:WIFI_ESSID</action>
  25.374 -			<action>refresh:WIFI_KEY</action>
  25.375 -			<action>refresh:WIFI_KEY_TYPE</action>
  25.376 -		</tree>
  25.377 -		<hbox>
  25.378 -			<text width-chars=\"54\">
  25.379 -				<label>
  25.380 -\"Please double click on a network to connect or enter security key\"
  25.381 -				</label>
  25.382 -			</text>
  25.383 -			<button>
  25.384 -				<label>Refresh list</label>
  25.385 -				<input file icon=\"reload\"></input>
  25.386 -				<action>refresh:ESSID_LIST</action>
  25.387 -			</button>
  25.388 -		</hbox>
  25.389 -	</vbox>"
  25.390 -	
  25.391 -	# Favorite networks
  25.392 -	WIFI_DIALOG=${WIFI_DIALOG}"	
  25.393 -	<vbox>
  25.394 -		<tree icon=\"network-wireless\">
  25.395 -			<width>500</width><height>160</height>
  25.396 -			<variable>FAVORITE</variable>
  25.397 -			<label>ESSID|Key Type|Key status</label>
  25.398 -			<input>$0 favorites_wifi_list</input>
  25.399 -			<item icon=\"network-wireless\">any | - | -</item>
  25.400 -			<action>$0 favorite_wifi_actions</action>
  25.401 -			<action>refresh:FAVORITE</action>
  25.402 -			<action>refresh:ESSID_LIST</action>
  25.403 -			<action>refresh:WIFI_ESSID</action>
  25.404 -			<action>refresh:WIFI_KEY</action>
  25.405 -			<action>refresh:WIFI_KEY_TYPE</action>
  25.406 -		</tree>
  25.407 -		<hbox>
  25.408 -			<text width-chars=\"50\">
  25.409 -				<label>
  25.410 -\"Please double click on a network to modify or remove it\"
  25.411 -				</label>
  25.412 -			</text>
  25.413 -			<button>
  25.414 -				<label>Add Network</label>
  25.415 -				<input file icon=\"gtk-add\"></input>
  25.416 -				<action>$0 add_favorite_network_box</action>
  25.417 -				<action>refresh:FAVORITE</action>
  25.418 -			</button>
  25.419 -		</hbox>
  25.420 -	</vbox>"
  25.421 -
  25.422 -	# Configuration tab
  25.423 -	WIFI_DIALOG=${WIFI_DIALOG}'
  25.424 -	<vbox>
  25.425 -		<frame Basic>
  25.426 -			<hbox>
  25.427 -				<text use-markup="true">
  25.428 -					<label>"<b>Interface:</b>"</label>
  25.429 -				</text>
  25.430 -				<entry>
  25.431 -					<input>. /etc/network.conf; echo "$WIFI_INTERFACE"</input>
  25.432 -					<variable>WIFI_INTERFACE</variable>
  25.433 -				</entry>
  25.434 -			</hbox>
  25.435 -			<hbox>
  25.436 -				<text use-markup="true">
  25.437 -					<label>"<b>ESSID:        </b>"</label>
  25.438 -				</text>
  25.439 -				<entry>
  25.440 -					<input>. /etc/network.conf; echo "$WIFI_ESSID"</input>
  25.441 -					<variable>WIFI_ESSID</variable>
  25.442 -				</entry>
  25.443 -			</hbox>
  25.444 -			<hbox>
  25.445 -				<text use-markup="true">
  25.446 -					<label>"<b>Key:           </b>"</label>
  25.447 -				</text>
  25.448 -				<entry>
  25.449 -					<input>. /etc/network.conf; echo "$WIFI_KEY"</input>
  25.450 -					<variable>WIFI_KEY</variable>
  25.451 -				</entry>
  25.452 -				<combobox>'
  25.453 -	tmp2="${WIFI_DIALOG}<item>$WIFI_KEY_TYPE</item>"
  25.454 -	for i in none WEP WPA any; do
  25.455 -		[ "$i" = "$WIFI_KEY_TYPE" ] || tmp2="$tmp2<item>$i</item>"
  25.456 -	done
  25.457 -	tmp3='		<variable>WIFI_KEY_TYPE</variable>
  25.458 -				</combobox>
  25.459 -			</hbox>
  25.460 -		</frame>
  25.461 -		<frame Advanced>
  25.462 -			<hbox>
  25.463 -				<text use-markup="true">
  25.464 -					<label>"<b>Channel/Mode:</b>"</label>
  25.465 -				</text>
  25.466 -				<entry>
  25.467 -					<input>. /etc/network.conf; echo "$WIFI_CHANNEL"</input>
  25.468 -					<variable>WIFI_CHANNEL</variable>
  25.469 -				</entry>
  25.470 -				
  25.471 -				<combobox>
  25.472 -					<variable>WIFI_MODE</variable>'
  25.473 -	tmp2="$tmp2$tmp3<item>$WIFI_MODE</item>"
  25.474 -	for i in managed ad-hoc master repeater secondary monitor; do
  25.475 -		[ "$i" = "$WIFI_MODE" ] || tmp2="$tmp2<item>$i</item>"
  25.476 -	done
  25.477 -	tmp3='		</combobox>
  25.478 -			</hbox>
  25.479 -			<hbox>
  25.480 -				<text use-markup="true">
  25.481 -					<label>"<b>Iwconfig args:</b> "</label>
  25.482 -				</text>
  25.483 -				<entry>
  25.484 -					<input>. /etc/network.conf; echo "$WIFI_IWCONFIG_ARGS"</input>
  25.485 -					<variable>WIFI_IWCONFIG_ARGS</variable>
  25.486 -				</entry>'
  25.487 -	WIFI_DIALOG="$tmp$tmp2$tmp3
  25.488 -	$(helpbutton iwconfig 80x24)
  25.489 -	$(manbutton 8 iwconfig)
  25.490 -			</hbox>
  25.491 -		</frame>"
  25.492 -		
  25.493 -	# Start Button for manual configuration.
  25.494 -	WIFI_DIALOG=${WIFI_DIALOG}'
  25.495 -		<hbox>
  25.496 -			<button>
  25.497 -				<label>Start connection</label>
  25.498 -				<input file icon="forward"></input>
  25.499 -				<action>[ "$WIFI_KEY_TYPE" = "WPA" -a ! -x /usr/bin/wpa_supplicant ] && xterm -fa MiscFixed -fs 11 -bg gray93 -fg black -geometry 80x17 -title "wpa_supplicant install" -e "tazpkg get-install wpa_supplicant ; echo -e \"----\n\nENTER to continue...\" && read close"</action>
  25.500 -				<action>sed -i s/`grep ^WIFI= /etc/network.conf`/WIFI=\"yes\"/ /etc/network.conf</action>
  25.501 -				<action>sed -i s/`grep ^WIFI_INTERFACE= /etc/network.conf`/WIFI_INTERFACE=\"$WIFI_INTERFACE\"/ /etc/network.conf</action>
  25.502 -				<action>sed -i s/`grep ^WIFI_ESSID= /etc/network.conf`/WIFI_ESSID=\"$WIFI_ESSID\"/ /etc/network.conf</action>
  25.503 -				<action>sed -i s/`grep ^WIFI_KEY= /etc/network.conf`/WIFI_KEY=\"$WIFI_KEY\"/ /etc/network.conf</action>
  25.504 -				<action>sed -i s/`grep ^WIFI_MODE= /etc/network.conf`/WIFI_MODE=\"$WIFI_MODE\"/ /etc/network.conf</action>
  25.505 -				<action>sed -i "s/`grep ^WIFI_IWCONFIG_ARGS= /etc/network.conf`/WIFI_IWCONFIG_ARGS=\"$WIFI_IWCONFIG_ARGS\"/" /etc/network.conf</action>
  25.506 -				<action>sed -i s/`grep ^WIFI_KEY_TYPE= /etc/network.conf`/WIFI_KEY_TYPE=\"$WIFI_KEY_TYPE\"/ /etc/network.conf</action>
  25.507 -				<action>sed -i s/`grep ^WIFI_CHANNEL= /etc/network.conf`/WIFI_CHANNEL=\"$WIFI_CHANNEL\"/ /etc/network.conf</action>
  25.508 -				<action>[ -s /var/run/udhcpc.$WIFI_INTERFACE.pid ] && kill `cat /var/run/udhcpc.$WIFI_INTERFACE.pid`</action>
  25.509 -				<action>ifconfig $WIFI_INTERFACE down</action>
  25.510 -				<action>iwconfig $WIFI_INTERFACE txpower auto</action>
  25.511 -				<action>/etc/init.d/network.sh restart</action>
  25.512 -				<action>refresh:ESSID_LIST</action>
  25.513 -				<action>refresh:WIFI_ESSID</action>
  25.514 -				<action>refresh:WIFI_KEY</action>
  25.515 -				<action>refresh:WIFI_KEY_TYPE</action>
  25.516 -			</button>
  25.517 -		</hbox>
  25.518 -	</vbox>'
  25.519 -
  25.520 -	# Kernel Modules, firmware and tazndisbox note + button.
  25.521 -	WIFI_DIALOG=${WIFI_DIALOG}"
  25.522 -	<vbox>
  25.523 -		<hbox>
  25.524 -			<text width-chars=\"64\">
  25.525 -				<label>
  25.526 -\"
  25.527 -Some Wireless Adapters need non-free firmware. Please install the
  25.528 -firmware before loading the corresponding module. Note: you can use 
  25.529 -Tazhw to automatically detect your PCI, PCMCIA or USB Wireless adapter.
  25.530 -\"
  25.531 -				</label>
  25.532 -			</text>
  25.533 -		</hbox>
  25.534 -		<hbox>
  25.535 -			<text use-markup=\"true\">
  25.536 -				<label>\"<b>Tools:</b>\"</label>
  25.537 -			</text>
  25.538 -			<button>
  25.539 -				<input file icon=\"computer\"></input>
  25.540 -				<label>Auto detect devices</label>
  25.541 -				<action>tazhw box</action>
  25.542 -				<action>refresh:ESSID_LIST</action>
  25.543 -			</button>"
  25.544 -			# Display firmware stuff, tazndisbox button if installed and close 
  25.545 -			# tab + notebook
  25.546 -			if [ -x /usr/bin/tazndisbox ]; then
  25.547 -				WIFI_DIALOG=${WIFI_DIALOG}"
  25.548 -			<button>
  25.549 -				<input file icon=\"system-installer\"></input>
  25.550 -				<label>Install Windows driver</label>
  25.551 -				<action>tazndisbox</action>
  25.552 -				<action>refresh:ESSID_LIST</action>
  25.553 -			</button>"
  25.554 -			fi
  25.555 -		WIFI_DIALOG=${WIFI_DIALOG}"
  25.556 -		</hbox>
  25.557 -		<hbox>
  25.558 -			<text use-markup=\"true\">
  25.559 -				<label>\"<b>Module:</b>\"</label>
  25.560 -			</text>
  25.561 -			<combobox>
  25.562 -				<variable>MODULE</variable>"
  25.563 -	WIFI_DIALOG="${WIFI_DIALOG}$(find /lib/modules/$(uname -r)/kernel/drivers/net/wireless -type f 2> /dev/null |  sed 's,/.*/\(.*\).ko.*,<item>\1</item>,')"
  25.564 -	WIFI_DIALOG=${WIFI_DIALOG}'
  25.565 -			</combobox>
  25.566 -			<button>
  25.567 -				<label>Load</label>
  25.568 -				<input file icon="forward"></input>
  25.569 -				<action>modprobe $MODULE</action>
  25.570 -			</button>
  25.571 -			<button>
  25.572 -				<label>Unload</label>
  25.573 -				<input file icon="undo"></input>
  25.574 -				<action>modprobe -r $MODULE</action>
  25.575 -			</button>
  25.576 -			<button>
  25.577 -				<label>Lsmod</label>
  25.578 -				<input file icon="computer"></input>
  25.579 -				<action>xterm -fa MiscFixed -fs 11 -bg gray93 -fg black -geometry 80x25 -title "Modules (q to quit)" -e "lsmod | less"</action>
  25.580 -			</button>
  25.581 -		</hbox>'
  25.582 -	# Firmware stuff.
  25.583 -	tmp=$(for i in /usr/bin/get*firmware; do
  25.584 -		[ -x $i ] || continue
  25.585 -		[ "$i" = "/usr/bin/get-wifi-firmware" ] && continue
  25.586 -		[ -d /var/lib/tazpkg/installed/${i#/usr/bin/get-} ] && continue
  25.587 -		echo "<item>${i#/usr/bin/get-}</item>"; done)
  25.588 -		[ -n "$tmp" ] && tmp="
  25.589 -		<hbox>
  25.590 -			<text use-markup=\"true\">
  25.591 -				<label>\"<b>Firmware:</b>\"</label>
  25.592 -			</text>
  25.593 -			<combobox><variable>FIRMWARE</variable>$tmp</combobox>
  25.594 -			<button>
  25.595 -				<label>Install</label>
  25.596 -				<input file icon=\"go-jump\"></input>
  25.597 -				<action>xterm -fa MiscFixed -fs 11 -bg gray93 -fg black -geometry 80x25 -title \"Install \$FIRMWARE\" -e \"get-\$FIRMWARE\"</action>
  25.598 -				<action>refresh:ESSID_LIST</action>
  25.599 -			</button>
  25.600 -			<button>
  25.601 -				<input file icon=\"system-file-manager\"></input>
  25.602 -				<label>List files</label>
  25.603 -				<action>xterm -fa MiscFixed -fs 11 -bg gray93 -fg black -geometry 100x25 -title \"Firmware files (q to quit)\" -e \"find /lib/firmware -exec ls -ld {} \; | less\"</action>
  25.604 -				<action>refresh:ESSID_LIST</action>
  25.605 -			</button>
  25.606 -		</hbox>"
  25.607 -
  25.608 -# Bottom buttons
  25.609 -export WIFI_DIALOG=${WIFI_DIALOG}${tmp}"
  25.610 -		</vbox>
  25.611 -	</notebook>
  25.612 -	<hbox>
  25.613 -		<button>
  25.614 -			<label>Stop connection</label>
  25.615 -			<input file icon=\"stop\"></input>
  25.616 -			<action>$0 stop_wifi_connexion</action>
  25.617 -			<action>refresh:ESSID_LIST</action>
  25.618 -		</button>
  25.619 -		<button>
  25.620 -			<label>Exit</label>
  25.621 -			<input file icon=\"exit\"></input>
  25.622 -			<action type=\"exit\">Exit</action>
  25.623 -		</button>
  25.624 -	</hbox>
  25.625 -	
  25.626 -</vbox>
  25.627 -</window>"
  25.628 -	gtkdialog --center --program=WIFI_DIALOG #>/dev/null 2>&1
  25.629 -}
  25.630 -
  25.631 -if [ -n "$1" ]; then
  25.632 -	$1
  25.633 -else
  25.634 -	box
  25.635 -fi
  25.636 -
  25.637 -exit 0
    26.1 --- a/xfce/rootfs/usr/share/applications/burnbox-doc.desktop	Tue Apr 10 13:00:52 2012 +0200
    26.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    26.3 @@ -1,8 +0,0 @@
    26.4 -[Desktop Entry]
    26.5 -Encoding=UTF-8
    26.6 -Name=Burnbox manual
    26.7 -Name[pt]=Manual do Burnbox
    26.8 -Exec=browser file:///usr/share/doc/slitaz-tools/burnbox.html
    26.9 -Icon=text-html
   26.10 -Type=Application
   26.11 -Categories=Documentation;
    27.1 --- a/xfce/rootfs/usr/share/applications/gpl-license.desktop	Tue Apr 10 13:00:52 2012 +0200
    27.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    27.3 @@ -1,8 +0,0 @@
    27.4 -[Desktop Entry]
    27.5 -Encoding=UTF-8
    27.6 -Name=GNU General Public License
    27.7 -Name[pt]=Licença PuÌblica Geral GNU
    27.8 -Exec=browser file:///usr/share/licenses/gpl.txt
    27.9 -Icon=text-x-generic
   27.10 -Type=Application
   27.11 -Categories=Documentation;
    28.1 --- a/xfce/rootfs/usr/share/applications/system-doc.desktop	Tue Apr 10 13:00:52 2012 +0200
    28.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    28.3 @@ -1,8 +0,0 @@
    28.4 -[Desktop Entry]
    28.5 -Name=System Doc
    28.6 -Name[fr]=Doc du système
    28.7 -Name[pt]=Documentação do Sistema
    28.8 -Exec=browser file:///usr/share/doc/slitaz/index.html
    28.9 -Icon=slitaz-doc.png
   28.10 -Type=Application
   28.11 -Categories=Documentation;
    29.1 --- a/xfce/rootfs/usr/share/applications/tazlito-doc.desktop	Tue Apr 10 13:00:52 2012 +0200
    29.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    29.3 @@ -1,9 +0,0 @@
    29.4 -[Desktop Entry]
    29.5 -Name=Tazlito manual
    29.6 -Name[fr]=Manuel de Tazlito
    29.7 -Comment=SliTaz LiveCD generator and editor
    29.8 -Comment[fr]=Manuel de l'outil de geÌneÌration et eÌdition de LiveCD
    29.9 -Exec=browser file:///usr/share/doc/tazlito/tazlito.html
   29.10 -Icon=text-html
   29.11 -Type=Application
   29.12 -Categories=Documentation;
    30.1 --- a/xfce/rootfs/usr/share/applications/tazlitobox.desktop	Tue Apr 10 13:00:52 2012 +0200
    30.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    30.3 @@ -1,8 +0,0 @@
    30.4 -[Desktop Entry]
    30.5 -Encoding=UTF-8
    30.6 -Name=Create a LiveCD
    30.7 -Name[fr]=Créer un LiveCD
    30.8 -Exec=subox tazlitobox
    30.9 -Icon=tazlito
   30.10 -Type=Application
   30.11 -Categories=System;
    31.1 --- a/xfce/rootfs/usr/share/applications/tazpkg-doc.desktop	Tue Apr 10 13:00:52 2012 +0200
    31.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    31.3 @@ -1,9 +0,0 @@
    31.4 -[Desktop Entry]
    31.5 -Name=Tazpkg manual
    31.6 -Name[fr]=Manuel de Tazpkg
    31.7 -Comment=SliTaz packages manager manual
    31.8 -Comment[fr]=Manuel du gestionnaire de paquets SliTaz
    31.9 -Exec=browser file:///usr/share/doc/tazpkg/tazpkg.html
   31.10 -Icon=text-html
   31.11 -Type=Application
   31.12 -Categories=Documentation;
    32.1 --- a/xfce/rootfs/usr/share/doc/slitaz/book.css	Tue Apr 10 13:00:52 2012 +0200
    32.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    32.3 @@ -1,195 +0,0 @@
    32.4 -/* 
    32.5 -	CSS style for SliTaz GNU/Linux *book.
    32.6 -	Pankso 2007 - www.slitaz.org
    32.7 -*/
    32.8 -
    32.9 -html {
   32.10 -	height:  102%;
   32.11 -}
   32.12 -
   32.13 -body {
   32.14 -	font: 13px sans-serif, vernada, arial;
   32.15 -	background: #ffffff;
   32.16 -	color: black;
   32.17 -	margin: 0;
   32.18 -}
   32.19 -
   32.20 -#header {
   32.21 -	background: #f0ba08 url(images/css/header.png) repeat-x top;
   32.22 -	color: black;
   32.23 -	height: 50px;
   32.24 -	border-top: 1px solid black;
   32.25 -	border-bottom: 1px solid black;
   32.26 -}
   32.27 -
   32.28 -#header h1 {
   32.29 -	padding: 10px;
   32.30 -}
   32.31 -
   32.32 -#quicknav {
   32.33 -	text-align: right;
   32.34 -	font-size: 12px;
   32.35 -	color: #666666;
   32.36 -	background-color: #eaeaea;
   32.37 -	padding: 4px 2px;
   32.38 -	font-weight: bold;
   32.39 -}
   32.40 -
   32.41 -#quicknav a {
   32.42 -	color: #0F314E;
   32.43 -	background: inherit;
   32.44 -	text-decoration: none;
   32.45 -	padding: 0px 2px;
   32.46 -}
   32.47 -
   32.48 -#quicknav a:hover {
   32.49 -	color: #DF8F06;
   32.50 -	text-decoration: none;
   32.51 -}
   32.52 -
   32.53 -/*  content. */
   32.54 -
   32.55 -#content {
   32.56 -	padding: 20px;
   32.57 -	margin: 0px 50px 0px 50px;
   32.58 -	width: auto;
   32.59 -	text-align: justify;
   32.60 -}
   32.61 -
   32.62 -#content li {
   32.63 -	line-height: 1.5em;
   32.64 -	text-align: left;
   32.65 -}
   32.66 -
   32.67 -/*  Footer. */
   32.68 -
   32.69 -#footer {
   32.70 -	font-size: 11px;
   32.71 -	color: black;
   32.72 -	height: 20px;
   32.73 -	padding: 0px 0px 0px 10px;
   32.74 -	margin: 0px;
   32.75 -	width: auto;
   32.76 -	text-align: center ;
   32.77 -}
   32.78 -
   32.79 -#footer a {
   32.80 -	background: #ffffff;
   32.81 -	color: #0F314E;
   32.82 -}
   32.83 -
   32.84 -#footer a:hover {
   32.85 -	background: #ffffff;
   32.86 -	color: blue;
   32.87 -}
   32.88 -
   32.89 -/* Legal informations */
   32.90 -
   32.91 -#copy {
   32.92 -	font-size: 11px ;
   32.93 -	text-align: center ;
   32.94 -	background: transparent;
   32.95 -	color: #a8a8a8;
   32.96 -	padding-top: 10px;
   32.97 -}
   32.98 -
   32.99 -#copy a {
  32.100 -	background: inherit;
  32.101 -	color: #a8a8a8;
  32.102 -}
  32.103 -
  32.104 -#copy a:hover {
  32.105 -	background: inherit;
  32.106 -	color: blue;
  32.107 -}
  32.108 -
  32.109 -/* Clouds */
  32.110 -
  32.111 -#cloud {
  32.112 -	padding: 10px 120px 10px 120px;
  32.113 -	line-height: 3em;
  32.114 -	text-align: center;
  32.115 -}
  32.116 -#cloud a { padding: 4px; color: #956411; }
  32.117 -#cloud a.tag1 { font-size: 0.7em; font-weight: 100; }
  32.118 -#cloud a.tag2 { font-size: 0.8em; font-weight: 200; }
  32.119 -#cloud a.tag3 { font-size: 0.9em; font-weight: 300; }
  32.120 -#cloud a.tag4 { font-size: 1.0em; font-weight: 400; }
  32.121 -#cloud a.tag5 { font-size: 1.2em; font-weight: 500; }
  32.122 -#cloud a.tag6 { font-size: 1.4em; font-weight: 600; }
  32.123 -#cloud a.tag7 { font-size: 1.6em; font-weight: 700; }
  32.124 -#cloud a.tag8 { font-size: 1.8em; font-weight: 800; }
  32.125 -#cloud a.tag9 { font-size: 2.2em; font-weight: 900; }
  32.126 -#cloud a.tag10 { font-size: 2.5em; font-weight: 900; }
  32.127 -
  32.128 -/* Div for round corners. */
  32.129 -
  32.130 -.content-right, .footer-right {
  32.131 -	width: 16px;
  32.132 -	color: white;
  32.133 -	background-color: #333333;
  32.134 -}
  32.135 -.content-right {
  32.136 -	background: url(images/css/content-tr.png) no-repeat top right;
  32.137 -	height: 16px;
  32.138 -	right: 50px;
  32.139 -	top: 82px;
  32.140 -	position: absolute;
  32.141 -}
  32.142 -
  32.143 -.footer-right {
  32.144 -	background: url(images/css/footer-br.png) no-repeat bottom right;
  32.145 -	height: 20px;
  32.146 -	float: right;
  32.147 -}
  32.148 -
  32.149 -/* General HTML entities for  content. */
  32.150 -
  32.151 -h1 {
  32.152 -	margin: 0px 0px 0px 16px;
  32.153 -}
  32.154 -
  32.155 -h2 {
  32.156 -	margin: 12px 0;
  32.157 -	color: #484B7C;
  32.158 -	background: white;
  32.159 -}
  32.160 -
  32.161 -h3 {
  32.162 -	font-weight: bold;
  32.163 -	color: #6c0023;
  32.164 -	background: white;
  32.165 -}
  32.166 -
  32.167 -a {
  32.168 -	text-decoration: underline;
  32.169 -}
  32.170 -a:hover {
  32.171 -	text-decoration: none;
  32.172 -}
  32.173 -
  32.174 -pre {
  32.175 -	padding: 5px;
  32.176 -	color: black;
  32.177 -	background: #e1e0b0;
  32.178 -}
  32.179 -pre.script {
  32.180 -	padding: 10px;
  32.181 -	color: black;
  32.182 -	background: #e8e8e8;
  32.183 -	border: 1px inset #333333;
  32.184 -}
  32.185 -
  32.186 -code {
  32.187 -	font-size: 12px;
  32.188 -	color: #669900;
  32.189 -	background: transparent;
  32.190 -}
  32.191 -
  32.192 -li {
  32.193 -	line-height: 1.4em;
  32.194 -}
  32.195 -
  32.196 -hr {
  32.197 -	border: 0pt none;
  32.198 -}
    33.1 Binary file xfce/rootfs/usr/share/doc/slitaz/favicon.ico has changed
    34.1 Binary file xfce/rootfs/usr/share/doc/slitaz/images/css/header.png has changed
    35.1 --- a/xfce/rootfs/usr/share/doc/slitaz/index.de.html	Tue Apr 10 13:00:52 2012 +0200
    35.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    35.3 @@ -1,67 +0,0 @@
    35.4 -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    35.5 -	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    35.6 -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
    35.7 -<head>
    35.8 -	<title>SliTaz - System doc (de)</title>
    35.9 -	<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
   35.10 -	<meta name="description" content="slitaz doc system releases notes information cooking" />
   35.11 -	<meta name="expires" content="never" />
   35.12 -	<meta name="modified" content="2009-04-16 10:30:00" />
   35.13 -	<meta name="publisher" content="www.slitaz.org" />
   35.14 -	<meta name="author" content="Christophe Lincoln"/>
   35.15 -	<link rel="shortcut icon" href="favicon.ico" />
   35.16 -	<link rel="stylesheet" type="text/css" href="book.css" />
   35.17 -</head>
   35.18 -<body bgcolor="#ffffff">
   35.19 -
   35.20 -<!-- Header and quick navigation -->
   35.21 -<div id="header">
   35.22 -<h1><font color="#3E1220">SliTaz - System doc</font></h1>
   35.23 -</div>
   35.24 -
   35.25 -<div id="quicknav">
   35.26 -	SliTaz:
   35.27 -	<a href="http://www.slitaz.org/">Website</a>
   35.28 -	<a href="http://forum.slitaz.org/">Forum</a>
   35.29 -	<a href="http://wiki.slitaz.org/">Wiki</a>
   35.30 -	<a href="http://labs.slitaz.org/">Labs</a>
   35.31 -</div>
   35.32 -
   35.33 -<!-- Content. -->
   35.34 -<div id="content">
   35.35 -
   35.36 -<h2><font color="#DF8F06">Documentation (de)</font></h2>
   35.37 -
   35.38 -<p>
   35.39 -SliTaz GNU/Linux stable Release wird mit den Dokumentationen für die 
   35.40 -SliTaz-Werkzeuge und den deutschen Release Notes veröffentlicht. Dokumentation
   35.41 -und diese Seite sind über das Openboxenü erreichbar. Bitte konsultieren Sie 
   35.42 -ebenfalls die <a href="http://www.slitaz.org/de/">Deutsche Projektseite</a> 
   35.43 -für allgemeine Informationen über SliTaz. Für die Benutzung des Systems lesen
   35.44 -Sie bitte das deutsche Handbuch. das Teil des 
   35.45 -<a href="http://wiki.slitaz.org/">SliTaz Wiki</a> ist.
   35.46 -</p>
   35.47 -
   35.48 -<!-- End of content -->
   35.49 -</div>
   35.50 -
   35.51 -<!-- Footer. -->
   35.52 -<div id="footer">
   35.53 -	<a href="#top">Top of the page</a> - Languages:
   35.54 -	<a href="index.de.html">de</a> |
   35.55 -	<a href="index.en.html">en</a> |
   35.56 -	<a href="index.fr.html">fr</a> |
   35.57 -	<a href="index.hu.html">hu</a> |
   35.58 -	<a href="index.pt.html">pt</a>
   35.59 -</div>
   35.60 -
   35.61 -<div id="copy">
   35.62 -	Copyright &copy; 2010 <a href="http://www.slitaz.org/">SliTaz</a> -
   35.63 -	<a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>;<br />
   35.64 -	Documentation uder
   35.65 -	<a href="http://www.gnu.org/copyleft/fdl.html">GNU Free Documentation License</a>
   35.66 -	and valid <a href="http://validator.w3.org/">xHTML 1.0</a>.
   35.67 -</div>
   35.68 -
   35.69 -</body>
   35.70 -</html>
    36.1 --- a/xfce/rootfs/usr/share/doc/slitaz/index.en.html	Tue Apr 10 13:00:52 2012 +0200
    36.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    36.3 @@ -1,176 +0,0 @@
    36.4 -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    36.5 -	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    36.6 -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
    36.7 -<head>
    36.8 -	<title>SliTaz - System doc</title>
    36.9 -	<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
   36.10 -	<meta name="description" content="slitaz doc system releases notes information cooking" />
   36.11 -	<meta name="expires" content="never" />
   36.12 -	<meta name="modified" content="2009-12-29 12:10:00" />
   36.13 -	<meta name="publisher" content="www.slitaz.org" />
   36.14 -	<meta name="author" content="Christophe Lincoln"/>
   36.15 -	<link rel="shortcut icon" href="favicon.ico" />
   36.16 -	<link rel="stylesheet" type="text/css" href="book.css" />
   36.17 -</head>
   36.18 -<body bgcolor="#ffffff">
   36.19 -
   36.20 -<!-- Header and quick navigation -->
   36.21 -<div id="header">
   36.22 -	<a name="top"></a>
   36.23 -	<h1><font color="#3E1220">SliTaz - System doc</font></h1>
   36.24 -</div>
   36.25 -
   36.26 -<div id="quicknav">
   36.27 -	SliTaz:
   36.28 -	<a href="http://www.slitaz.org/">Website</a>
   36.29 -	<a href="http://forum.slitaz.org/">Forum</a>
   36.30 -	<a href="http://wiki.slitaz.org/">Wiki</a>
   36.31 -	<a href="http://labs.slitaz.org/">Labs</a>
   36.32 -</div>
   36.33 -
   36.34 -<!-- Content. -->
   36.35 -<div id="content">
   36.36 -
   36.37 -<h2><font color="#DF8F06">Documentation (en)</font></h2>
   36.38 -
   36.39 -<p>
   36.40 -The Cooking version doesn't provide any Release Notes, major changes are announced
   36.41 -on the web site and the <a href="http://labs.slitaz.org/">Labs</a> provide
   36.42 -fresh news about the project's activity. Like the stable version, you will 
   36.43 -find <a href="http://www.slitaz.org/en/doc/">documentation</a> on the web 
   36.44 -site and support on the community <a href="http://forum.slitaz.org/">forum</a>.
   36.45 -</p>
   36.46 -
   36.47 -<!--
   36.48 -<p>
   36.49 -SliTaz GNU/Linux stable release is published with the project tools, 
   36.50 -manuals and Release Notes installed on the system. Manuals and this page
   36.51 -are accessible through the Openbox menu. Please check the 
   36.52 -<a href="http://www.slitaz.org/en/">project page</a> for general 
   36.53 -information on SliTaz. To use and configure the system you can read the 
   36.54 -<a href="http://www.slitaz.org/en/doc/handbook/">Handbook</a>.
   36.55 -Community documentation can be found on the
   36.56 -<a href="http://wiki.slitaz.org/">SliTaz Wiki</a> and support on the SliTaz
   36.57 -community <a href="http://forum.slitaz.org/#idx2">Forum</a>. 
   36.58 -</p>
   36.59 --->
   36.60 -
   36.61 -<h2><font color="#DF8F06">Getting started</font></h2>
   36.62 -
   36.63 -<a name="network"></a>
   36.64 -<h3>Network connections</h3>
   36.65 -<p>
   36.66 -Click on the "Network Status Monitor" at the bottom right of the screen, 
   36.67 -"Configure" and then the network manager (netbox) will come up. You can 
   36.68 -go to the "DHCP" tab and click "Start", and Slitaz will send a DHCP request 
   36.69 -to the local router. You may also setup a static IP, PPPoE, PPP, VPN and 
   36.70 -more using their respective tabs. To configure a wireless connection you 
   36.71 -can use SliTaz wifibox by clicking "Wireless Manager" in the Network Manager 
   36.72 -or by using the "System Tools" menu entry -> "Wireless networks connections".
   36.73 -</p>
   36.74 -<p>
   36.75 -More detailed information can be found in the Handbook: 
   36.76 -<a href="http://www.slitaz.org/en/doc/handbook/network-config.html"
   36.77 -	>Network configuration</a>
   36.78 -</p>
   36.79 -
   36.80 -<a name="apps"></a>
   36.81 -<h3>Applications</h3>
   36.82 -<p>
   36.83 -To have a list of all graphical applications you can use the SliTaz menu button 
   36.84 -at the bottom left of the screen. To have a list of command line tools, you
   36.85 -can open a terminal and double press on the tabulation button. And to have
   36.86 -a list of all installed packages you can use the package manager user interface
   36.87 -using the panel icon or from the "System Tools" menu. To install any new packages
   36.88 -you must have a network connection, the DVD of packages or an USB storage device 
   36.89 -with downloaded packages from another machine. Naturally any package management
   36.90 -can also be done from the command line and <code>tazpkg</code>.
   36.91 -</p>
   36.92 -
   36.93 -<a name="office"></a>
   36.94 -<h3>Office suite</h3>
   36.95 -<p>
   36.96 -The SliTaz packages database provides some lightweight office applications.
   36.97 -All of these packages are easily installable in a few clicks through the packages
   36.98 -manager. SliTaz also provides a simple way to install the famous and powerful
   36.99 -OpenOffice suite: just search OpenOffice in the packages manager, double click
  36.100 -on "get-OpenOffice3" and install the script with the <code>Auto exec</code> option
  36.101 -enabled. 
  36.102 -</p>
  36.103 -<p>
  36.104 -To have a lightweight office suite; use: Abiword as Word processor, Gnumeric as 
  36.105 -Spreadsheet and Homebank for Bank Accounting.
  36.106 -</p>
  36.107 -
  36.108 -<a name="multimedia"></a>
  36.109 -<h3>Multimedia</h3>
  36.110 -<p>
  36.111 -Most SliTaz flavors include a wide range of sound card drivers, a volume
  36.112 -mixer and a light audio player to easily listen to any MP3 or OGG files. The Sound
  36.113 -card is autodetected at boot time and audio support works out-of-the-box
  36.114 -on many systems. If you manually add a new user and can't listen to audio, please
  36.115 -check that the user belongs to the <code>audio</code> group. For any other trouble please
  36.116 -look into the full documentation and use the forum for more help.
  36.117 -</p>
  36.118 -<p>
  36.119 -Videos can be watched by installing one single package or using a dedicated
  36.120 -LiveCD or LiveUSB system. The SliTaz team have packaged some of the best video players 
  36.121 -available under GNU/Linux: <code>mplayer</code>, <code>xine-ui</code> and <code>vlc</code>
  36.122 -</p>
  36.123 -
  36.124 -<a name="info"></a>
  36.125 -<h3>System information</h3>
  36.126 -<p>
  36.127 -You can get information on your system by clicking on "System information"
  36.128 -in the System Tools menu, then "Summary". Clicking on the other 
  36.129 -options on the side brings you more information, and using the benchmarks
  36.130 -gives you an idea on how fast your computer is. To have a list and control
  36.131 -of all your current processes you can use the "Task Manager".
  36.132 -</p>
  36.133 -
  36.134 -<a name="root"></a>
  36.135 -<h3>Becoming Root</h3>
  36.136 -<p>
  36.137 -By default, Slitaz doesn't have its desktop running as root administrator:
  36.138 -it asks for a root password (default <code>root</code>) for any dangerous work.
  36.139 -Therefore, it is safer and more secure. To become root in an xterm, simply 
  36.140 -type <code>su</code>, and enter the root password.
  36.141 -</p>
  36.142 -
  36.143 -<a name="install"></a>
  36.144 -<h3>Installation</h3>
  36.145 -<p>
  36.146 -SliTaz can be installed to a hard disk or on an USB mass storage device using the
  36.147 -"SliTaz Installer" from the "System Tools" menu. The installer makes a full HD install.
  36.148 -SliTaz won't work in memory (RAM) anymore like in Live or Frugal mode and 
  36.149 -everything is persistent.
  36.150 -</p>
  36.151 -<p>
  36.152 -To generate a LiveUSB system you can use "Tazusb LiveUSB Tool" from the "System Tools"
  36.153 -menu or <code>tazusb</code> from the command line. More information can be found in the SliTaz
  36.154 -Handbook: <a href="http://www.slitaz.org/en/doc/handbook/liveusb.html">LiveUSB media</a>
  36.155 -</p>
  36.156 -
  36.157 -<!-- End of content -->
  36.158 -</div>
  36.159 -
  36.160 -<!-- Footer. -->
  36.161 -<div id="footer">
  36.162 -	<a href="#top">Top of the page</a> - Languages:
  36.163 -	<a href="index.de.html">de</a> |
  36.164 -	<a href="index.en.html">en</a> |
  36.165 -	<a href="index.fr.html">fr</a> |
  36.166 -	<a href="index.hu.html">hu</a> |
  36.167 -	<a href="index.pt.html">pt</a>
  36.168 -</div>
  36.169 -
  36.170 -<div id="copy">
  36.171 -	Copyright &copy; 2010 <a href="http://www.slitaz.org/">SliTaz</a> -
  36.172 -	<a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>;<br />
  36.173 -	Documentation uder
  36.174 -	<a href="http://www.gnu.org/copyleft/fdl.html">GNU Free Documentation License</a>
  36.175 -	and valid <a href="http://validator.w3.org/">xHTML 1.0</a>.
  36.176 -</div>
  36.177 -
  36.178 -</body>
  36.179 -</html>
    37.1 --- a/xfce/rootfs/usr/share/doc/slitaz/index.fr.html	Tue Apr 10 13:00:52 2012 +0200
    37.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    37.3 @@ -1,78 +0,0 @@
    37.4 -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    37.5 -	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    37.6 -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
    37.7 -<head>
    37.8 -	<title>SliTaz - System doc (fr)</title>
    37.9 -	<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
   37.10 -	<meta name="description" content="slitaz doc system releases notes information cooking" />
   37.11 -	<meta name="expires" content="never" />
   37.12 -	<meta name="modified" content="2010-12-30 14:30:00" />
   37.13 -	<meta name="publisher" content="www.slitaz.org" />
   37.14 -	<meta name="author" content="Christophe Lincoln"/>
   37.15 -	<link rel="shortcut icon" href="favicon.ico" />
   37.16 -	<link rel="stylesheet" type="text/css" href="book.css" />
   37.17 -</head>
   37.18 -<body bgcolor="#ffffff">
   37.19 -
   37.20 -<!-- Header and quick navigation -->
   37.21 -<div id="header">
   37.22 -<h1><font color="#3E1220">SliTaz - Doc du système</font></h1>
   37.23 -</div>
   37.24 -
   37.25 -<div id="quicknav">
   37.26 -	SliTaz:
   37.27 -	<a href="http://www.slitaz.org/">Website</a>
   37.28 -	<a href="http://forum.slitaz.org/">Forum</a>
   37.29 -	<a href="http://wiki.slitaz.org/">Wiki</a>
   37.30 -	<a href="http://labs.slitaz.org/">Labs</a>
   37.31 -</div>
   37.32 -
   37.33 -<!-- Content. -->
   37.34 -<div id="content">
   37.35 -
   37.36 -<h2><font color="#DF8F06">Documentation (fr)</font></h2>
   37.37 -
   37.38 -<p>
   37.39 -La version en cuisson ou <em>Cooking</em> ne fourni pas de notes de
   37.40 -publication, les chagements sont annonçés sur le site web et 
   37.41 -<a href="http://labs.slitaz.org/">les laboratoires</a> proposent des
   37.42 -nouvelles fraîches. Comme pour la version stable, vous pouvez vous 
   37.43 -référer à la documentation du site et trouverez de l'aide sur 
   37.44 -<a href="http://forum.slitaz.org/">le forum</a> du projet.
   37.45 -</p>
   37.46 -
   37.47 -<!-- <p>
   37.48 -La version stable de SliTaz GNU/linux est distribuée avec les manuels 
   37.49 -des outils de la distribution et les notes de publication. Tous les manuels
   37.50 -ainsi que cette page sont directement accessibles depuis le menu 
   37.51 -documention du gestionnaire de fenêtres Openbox présent sur le LiveCD.
   37.52 -Sur le Web, vous trouverez une documentation complète via le livre de main ou 
   37.53 -<a href="http://www.slitaz.org/fr/doc/handbook/">Handbook</a> de SliTaz et la
   37.54 -documentation communautaire sur le <a href="http://wiki.slitaz.org/">Wiki</a>.
   37.55 -Pour de l'aide vous trouverez un support technique gratuit via la liste
   37.56 -de discussion ou <a href="http://forum.slitaz.org/">le forum</a> communautaire.
   37.57 -</p> -->
   37.58 -
   37.59 -<!-- End of content -->
   37.60 -</div>
   37.61 -
   37.62 -<!-- Footer. -->
   37.63 -<div id="footer">
   37.64 -	<a href="#top">Top of the page</a> - Languages:
   37.65 -	<a href="index.de.html">de</a> |
   37.66 -	<a href="index.en.html">en</a> |
   37.67 -	<a href="index.fr.html">fr</a> |
   37.68 -	<a href="index.hu.html">hu</a> |
   37.69 -	<a href="index.pt.html">pt</a>
   37.70 -</div>
   37.71 -
   37.72 -<div id="copy">
   37.73 -	Copyright &copy; 2010 <a href="http://www.slitaz.org/">SliTaz</a> -
   37.74 -	<a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>;<br />
   37.75 -	Documentation uder
   37.76 -	<a href="http://www.gnu.org/copyleft/fdl.html">GNU Free Documentation License</a>
   37.77 -	and valid <a href="http://validator.w3.org/">xHTML 1.0</a>.
   37.78 -</div>
   37.79 -
   37.80 -</body>
   37.81 -</html>
    38.1 --- a/xfce/rootfs/usr/share/doc/slitaz/index.hu.html	Tue Apr 10 13:00:52 2012 +0200
    38.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    38.3 @@ -1,85 +0,0 @@
    38.4 -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    38.5 -	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    38.6 -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
    38.7 -<head>
    38.8 -  <title>SliTaz - System doc (hu)</title>
    38.9 -  <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
   38.10 -  <meta name="description" content="slitaz doc system releases notes information cooking">
   38.11 -  <meta name="expires" content="never">
   38.12 -  <meta name="modified" content="2009-04-16 10:30:00">
   38.13 -  <meta name="publisher" content="www.slitaz.org">
   38.14 -  <meta name="author" content="Christophe Lincoln">
   38.15 -  <link rel="shortcut icon" href="favicon.ico">
   38.16 -  <link rel="stylesheet" type="text/css" href="book.css">
   38.17 -</head>
   38.18 -<body bgcolor="#ffffff">
   38.19 -<!-- Header and quick navigation -->
   38.20 -<div id="header">
   38.21 -<h1><font color="#3e1220">SliTaz - System doc</font></h1>
   38.22 -</div>
   38.23 -
   38.24 -<div id="quicknav">
   38.25 -	SliTaz:
   38.26 -	<a href="http://www.slitaz.org/">Website</a>
   38.27 -	<a href="http://forum.slitaz.org/">Forum</a>
   38.28 -	<a href="http://wiki.slitaz.org/">Wiki</a>
   38.29 -	<a href="http://labs.slitaz.org/">Labs</a>
   38.30 -</div>
   38.31 -
   38.32 -<!-- Content. -->
   38.33 -<div id="content">
   38.34 -
   38.35 -<h2><font color="#df8f06">Documentation (hu)</font></h2>
   38.36 -
   38.37 -<h3><font color="#6c0023">Megjegyz&eacute;s a kiad&aacute;shoz<br>
   38.38 -</font></h3>
   38.39 -<p>A SliTaz GNU/Linux stabil kiad&aacute;sa a rendszerre
   38.40 -telep&iacute;tett projekt-eszk&ouml;z&ouml;kkel,
   38.41 -le&iacute;r&aacute;sokkal &eacute;s Kiad&aacute;si
   38.42 -t&aacute;j&eacute;koztat&oacute;val jelent meg. A
   38.43 -le&iacute;r&aacute;sok &eacute;s ez az oldal az Openbox men&uuml;n
   38.44 -kereszt&uuml;l &eacute;rhet&#337;k el. A Slitazzal kapcsolatos
   38.45 -&aacute;ltal&aacute;nos inform&aacute;ci&oacute;k&eacute;rt
   38.46 -k&eacute;rj&uuml;k l&aacute;togassa meg a <a
   38.47 - href="http://www.slitaz.org/">projekt oldalt</a> . A rendszer
   38.48 -be&aacute;ll&iacute;t&aacute;s&aacute;hoz &eacute;s
   38.49 -haszn&aacute;lat&aacute;hoz olvassa el a&nbsp; <a
   38.50 - href="http://www.slitaz.org/hu/doc/handbook/">K&eacute;zik&ouml;nyvet</a>.
   38.51 -A k&ouml;z&ouml;ss&eacute;gr&#337;l a
   38.52 -<a href="http://wiki.slitaz.org/">SliTaz Wiki</a>&nbsp; oldalon
   38.53 -tal&aacute;l dokomentumokat. T&aacute;mogat&aacute;st a Slitaz
   38.54 -k&ouml;z&ouml;ss&eacute;gi <a href="http://forum.slitaz.org/#idx2">F&oacute;rumon</a>
   38.55 -kereszt&uuml;l kaphat. </p>
   38.56 -<p>A Cooking verzi&oacute;hoz nincs t&aacute;j&eacute;koztat&oacute;, a
   38.57 -v&aacute;ltoztat&aacute;sokat k&ouml;zz&eacute;tessz&uuml;k a honlapon,
   38.58 -&eacute;s a <a href="http://labs.slitaz.org/">Labs</a>
   38.59 -szolg&aacute;ltat &uacute;j inform&aacute;ci&oacute;kat a projektbeli
   38.60 -tev&eacute;kenys&eacute;gekr&#337;l. Csak&uacute;gy, mint a stabil
   38.61 -verzi&oacute;hoz, ehhez is tal&aacute;lhat&oacute;
   38.62 -dokument&aacute;ci&oacute; &eacute;s t&aacute;mogat&aacute;s a
   38.63 -k&ouml;z&ouml;ss&eacute;gi f&oacute;rumban.
   38.64 -</p>
   38.65 -
   38.66 -<!-- End of content -->
   38.67 -</div>
   38.68 -
   38.69 -<!-- Footer. -->
   38.70 -<div id="footer">
   38.71 -	<a href="#top">Top of the page</a> - Languages:
   38.72 -	<a href="index.de.html">de</a> |
   38.73 -	<a href="index.en.html">en</a> |
   38.74 -	<a href="index.fr.html">fr</a> |
   38.75 -	<a href="index.hu.html">hu</a> |
   38.76 -	<a href="index.pt.html">pt</a>
   38.77 -</div>
   38.78 -
   38.79 -<div id="copy">
   38.80 -	Copyright &copy; 2010 <a href="http://www.slitaz.org/">SliTaz</a> -
   38.81 -	<a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>;<br />
   38.82 -	Documentation uder
   38.83 -	<a href="http://www.gnu.org/copyleft/fdl.html">GNU Free Documentation License</a>
   38.84 -	and valid <a href="http://validator.w3.org/">xHTML 1.0</a>.
   38.85 -</div>
   38.86 -
   38.87 -</body>
   38.88 -</html>
    39.1 --- a/xfce/rootfs/usr/share/doc/slitaz/index.pt.html	Tue Apr 10 13:00:52 2012 +0200
    39.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    39.3 @@ -1,66 +0,0 @@
    39.4 -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    39.5 -	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    39.6 -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pt" lang="pt">
    39.7 -<head>
    39.8 -	<title>SliTaz - Documentação do Sistema</title>
    39.9 -	<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
   39.10 -	<meta name="description" content="slitaz doc system releases notes information cooking" />
   39.11 -	<meta name="expires" content="never" />
   39.12 -	<meta name="modified" content="2009-04-16 10:30:00" />
   39.13 -	<meta name="publisher" content="www.slitaz.org" />
   39.14 -	<meta name="author" content="Christophe Lincoln"/>
   39.15 -	<link rel="shortcut icon" href="favicon.ico" />
   39.16 -	<link rel="stylesheet" type="text/css" href="book.css" />
   39.17 -</head>
   39.18 -<body bgcolor="#ffffff">
   39.19 -
   39.20 -<!-- Header and quick navigation -->
   39.21 -<div id="header">
   39.22 -<h1><font color="#3E1220">SliTaz - Documentação do Sistema</font></h1>
   39.23 -</div>
   39.24 -
   39.25 -<div id="quicknav">
   39.26 -	SliTaz:
   39.27 -	<a href="http://www.slitaz.org/">Website</a>
   39.28 -	<a href="http://forum.slitaz.org/">Forum</a>
   39.29 -	<a href="http://wiki.slitaz.org/">Wiki</a>
   39.30 -	<a href="http://labs.slitaz.org/">Labs</a>
   39.31 -</div>
   39.32 -
   39.33 -<!-- Content. -->
   39.34 -<div id="content">
   39.35 -
   39.36 -<h2><font color="#DF8F06">Documentação (pt)</font></h2>
   39.37 -
   39.38 -<p>
   39.39 -A versão de testes (cooking) do SliTaz não fornece notas de lançamento, 
   39.40 -qualquer mudança para esta versão é anunciada no website e o 
   39.41 -<a href="http://labs.slitaz.org/">SliTaz Labs</a> traz as últimas notícias 
   39.42 -e atividades do projeto. Assim como na versão estável, você irá obter 
   39.43 -informações sobre a versão de testes no website e suporte no 
   39.44 -<a href="http://forum.slitaz.org/">fórum</a> do projeto.
   39.45 -</p>
   39.46 -
   39.47 -<!-- End of content -->
   39.48 -</div>
   39.49 -
   39.50 -<!-- Footer. -->
   39.51 -<div id="footer">
   39.52 -	<a href="#top">Top of the page</a> - Languages:
   39.53 -	<a href="index.de.html">de</a> |
   39.54 -	<a href="index.en.html">en</a> |
   39.55 -	<a href="index.fr.html">fr</a> |
   39.56 -	<a href="index.hu.html">hu</a> |
   39.57 -	<a href="index.pt.html">pt</a>
   39.58 -</div>
   39.59 -
   39.60 -<div id="copy">
   39.61 -	Copyright &copy; 2010 <a href="http://www.slitaz.org/">SliTaz</a> -
   39.62 -	<a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>;<br />
   39.63 -	Documentation uder
   39.64 -	<a href="http://www.gnu.org/copyleft/fdl.html">GNU Free Documentation License</a>
   39.65 -	and valid <a href="http://validator.w3.org/">xHTML 1.0</a>.
   39.66 -</div>
   39.67 -
   39.68 -</body>
   39.69 -</html>
    40.1 --- a/xfce/rootfs/usr/share/doc/slitaz/template.html	Tue Apr 10 13:00:52 2012 +0200
    40.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    40.3 @@ -1,62 +0,0 @@
    40.4 -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    40.5 -	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    40.6 -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
    40.7 -<head>
    40.8 -	<title>SliTaz - System doc</title>
    40.9 -	<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
   40.10 -	<meta name="description" content="slitaz doc system releases notes information cooking" />
   40.11 -	<meta name="expires" content="never" />
   40.12 -	<meta name="modified" content="2010-01-04 22:40:00" />
   40.13 -	<meta name="publisher" content="www.slitaz.org" />
   40.14 -	<meta name="author" content="Christophe Lincoln"/>
   40.15 -	<link rel="shortcut icon" href="favicon.ico" />
   40.16 -	<link rel="stylesheet" type="text/css" href="book.css" />
   40.17 -</head>
   40.18 -<body bgcolor="#ffffff">
   40.19 -
   40.20 -<!-- Header and quick navigation -->
   40.21 -<div id="header">
   40.22 -<h1><font color="#3E1220">SliTaz - System doc</font></h1>
   40.23 -</div>
   40.24 -
   40.25 -<div id="quicknav">
   40.26 -	SliTaz:
   40.27 -	<a href="http://www.slitaz.org/">Website</a>
   40.28 -	<a href="http://forum.slitaz.org/">Forum</a>
   40.29 -	<a href="http://wiki.slitaz.org/">Wiki</a>
   40.30 -	<a href="http://labs.slitaz.org/">Labs</a>
   40.31 -</div>
   40.32 -
   40.33 -<!-- Content. -->
   40.34 -<div id="content">
   40.35 -<div class="content-right"></div>
   40.36 -
   40.37 -<h2><font color="#DF8F06">Template</font></h2>
   40.38 -
   40.39 -<p>
   40.40 -CONTENT
   40.41 -</p>
   40.42 -
   40.43 -<!-- End of content -->
   40.44 -</div>
   40.45 -
   40.46 -<!-- Footer. -->
   40.47 -<div id="footer">
   40.48 -	<a href="#top">Top of the page</a> - Languages:
   40.49 -	<a href="index.de.html">de</a> |
   40.50 -	<a href="index.en.html">en</a> |
   40.51 -	<a href="index.fr.html">fr</a> |
   40.52 -	<a href="index.hu.html">hu</a> |
   40.53 -	<a href="index.pt.html">pt</a>
   40.54 -</div>
   40.55 -
   40.56 -<div id="copy">
   40.57 -	Copyright &copy; 2010 <a href="http://www.slitaz.org/">SliTaz</a> -
   40.58 -	<a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>;<br />
   40.59 -	Documentation uder
   40.60 -	<a href="http://www.gnu.org/copyleft/fdl.html">GNU Free Documentation License</a>
   40.61 -	and valid <a href="http://validator.w3.org/">xHTML 1.0</a>.
   40.62 -</div>
   40.63 -
   40.64 -</body>
   40.65 -</html>
    41.1 Binary file xfce/rootfs/usr/share/images/slitaz-background.jpg has changed
    42.1 Binary file xfce/rootfs/usr/share/pixmaps/slitaz-menu.png has changed
    43.1 Binary file xfce/rootfs/usr/share/slim/themes/slitaz/background.png has changed
    44.1 Binary file xfce/rootfs/usr/share/slim/themes/slitaz/panel.png has changed
    45.1 --- a/xfce/rootfs/usr/share/slim/themes/slitaz/slim.theme	Tue Apr 10 13:00:52 2012 +0200
    45.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    45.3 @@ -1,37 +0,0 @@
    45.4 -# SliTaz theme for SLiM
    45.5 -# 
    45.6 -
    45.7 -# Messages
    45.8 -msg_color               #000000
    45.9 -msg_font                Vera:size=18:bold:dpi=75
   45.10 -msg_x                   50%
   45.11 -msg_y                   35%
   45.12 -msg_shadow_color #FFFFFF
   45.13 -msg_shadow_xoffset 1
   45.14 -msg_shadow_yoffset 1
   45.15 -
   45.16 -# valid values: stretch, tile
   45.17 -background_style        tile
   45.18 -background_color        #1e0a0c
   45.19 -
   45.20 -# Input controls
   45.21 -input_panel_x           50%
   45.22 -input_panel_y           50%
   45.23 -input_name_x            64
   45.24 -input_name_y            179
   45.25 -input_font          	Vera:size=11:dpi=75
   45.26 -input_fgcolor           #000000
   45.27 -
   45.28 -# Username / password request
   45.29 -username_font          	Vera:size=18:bold:dpi=75
   45.30 -username_color        	#eeede9
   45.31 -username_x              50%
   45.32 -username_y              140
   45.33 -password_x              50%
   45.34 -password_y              140
   45.35 -username_shadow_color   #000000
   45.36 -username_shadow_xoffset 1
   45.37 -username_shadow_yoffset 1
   45.38 -
   45.39 -username_msg            Username:
   45.40 -password_msg            Password:
    46.1 --- a/xfce/rootfs/usr/share/webhome/index.html	Tue Apr 10 13:00:52 2012 +0200
    46.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    46.3 @@ -1,68 +0,0 @@
    46.4 -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    46.5 -    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    46.6 -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    46.7 -<head>
    46.8 -    <title>SliTaz - Web Homepage</title>
    46.9 -    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
   46.10 -    <meta name="author" content="Christophe Lincoln"/>
   46.11 -    <link rel="shortcut icon" href="favicon.ico" />
   46.12 -    <link rel="stylesheet" type="text/css" href="style.css" />
   46.13 -</head>
   46.14 -<body>
   46.15 -
   46.16 -<!-- Header -->
   46.17 -<div id="header">
   46.18 -	<h1>Browse the Web</h1>
   46.19 -</div>
   46.20 -
   46.21 -<!-- Content -->
   46.22 -<div id="content">
   46.23 -
   46.24 -<div style="text-align: center; margin: 20px;">
   46.25 -<table>
   46.26 -	<!-- Search Wikipedia -->
   46.27 -	<tr>
   46.28 -		<th><strong>Wikipedia :</strong></th>
   46.29 -		<td>
   46.30 -			<form action="http://www.wikipedia.org/search-redirect.php" method="get">
   46.31 -				<input type="hidden" name="language" value="en" />
   46.32 -				<input type="text" name="search" size="30" />
   46.33 -				<input type="submit" name="go" value="Search" />
   46.34 -			</form>
   46.35 -		</td>
   46.36 -	</tr>
   46.37 -	<!-- Search Google -->
   46.38 -	<tr>
   46.39 -		<th><strong>Google :</strong></th>
   46.40 -		<td>
   46.41 -			<form method="get" action="http://www.google.com/search">
   46.42 -				<input type="text" name="q" size="30" maxlength="255" value="" />
   46.43 -				<input type="submit" value="Search" />
   46.44 -			</form>
   46.45 -		</td>
   46.46 -	</tr>
   46.47 -</table>
   46.48 -</div>
   46.49 -
   46.50 -<!-- Shortcuts -->
   46.51 -<div style="text-align: center; margin: 10px;">
   46.52 -	<strong>SliTaz :</strong>
   46.53 -	<a href="http://www.slitaz.org/">Website</a> | 
   46.54 -	<a href="http://doc.slitaz.org/">Documentation</a> |
   46.55 -	<a href="http://forum.slitaz.org/">Forum</a> |
   46.56 -	<a href="http://labs.slitaz.org/">Labs</a> |
   46.57 -	<a href="http://pkgs.slitaz.org/">Packages</a>
   46.58 -</div>
   46.59 -
   46.60 -<div style="text-align: center;">
   46.61 -<img
   46.62 -	src="pics/slitaz-tux.png" 
   46.63 -	title="SliTaz and Tux" alt="slitaz-tux"
   46.64 -	style="width: 90px; height: 98px;" />
   46.65 -</div>
   46.66 -
   46.67 -<!-- End of content -->
   46.68 -</div>
   46.69 -
   46.70 -</body>
   46.71 -</html>
    47.1 --- a/xfce/rootfs/usr/share/webhome/netsurf.html	Tue Apr 10 13:00:52 2012 +0200
    47.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    47.3 @@ -1,66 +0,0 @@
    47.4 -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    47.5 -    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    47.6 -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    47.7 -<head>
    47.8 -    <title>SliTaz - Web Homepage</title>
    47.9 -    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
   47.10 -    <meta name="author" content="Christophe Lincoln"/>
   47.11 -    <link rel="shortcut icon" href="favicon.ico" />
   47.12 -    <link rel="stylesheet" type="text/css" href="netsurf.css" />
   47.13 -</head>
   47.14 -<body>
   47.15 -
   47.16 -<!-- Header -->
   47.17 -<div id="header">
   47.18 -<h1>Browse the Web</h1>
   47.19 -</div>
   47.20 -
   47.21 -<!-- Content -->
   47.22 -<div id="content">
   47.23 -
   47.24 -<div style="text-align: center; margin-top: 40px;">
   47.25 -<table>
   47.26 -	<!-- Search Wikipedia -->
   47.27 -	<tr>
   47.28 -		<th><strong>[ Wikipedia ]</strong></th>
   47.29 -		<td>
   47.30 -			<form action="http://www.wikipedia.org/search-redirect.php" method="get">
   47.31 -				<input type="hidden" name="language" value="en" />
   47.32 -				<input type="text" name="search" size="30" />
   47.33 -				<input type="submit" name="go" value="Search" />
   47.34 -			</form>
   47.35 -		</td>
   47.36 -	</tr>
   47.37 -	<!-- Search Google -->
   47.38 -	<tr>
   47.39 -		<th><strong>[ Google ]</strong></th>
   47.40 -		<td>
   47.41 -			<form method="get" action="http://www.google.com/search">
   47.42 -				<input type="text" name="q" size="30" maxlength="255" value="" />
   47.43 -				<input type="submit" value="Search" />
   47.44 -			</form>
   47.45 -		</td>
   47.46 -	</tr>
   47.47 -</table>
   47.48 -</div>
   47.49 -
   47.50 -<!-- Shortcuts -->
   47.51 -<div style="text-align: center; margin-top: 30px;">
   47.52 -	SliTaz :
   47.53 -	<a href="http://www.slitaz.org/">Website</a> |
   47.54 -	<a href="http://doc.slitaz.org/">Documentation</a> |
   47.55 -	<a href="http://forum.slitaz.org/">Forum</a> |
   47.56 -	<a href="http://pkgs.slitaz.org/">Packages</a> |
   47.57 -	<a href="http://labs.slitaz.org/">Labs</a>
   47.58 -</div>
   47.59 -<div style="text-align: center; margin-top: 20px;">
   47.60 -	NetSurf :
   47.61 -	<a href="http://www.netsurf-browser.org/">Website</a> |
   47.62 -	<a href="http://www.netsurf-browser.org/documentation/">Documentation</a>
   47.63 -</div>
   47.64 -
   47.65 -<!-- End of content with round corner -->
   47.66 -</div>
   47.67 -
   47.68 -</body>
   47.69 -</html>
    48.1 --- a/xfce/rootfs/usr/share/webhome/style.css	Tue Apr 10 13:00:52 2012 +0200
    48.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    48.3 @@ -1,113 +0,0 @@
    48.4 -/*
    48.5 -	CSS style for SliTaz GNU/Linux local home page
    48.6 -	www.slitaz.org - (c) 2008 SliTaz Community
    48.7 -*/
    48.8 -
    48.9 -body {
   48.10 -	background: white;
   48.11 -	color: black;
   48.12 -	font: 13px sans-serif, vernada, arial;
   48.13 -	margin: 0 0 0 0;
   48.14 -	padding-bottom: 100%;
   48.15 -}
   48.16 -
   48.17 -#header {
   48.18 -	background: #f0ba08 url(pics/header.png) repeat-x top;
   48.19 -	color: black;
   48.20 -	width: 100%;
   48.21 -	height: 50px ;
   48.22 -	border-top: 1px solid black;
   48.23 -	border-bottom: 1px solid black;
   48.24 -	/* margin-bottom: 30px; */
   48.25 -}
   48.26 -
   48.27 -#header h1 {
   48.28 -	padding: 10px;
   48.29 -	text-align: center;
   48.30 -}
   48.31 -
   48.32 -/* Page content */
   48.33 -
   48.34 -
   48.35 -#content {
   48.36 -	height: auto;
   48.37 -	margin: 10px 100px 0px 100px;
   48.38 -	padding: 0px 72px 0px 72px;
   48.39 -}
   48.40 -
   48.41 -#content li {
   48.42 -	line-height: 1.5em;
   48.43 -	text-align: left;
   48.44 -}
   48.45 -
   48.46 -/* Footer */
   48.47 -
   48.48 -#bottom {
   48.49 -	float: none;
   48.50 -	background: inherit;
   48.51 -	color: black;
   48.52 -	width: auto;
   48.53 -	clear: both;
   48.54 -	padding: 0;
   48.55 -	margin: 0;
   48.56 -	text-align: center;
   48.57 -	vertical-align: middle;
   48.58 -}
   48.59 -
   48.60 -/* CSS class. */
   48.61 -
   48.62 -
   48.63 -/* HTML styles */
   48.64 -
   48.65 -h1 {
   48.66 -	margin: 0px 0px 0px 16px;
   48.67 -}
   48.68 -
   48.69 -h2 {
   48.70 -    color: #DF8F06;
   48.71 -    border-left: 10px solid #F3F3F3;
   48.72 -    padding: 4px 0px 4px 4px;
   48.73 -    margin: 0;
   48.74 -}
   48.75 -
   48.76 -h3 {
   48.77 -	font-weight: bold;
   48.78 -	color: #6c0023;
   48.79 -	background: inherit;
   48.80 -}
   48.81 -
   48.82 -a {
   48.83 -	text-decoration: underline;
   48.84 -	color: #0F314E;
   48.85 -	background: inherit;
   48.86 -}
   48.87 -
   48.88 -a:hover {
   48.89 -	text-decoration: none;
   48.90 -	color: blue;
   48.91 -	background: inherit;
   48.92 -}
   48.93 -
   48.94 -img {
   48.95 -	border: 0pt none;
   48.96 -}
   48.97 -
   48.98 -/* Table */
   48.99 -
  48.100 -table {
  48.101 -	width: variable;
  48.102 -	margin-left: auto;
  48.103 -	margin-right: auto;
  48.104 -}
  48.105 -
  48.106 -td {
  48.107 -	width: variable;
  48.108 -	padding: 6px;
  48.109 -}
  48.110 -
  48.111 -th {
  48.112 -	width: variable;
  48.113 -
  48.114 -
  48.115 -	text-align: right;
  48.116 -}