flavors rev 115

core: remove all rootfs addfiles ther are now packaged
author Christophe Lincoln <pankso@slitaz.org>
date Sat Jun 18 11:37:16 2011 +0200 (2011-06-18)
parents 6892605beb55
children b2d79d7113d2
files core/rootfs/etc/lxpanel/slitaz/panels/bottom core/rootfs/etc/lxpanel/slitaz/panels/panel core/rootfs/etc/slitaz/tazpanel.conf core/rootfs/usr/bin/tazinst core/rootfs/usr/share/doc/slitaz/tazinst.fr.html core/rootfs/usr/share/images/panel-background.png core/rootfs/usr/share/slim/themes/slitaz/panel.png core/rootfs/usr/share/slim/themes/slitaz/slim.theme
line diff
     1.1 --- a/core/rootfs/etc/lxpanel/slitaz/panels/bottom	Wed Jun 01 12:07:12 2011 +0200
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,70 +0,0 @@
     1.4 -# lxpanel <profile> config file. Manually editing is not recommended.
     1.5 -# Use preference dialog in lxpanel to adjust config when you can.
     1.6 -
     1.7 -Global {
     1.8 -    edge=bottom
     1.9 -    allign=center
    1.10 -    margin=0
    1.11 -    widthtype=percent
    1.12 -    width=100
    1.13 -    height=24
    1.14 -    transparent=0
    1.15 -    tintcolor=#ffffff
    1.16 -    alpha=20
    1.17 -    autohide=0
    1.18 -    heightwhenhidden=2
    1.19 -    setdocktype=0
    1.20 -    setpartialstrut=1
    1.21 -    usefontcolor=1
    1.22 -    fontcolor=#ffffff
    1.23 -    background=1
    1.24 -    backgroundfile=/usr/share/images/panel-background.png
    1.25 -    iconsize=24
    1.26 -}
    1.27 -
    1.28 -Plugin {
    1.29 -    type = pager
    1.30 -}
    1.31 -
    1.32 -Plugin {
    1.33 -    type = space
    1.34 -    Config {
    1.35 -        Size=4
    1.36 -    }
    1.37 -}
    1.38 -
    1.39 -Plugin {
    1.40 -    type = taskbar
    1.41 -    expand=1
    1.42 -    Config {
    1.43 -        tooltips=1
    1.44 -        IconsOnly=0
    1.45 -        ShowAllDesks=0
    1.46 -        UseMouseWheel=1
    1.47 -        UseUrgencyHint=1
    1.48 -        FlatButton=1
    1.49 -        MaxTaskWidth=200
    1.50 -        spacing=2
    1.51 -        GroupedTasks=1
    1.52 -    }
    1.53 -}
    1.54 -
    1.55 -Plugin {
    1.56 -    type = dclock
    1.57 -    Config {
    1.58 -        ClockFmt=%R
    1.59 -        TooltipFmt=%A %x - %R
    1.60 -        BoldFont=1
    1.61 -        IconOnly=0
    1.62 -    }
    1.63 -}
    1.64 -
    1.65 -Plugin {
    1.66 -    type = launchbar
    1.67 -    Config {
    1.68 -        Button {
    1.69 -            id=/usr/share/applications/slitaz-logout.desktop
    1.70 -        }
    1.71 -    }
    1.72 -}
    1.73 -
     2.1 --- a/core/rootfs/etc/lxpanel/slitaz/panels/panel	Wed Jun 01 12:07:12 2011 +0200
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,146 +0,0 @@
     2.4 -# lxpanel <profile> config file. Manually editing is not recommended.
     2.5 -# Use preference dialog in lxpanel to adjust config when you can.
     2.6 -
     2.7 -Global {
     2.8 -    edge=top
     2.9 -    allign=center
    2.10 -    margin=0
    2.11 -    widthtype=percent
    2.12 -    width=100
    2.13 -    height=24
    2.14 -    transparent=0
    2.15 -    tintcolor=#ffffff
    2.16 -    alpha=20
    2.17 -    autohide=0
    2.18 -    heightwhenhidden=2
    2.19 -    setdocktype=0
    2.20 -    setpartialstrut=1
    2.21 -    usefontcolor=1
    2.22 -    fontcolor=#ffffff
    2.23 -    background=1
    2.24 -    backgroundfile=/usr/share/images/panel-background.png
    2.25 -    iconsize=22
    2.26 -}
    2.27 -
    2.28 -Plugin {
    2.29 -    type = space
    2.30 -    Config {
    2.31 -        Size=4
    2.32 -    }
    2.33 -}
    2.34 -
    2.35 -Plugin {
    2.36 -    type = menu
    2.37 -    Config {
    2.38 -        name=SliTazMenu.directory
    2.39 -        image=/usr/share/pixmaps/slitaz-menu.png
    2.40 -        system {
    2.41 -        }
    2.42 -        separator {
    2.43 -        }
    2.44 -        item {
    2.45 -            image=exec
    2.46 -            command=run
    2.47 -        }
    2.48 -        separator {
    2.49 -        }
    2.50 -        item {
    2.51 -            image=logout
    2.52 -            command=logout
    2.53 -        }
    2.54 -    }
    2.55 -}
    2.56 -
    2.57 -Plugin {
    2.58 -    type = space
    2.59 -    Config {
    2.60 -        Size=2
    2.61 -    }
    2.62 -}
    2.63 -
    2.64 -Plugin {
    2.65 -    type = launchbar
    2.66 -    Config {
    2.67 -        Button {
    2.68 -            id=/usr/share/applications/xterm.desktop
    2.69 -        }
    2.70 -        Button {
    2.71 -            id=/usr/share/applications/leafpad.desktop
    2.72 -        }
    2.73 -        Button {
    2.74 -            id=/usr/share/applications/tazweb.desktop
    2.75 -        }
    2.76 -    }
    2.77 -}
    2.78 -
    2.79 -Plugin {
    2.80 -    type = space
    2.81 -    expand=1
    2.82 -    Config {
    2.83 -        Size=2
    2.84 -    }
    2.85 -}
    2.86 -
    2.87 -Plugin {
    2.88 -    type = tray
    2.89 -}
    2.90 -
    2.91 -Plugin {
    2.92 -    type = space
    2.93 -    Config {
    2.94 -        Size=4
    2.95 -    }
    2.96 -}
    2.97 -
    2.98 -Plugin {
    2.99 -    type = volumealsa
   2.100 -}
   2.101 -
   2.102 -Plugin {
   2.103 -    type = space
   2.104 -    Config {
   2.105 -        Size=8
   2.106 -    }
   2.107 -}
   2.108 -
   2.109 -Plugin {
   2.110 -    type = netstatus
   2.111 -    Config {
   2.112 -        iface=wlan0
   2.113 -        configtool=subox netbox %i
   2.114 -    }
   2.115 -}
   2.116 -
   2.117 -Plugin {
   2.118 -    type = space
   2.119 -    Config {
   2.120 -        Size=4
   2.121 -    }
   2.122 -}
   2.123 -
   2.124 -Plugin {
   2.125 -    type = batt
   2.126 -    Config {
   2.127 -        HideIfNoBattery=0
   2.128 -        AlarmCommand=xmessage Battery low
   2.129 -        AlarmTime=5
   2.130 -        BackgroundColor=black
   2.131 -        BorderWidth=1
   2.132 -        ChargingColor1=#28f200
   2.133 -        ChargingColor2=#22cc00
   2.134 -        DischargingColor1=#ffee00
   2.135 -        DischargingColor2=#d9ca00
   2.136 -        Size=8
   2.137 -    }
   2.138 -}
   2.139 -
   2.140 -Plugin {
   2.141 -    type = cpu
   2.142 -}
   2.143 -
   2.144 -Plugin {
   2.145 -    type = space
   2.146 -    Config {
   2.147 -        Size=2
   2.148 -    }
   2.149 -}
     3.1 --- a/core/rootfs/etc/slitaz/tazpanel.conf	Wed Jun 01 12:07:12 2011 +0200
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,34 +0,0 @@
     3.4 -# tazpanel.conf: SliTaz Web Control Panel configuration
     3.5 -#
     3.6 -# Copyright (C) 2011 SliTaz GNU/Linux - BSD License
     3.7 -#
     3.8 -
     3.9 -# Panel location and theme
    3.10 -PANEL="/var/www/tazpanel"
    3.11 -STYLE="default"
    3.12 -
    3.13 -# Absolute path to images and xHTML skel from $PANEL
    3.14 -IMAGES="/styles/$STYLE/images"
    3.15 -HEADER="/styles/$STYLE/header.html"
    3.16 -FOOTER="/styles/$STYLE/footer.html"
    3.17 -
    3.18 -# Display some debug messages
    3.19 -DEBUG="0"
    3.20 -
    3.21 -# Activity log file
    3.22 -LOG_FILE="/var/log/slitaz/tazpanel.log"
    3.23 -
    3.24 -# Terminal settings
    3.25 -TERMINAL="xterm"
    3.26 -TERM_OPTS="-geometry 80x16-0+24 -bg black -fg white"
    3.27 -
    3.28 -# Generic page loading message
    3.29 -LOADING_MSG="Loading..."
    3.30 -
    3.31 -# Busybox HTTP daemon config
    3.32 -HTTPD_CONF="/etc/slitaz/httpd.conf"
    3.33 -HTTPD_PORT="82"
    3.34 -
    3.35 -# Shared Tazpkg paths
    3.36 -LOCALSTATE="/var/lib/tazpkg"
    3.37 -INSTALLED="$LOCALSTATE/installed"
     4.1 --- a/core/rootfs/usr/bin/tazinst	Wed Jun 01 12:07:12 2011 +0200
     4.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.3 @@ -1,1248 +0,0 @@
     4.4 -#!/bin/sh
     4.5 -# slitaz-installer - SliTaz GNU/Linux installer.
     4.6 -#
     4.7 -# So this is the SliTaz installer. The script starts with a
     4.8 -# few main variables, then all the functions and then the 
     4.9 -# full sequence of functions.
    4.10 -#
    4.11 -# (C) 2007-2011 SliTaz - GNU General Public License v3.
    4.12 -#
    4.13 -# Authors : Christophe Lincoln <pankso@slitaz.org>
    4.14 -#
    4.15 -
    4.16 -VERSION=2.99
    4.17 -
    4.18 -#
    4.19 -SOURCE_ROOT=/media/source
    4.20 -TARGET_ROOT=/mnt/target
    4.21 -LOG=/var/log/tazinst.log
    4.22 -BACKLIST="SliTaz GNU/Linux installer"
    4.23 -
    4.24 -# Default debug
    4.25 -DEBUG=0
    4.26 -
    4.27 -# Mirror urls
    4.28 -URL_STABLE="http://mirror.slitaz.org/iso/stable/slitaz-3.0.iso"
    4.29 -URL_COOKING="http://mirror.slitaz.org/iso/cooking/slitaz-cooking.iso"
    4.30 -URL_ROLLING="http://mirror.slitaz.org/iso/rolling/slitaz-core.iso"
    4.31 -
    4.32 -# Print a short help
    4.33 -usage()
    4.34 -{
    4.35 -	echo -e "\n`gettext \"Tazinst - SliTaz installer - Version\"`: $VERSION\n"
    4.36 -	echo -e "\033[1m`gettext \"Usage\"`:"
    4.37 -	echo -e "\033[0m `gettext \"tazinst [command] [config-file|options]\n\"`"
    4.38 -	echo -e "\033[1m`gettext \"Commands\"`: \033[0m"
    4.39 -	echo -e "usage         Print this short usage."
    4.40 -	echo -e "install       Install SliTaz on HDD using a configuration file."
    4.41 -	echo -e "upgrade       Upgrade SLiTaz on HDD using a configuration file."
    4.42 -	echo -e "config        Generate a configuration file."
    4.43 -	echo -e "cli           Install or upgrade using command line options:"
    4.44 -	echo -e "  -i             `gettext \"Full Install (not upgrading, all present data will be lost).\"`"
    4.45 -	echo -e "  -u             `gettext \"Upgrade (Needs an active internet connection).\"`"
    4.46 -	echo -e "  -t <type>      `gettext \"Install type (cdrom|usb|iso|web|weboot).\"`"
    4.47 -	echo -e "  -m <source>    `gettext \"Source media (ex: file.iso|usb partition|web url)\"`"
    4.48 -	echo -e "  -p <partition> `gettext \"Partition where SliTaz will be installed (ex:/dev/hda3).\"`"
    4.49 -	echo -e "  -f <fs>        `gettext \"Partition will be formatted (fs=ext2|ext3|ext4|etc..).\"`"
    4.50 -	echo -e "  -g             `gettext \"Install Grub.\"`"
    4.51 -	echo -e "  -w             `gettext \"Dual-boot a Windows partition (auto|hd<disk>,<part> ex:hd0,0).\"`"
    4.52 -	echo -e "  -d             `gettext \"Debug mode.\"`"
    4.53 -	exit 0
    4.54 -}
    4.55 -
    4.56 -# Print an error msg & exit
    4.57 -# $1: exit code
    4.58 -# $@: err msg
    4.59 -abort()
    4.60 -{
    4.61 -	# unmouting source & target
    4.62 -	if mount | grep -q $SOURCE_ROOT; then
    4.63 -		umount $SOURCE_ROOT 2>>$LOG
    4.64 -	fi
    4.65 -	if mount | grep -q $TARGET_ROOT; then
    4.66 -		umount $TARGET_ROOT 2>>$LOG
    4.67 -	fi
    4.68 -	echo "Error $@"
    4.69 -	echo "Installation canceled"
    4.70 -	test $(id -u) = 0 && echo "Installation canceled on error $@" >> $LOG
    4.71 -	exit $1
    4.72 -}
    4.73 -
    4.74 -# Print a warning msg
    4.75 -warning()
    4.76 -{
    4.77 -	echo "Warning: $@" | tee -a $LOG
    4.78 -}
    4.79 -
    4.80 -# Print a debug msg
    4.81 -debug()
    4.82 -{
    4.83 -	[ $DEBUG -gt 0 ] && echo -e "\033[1mDEBUG: \033[0m$1" 
    4.84 -	echo "DEBUG: $1" >>$LOG
    4.85 -}
    4.86 -
    4.87 -# print a msg
    4.88 -msg()
    4.89 -{
    4.90 -	STEP=$(($STEP+1))
    4.91 -	echo "$STEP. $@" | tee -a $LOG
    4.92 -}
    4.93 -
    4.94 -########################
    4.95 -# Gen-config functions #
    4.96 -########################
    4.97 -
    4.98 -# Generate a config file
    4.99 -# $1: Configuration file
   4.100 -gen_config()
   4.101 -{
   4.102 -	CONFILE=$1
   4.103 -	touch $CONFILE || error 1 "Unable to write $CONFILE"
   4.104 -	if [ -r "$CONFILE" ]; then
   4.105 -		cat > $CONFILE << _EOF_
   4.106 -# tazinst.conf: SliTaz Installer configuration file.
   4.107 -#
   4.108 -
   4.109 -# Install type : [cdrom|usb|iso|web|weboot]
   4.110 -INST_TYPE="cdrom"
   4.111 -
   4.112 -# Install source
   4.113 -# usb:/dev/xxx, ex: SRC_FILE=/dev/sdb1
   4.114 -# iso:file.iso, ex: SRC_FILE=~/slitaz.3.0.iso
   4.115 -# web: url, ex: SRC_FILE=http://mirror.slitaz.org/iso/cooking/slitaz-cooking.iso
   4.116 -# web: predefinites (stable|cooking|rolling), ex: SRC_FILE=cooking
   4.117 -SRC_FILE=""
   4.118 -
   4.119 -# Install Target (Root Partition).
   4.120 -TGT_PARTITION="/dev/hda5"
   4.121 -
   4.122 -# Target File system.  
   4.123 -# SliTaz uses ext3 by default but another filesystem can be used if wanted,
   4.124 -# for this please adjust your /etc/fstab after installation. Valid options are:
   4.125 -# (btrfs|ext2|ext3|ext4|fat16|fat32|hfs|hfs+|jfs|ntfs|reiser4|reiserfs|ufs|xfs)
   4.126 -TGT_FS="ext3"
   4.127 -
   4.128 -# Home partition.
   4.129 -# On most GNU/Linux systems users personal files are stored in the directory
   4.130 -# /home. Home can be on a separate partition or another hard disk.
   4.131 -TGT_HOME=""
   4.132 -# Home File system (if /home is on a separate partition)
   4.133 -TGT_HOME_FS=""
   4.134 -
   4.135 -# Hostname
   4.136 -TGT_HOSTNAME="slitaz"
   4.137 -
   4.138 -# roor password
   4.139 -# The root administrator privilege lets you manage and configure the full
   4.140 -# system. A root user can damage your system so you should always setup a
   4.141 -# strong password with special characters and/or numbers.
   4.142 -TGT_ROOT_PWD="root"
   4.143 -
   4.144 -# The default user for the system will have his personal files stored
   4.145 -# in /home/*user* (and will be automatically added to the audio group).
   4.146 -TGT_USER="tux"
   4.147 -TGT_USER_PWD=""
   4.148 -
   4.149 -# Grub bootloader
   4.150 -# install grub [yes|no]
   4.151 -TGT_GRUB="no"
   4.152 -# Where to find menu.lst (dedicated grub part. or multi-os install)
   4.153 -# If you don't know what to do, it's safe to leave it blank
   4.154 -TGT_MENU_PARTITION=""
   4.155 -
   4.156 -# Windows dual-boot
   4.157 -# Dual boot is disabled if WINBOOT is empty: TGT_WINBOOT=""
   4.158 -# You may let tazinst find your win partition, mode=auto: TGT_WINBOOT="auto"
   4.159 -# or set manual setting: "hd[disk],[partition]" ex:TGT_WINBOOT=hd0,0
   4.160 -TGT_WINBOOT=""
   4.161 -
   4.162 -_EOF_
   4.163 -
   4.164 -	else
   4.165 -		abort 2 "Configuration file $CONFILE not found"
   4.166 -	fi
   4.167 -
   4.168 -}
   4.169 -
   4.170 -######################
   4.171 -# Checking functions #
   4.172 -######################
   4.173 -
   4.174 -
   4.175 -# def values and start log
   4.176 -# $@ : 
   4.177 -init()
   4.178 -{
   4.179 -	echo "=== Tazinst start at `date` ===" >$LOG
   4.180 -	echo "Command: $0 $@" >>$LOG
   4.181 -
   4.182 -	# Default Type
   4.183 -	INST_TYPE=cdrom
   4.184 -	# Default Hostname.
   4.185 -	TGT_HOSTNAME=slitaz
   4.186 -	# Default root passwd
   4.187 -	TGT_ROOT_PWD=root
   4.188 -	# Default user
   4.189 -	TGT_USER=tux
   4.190 -	# Default Grub Install
   4.191 -	TGT_GRUB=no
   4.192 -}
   4.193 -
   4.194 -# Read Conf
   4.195 -# $1: conf file
   4.196 -read_configuration_file()
   4.197 -{
   4.198 -	CONFILE=$1
   4.199 -	if [ -n "$CONFILE" ]; then
   4.200 -		if [ -r "$CONFILE" ]; then
   4.201 -			debug "Using config-file=$CONFILE"
   4.202 -			# source doesn't like file without a path
   4.203 -			[ $(echo "$CONFILE" | grep -c "/") == "0" ] && CONFILE="./$CONFILE"
   4.204 -			source $CONFILE || abort 2 "Unable to read $CONFILE"
   4.205 -		else
   4.206 -			abort 2 "Configuration file not found"
   4.207 -		fi
   4.208 -	else
   4.209 -		abort 2 "No configuration file provided"
   4.210 -	fi
   4.211 -}
   4.212 -
   4.213 -# Cli options
   4.214 -# $@: tazinst parms
   4.215 -check_cli_options()
   4.216 -{
   4.217 -	shift
   4.218 -	while getopts "c:df:ghip:s:t:uw:" opt ; do
   4.219 -		case $opt in
   4.220 -			d) DEBUG=1 ;;
   4.221 -			f) TGT_FS=$OPTARG ;;
   4.222 -			g) TGT_GRUB="yes" ;;
   4.223 -			h) usage ;;
   4.224 -			i) INSTALL="install" ;;
   4.225 -			p) TGT_PARTITION=$OPTARG ;;
   4.226 -			s) SRC_FILE=$OPTARG ;;
   4.227 -			t) INST_TYPE=$OPTARG ;;
   4.228 -			u) UPGRADE="upgrade" ;;
   4.229 -			w) TGT_WINBOOT=$OPTARG ;;
   4.230 -			[?]) abort 1 ;;
   4.231 -		esac
   4.232 -	done
   4.233 -
   4.234 -	# Duplicate install modes are forbidden
   4.235 -	[ -n "$INSTALL" ] && [ -n "$UPGRADE" ] && abort 1 "Mismatched parameters"
   4.236 -	INST_ACTION="$INSTALL$UPGRADE"
   4.237 -	# Don't allow formatting on upgrades
   4.238 -	[ "$INST_ACTION" == "upgrade" ] && [ -n "$TGT_FS" ] && \
   4.239 -		warning "Partition $TGT_PARTITION will not be formatted during upgrade"
   4.240 -}
   4.241 -
   4.242 -# check main vars
   4.243 -check_vars()
   4.244 -{
   4.245 -	# error handling
   4.246 -	local error=no
   4.247 -	local found=no
   4.248 -	local partition=""
   4.249 -
   4.250 -	debug "--- Tazinst main options  ---"
   4.251 -	debug "action=$INST_ACTION"
   4.252 -	debug "type=$INST_TYPE"
   4.253 -	debug "source=$SRC_FILE"
   4.254 -	debug "/ partition=$TGT_PARTITION"
   4.255 -	debug "/ filesystem=$TGT_FS"
   4.256 -	debug "/home partition=$TGT_HOME"
   4.257 -	debug "/home filesystem=$TGT_HOME_FS"
   4.258 -	debug "hostname=$TGT_HOSTNAME"
   4.259 -	debug "root-pwd=$TGT_ROOT_PWD"
   4.260 -	debug "user=$TGT_USER"
   4.261 -	debug "user-pwd=$TGT_USER_PWD"
   4.262 -	debug "grub=$TGT_GRUB"
   4.263 -	debug "winboot=$TGT_WINBOOT"
   4.264 -	debug "--------------------------------------"
   4.265 -
   4.266 -	# Check Action
   4.267 -	case $INST_ACTION in
   4.268 -		install|upgrade) ;;
   4.269 -		*) msg "INST_ACTION=$INST_ACTION: Invalid setting"; error=yes ;;
   4.270 -	esac
   4.271 -
   4.272 -	# Check Type
   4.273 -	case $INST_TYPE in
   4.274 -		cdrom|weboot) ;;
   4.275 -		usb|iso|web)
   4.276 -			# We need a valid source 
   4.277 -			if [ -z "$SRC_FILE" ]; then
   4.278 -				echo "Type is $INST_TYPE, but INST_SOURCE is not set"; error=yes
   4.279 -			fi ;;
   4.280 -		*) msg "INST_TYPE=$INST_TYPE: Invalid setting"; error=yes ;;
   4.281 -	esac
   4.282 -
   4.283 -	# Check Source file
   4.284 -	# 1. assign predefs
   4.285 -	if [ "$INST_TYPE" == "web" ]; then
   4.286 -		[ "$SRC_FILE" == "stable" ] && SRC_FILE=$URL_STABLE
   4.287 -		[ "$SRC_FILE" == "cooking" ] && SRC_FILE=$URL_COOKING
   4.288 -		[ "$SRC_FILE" == "rolling" ] && SRC_FILE=$URL_ROLLING
   4.289 -	fi
   4.290 -	# 2. check avail.
   4.291 -	case $INST_TYPE in
   4.292 -		iso)
   4.293 -			if [ ! -r "$SRC_FILE" ]; then
   4.294 -				msg "SRC_FILE=$SRC_FILE: file not found" ; error=yes
   4.295 -			fi ;;
   4.296 -		web)
   4.297 -			if [ $(wget -sq "$SRC_FILE") ]; then
   4.298 -				msg "SRC_FILE=$SRC_FILE: file not found" ; error=yes
   4.299 -			fi ;;
   4.300 -	esac
   4.301 -
   4.302 -	# Check Target Partition
   4.303 -	found=no
   4.304 -	LIST_PARTITION=$(fdisk -l | awk '/^\/dev/{printf "%s ",$1}')
   4.305 -	for partition in $LIST_PARTITION; do
   4.306 -		[ "$partition" == "$TGT_PARTITION" ] && found="yes"
   4.307 -	done
   4.308 -	if [ "$found" != "yes" ]; then
   4.309 -		msg "TGT_PARTITION=$TGT_PARTITION Partition not found"; error=yes
   4.310 -	fi
   4.311 -
   4.312 -	# Check Filesystem
   4.313 -	case $TGT_FS in
   4.314 -		"") ;;
   4.315 -		btrfs|ext2|ext3|ext4|fat16|fat32|hfs|hfs+|jfs|ntfs|reiser4|reiserfs|ufs|xfs)
   4.316 -			found=no
   4.317 -			for xdir in /sbin /usr/sbin /usr/bin; do
   4.318 -				[ -x "$xdir/mkfs.$TGT_FS" ] && found=yes
   4.319 -			done
   4.320 -			if [ "$found" == "no" ]; then
   4.321 -				msg "$TGT_FS: mkfs.$TGT_FS is not installed."; error=yes
   4.322 -			fi ;;
   4.323 -		*) msg "TGT_FS=$TGT_FS: Invalid setting"; error=yes ;;
   4.324 -	esac
   4.325 -
   4.326 -	# Check Home partition
   4.327 -	if [ -n "$TGT_HOME" ]; then
   4.328 -		found=no
   4.329 -		for partition in $LIST_PARTITION; do
   4.330 -			[ "$partition" == "$TGT_HOME" ] && found=yes
   4.331 -		 done
   4.332 -		if [ "$found" != "yes" ]; then
   4.333 -			msg "TGT_HOME=$TGT_HOME: Not found"; error=yes
   4.334 -		fi
   4.335 -	fi
   4.336 -
   4.337 -	# Check Home Filesystem
   4.338 -	case $TGT_HOME_FS in
   4.339 -		"") ;;
   4.340 -		btrfs|ext2|ext3|ext4|fat16|fat32|hfs|hfs+|jfs|ntfs|reiser4|reiserfs|ufs|xfs)
   4.341 -			found=no
   4.342 -			for xdir in /sbin /usr/sbin /usr/bin; do
   4.343 -				[ -x "$xdir/mkfs.$TGT_FS" ] && found=yes
   4.344 -			done
   4.345 -			if [ "$found" == "no" ]; then
   4.346 -				msg "$TGT_FS: mkfs.$TGT_FS is not installed."; error=yes
   4.347 -			fi ;;
   4.348 -		*) msg "TGT_HOME_FS=$TGT_HOME_FS: Invalid setting"; error=yes ;;
   4.349 -	esac
   4.350 -
   4.351 -	# Check Grub
   4.352 -	case $TGT_GRUB in
   4.353 -		yes|no) ;;
   4.354 -		*) msg "TGT_GRUB=$TGT_GRUB: Invalid setting"; error=yes ;;
   4.355 -	esac
   4.356 -
   4.357 -	# Check Winboot
   4.358 -	case $TGT_WINBOOT in
   4.359 -		"") ;;
   4.360 -		auto) ;;
   4.361 -		hd[[:digit:]],[[:digit:]]) ;;
   4.362 -		*) msg "TGT_WINBOOT=$TGT_WINBOOT: Invalid format"; error=yes ;;
   4.363 -	esac
   4.364 -
   4.365 -	# Stop on error
   4.366 -	[ "$error" == "yes" ] && abort 1
   4.367 -}
   4.368 -
   4.369 -# Exit install if user is not root.
   4.370 -check_root()
   4.371 -{
   4.372 -	if test $(id -u) != 0 ; then
   4.373 -		echo "You must be the root user (system administrator) to install SliTaz, \
   4.374 -please use 'su' to get a root SHell and restart installation."
   4.375 -		exit 0
   4.376 -	fi
   4.377 -}
   4.378 -
   4.379 -# Mount cdrom
   4.380 -check_cdrom()
   4.381 -{
   4.382 -	# Set device name
   4.383 -	DRIVE_NAME=`cat /proc/sys/dev/cdrom/info | grep "drive name" | cut -f 3` [ -n "$DRIVE_NAME" ] || DRIVE_NAME=cdrom
   4.384 -	CDROM=/dev/$DRIVE_NAME
   4.385 -	# Try to mount a cdrom
   4.386 -	if mount -t iso9660 $CDROM $SOURCE_ROOT 2>>$LOG; then
   4.387 -		debug "Using files from cdrom ($CDROM)..."
   4.388 -		sleep 2
   4.389 -	else
   4.390 -		warning "Failed to mount $CDROM"
   4.391 -	fi
   4.392 -}
   4.393 -
   4.394 -# Link LiveUSB
   4.395 -check_usb()
   4.396 -{
   4.397 -	# /home is on USB dev
   4.398 -	if [ -d /home/boot ]; then
   4.399 -		debug "Using files from USB device..."
   4.400 -		ln -s /home/boot $SOURCE_ROOT/boot
   4.401 -		SOURCE_STATUS="link"
   4.402 -		sleep 2
   4.403 -	else
   4.404 -		# Try to mount LiveUSB
   4.405 -		if mount $SRC_FILE $SOURCE_ROOT 2>>$LOG; then
   4.406 -			debug "Using files from USB device ($SRC_FILE)..."
   4.407 -			SOURCE_STATUS="mount"
   4.408 -		else
   4.409 -			warning "Failed to mount USB device $SRC_FILE"
   4.410 -		fi
   4.411 -	fi
   4.412 -}
   4.413 -
   4.414 -# Mount ISO file
   4.415 -check_iso()
   4.416 -{
   4.417 -	local src_md5
   4.418 -	# Integrity check
   4.419 -	src_md5=$(echo $SRC_FILE | sed 's/.iso$/.md5/')
   4.420 -	if [ -r "$src_md5" ]; then
   4.421 -		[ $(md5sum $SRC_FILE | cut -d' ' -f1) == $(cat "$src_md5" | cut -d' ' -f1) ] || \
   4.422 -			abort 3 "$SRC-FILE corrupted"
   4.423 -	else
   4.424 -		warning "$src_md5 not found, unable to check integrity of $SRC_FILE"	
   4.425 -	fi
   4.426 -	# Try to mount ISO
   4.427 -	if mount -o loop -t iso9660 $SRC_FILE $SOURCE_ROOT 2>>$LOG; then
   4.428 -		debug "Using files from ISO ($SRC_FILE)..."
   4.429 -		sleep 2
   4.430 -	else
   4.431 -		warning "Failed to mount ISO '$SRC_FILE'"
   4.432 -	fi
   4.433 -}
   4.434 -
   4.435 -# Source is on the web
   4.436 -check_web()
   4.437 -{
   4.438 -	local src_md5
   4.439 -	debug "Downloading $SRC_FILE"
   4.440 -	if wget $SRC_FILE -P /tmp; then
   4.441 -		debug "Download completed."
   4.442 -	else
   4.443 -		warning "Failed to download '$SRC_FILE'"
   4.444 -	fi
   4.445 -	src_md5=$(echo $SRC_FILE | sed 's/.iso$/.md5/')
   4.446 -	debug "Downloading $src_md5"
   4.447 -	wget $src_md5 -P /tmp || warning "Failed to download '$src_md5'"
   4.448 -	tmpfile=$(echo $SRC_FILE | awk 'BEGIN{RS="/"}{out=$1}END{printf"%s",out}')
   4.449 -	SRC_FILE="/tmp/$tmpfile"
   4.450 -	check_iso
   4.451 -}
   4.452 -
   4.453 -# We may be in Tiny Web boot mode
   4.454 -check_weboot()
   4.455 -{
   4.456 -	if [ -d $SRC_FILE/boot ]; then
   4.457 -		debug "Using files from HTTP device..."
   4.458 -		ln -s $SRC_FILE/boot $SOURCE_ROOT/boot
   4.459 -		sleep 2
   4.460 -	else
   4.461 -		abort 3 "Error: Web boot files not found"
   4.462 -	fi
   4.463 -}
   4.464 -
   4.465 -# set up source and check Slitaz' content
   4.466 -check_source()
   4.467 -{
   4.468 -	debug "Creating mount point ($SOURCE_ROOT)..."
   4.469 -	mkdir -p $SOURCE_ROOT
   4.470 -	sleep 1
   4.471 -	case $INST_TYPE in
   4.472 -	cdrom)
   4.473 -		check_cdrom ;;
   4.474 -	usb)
   4.475 -		check_usb ;;
   4.476 -	iso)
   4.477 -		check_iso ;;
   4.478 -	web)
   4.479 -		check_web ;;
   4.480 -	weboot)
   4.481 -		check_cdrom
   4.482 -		check_web ;;
   4.483 -	*)
   4.484 -		abort 8 "Internal" ;;
   4.485 -	esac
   4.486 -
   4.487 -	# Exit with error msg if no rootfs.gz found.
   4.488 -	debug "Checking installation media..."
   4.489 -	if [ ! -f $SOURCE_ROOT/boot/rootfs.gz -a \
   4.490 -		 ! -f $SOURCE_ROOT/boot/rootfs1.gz ]; then
   4.491 -		abort 3 "Invalid source"
   4.492 -	else
   4.493 -		debug "Installation media checked ok"
   4.494 -	fi
   4.495 -}
   4.496 -
   4.497 -# Tiny summary
   4.498 -summary()
   4.499 -{
   4.500 -	echo "Installation settings summary:"
   4.501 -	STEP=0
   4.502 -
   4.503 -	if [ "$INST_ACTION" == "install" ]; then
   4.504 -		if [ -n "$TGT_FS" ]; then
   4.505 -			msg "Format root partition '$TGT_PARTITION' ($TGT_FS)"
   4.506 -		fi
   4.507 -		if [ -n "$TGT_HOME_FS" ]; then
   4.508 -			msg "Format /home partition '$TGT_HOME' ($TGT_HOME_FS)"
   4.509 -		fi	
   4.510 -		msg "Install SliTaz on '$TGT_PARTITION' from $INST_TYPE"
   4.511 -		[ -n "$TGT_HOME" ] && msg "Set Home partition to '$TGT_HOME'"
   4.512 -		msg "Set Hostname as '$TGT_HOSTNAME'"
   4.513 -		msg "Set Default user as '$TGT_USER'"
   4.514 -	else
   4.515 -		msg "Check '$TGT_PARTITION'"
   4.516 -		msg "Backup /etc, /home and the packages list"
   4.517 -		msg "Upgrade SliTaz on '$TGT_PARTITION' from $INST_TYPE"
   4.518 -		msg "Restore /etc, /home"
   4.519 -		msg "Upgrade additional packages."
   4.520 -	fi
   4.521 -	if [ -n "$TGT_WINBOOT" ]; then
   4.522 -		msg "Enable Windows dual-boot ($TGT_WINBOOT)"
   4.523 -	fi
   4.524 -	if [ "$TGT_GRUB" == "yes" ]; then
   4.525 -		msg "Install Grub"
   4.526 -	fi
   4.527 -
   4.528 -	echo -n "Continue:(y/n)"
   4.529 -	read answer
   4.530 -	case $answer in
   4.531 -		[yY]) echo "Running $BACKLIST.." ;;
   4.532 -		*) abort 4 "Cancelled by user" ;;
   4.533 -	esac
   4.534 -	STEP=0
   4.535 -}
   4.536 -
   4.537 -#######################
   4.538 -# Installer functions #
   4.539 -#######################
   4.540 -
   4.541 -# Mount and mkfs with progress.
   4.542 -prepare_install()
   4.543 -{
   4.544 -	debug "Preparing target partition..."
   4.545 -	# Mount point can be already used.
   4.546 -	if mount | grep -q $TARGET_ROOT; then
   4.547 -		umount $TARGET_ROOT 2>>$LOG
   4.548 -	fi
   4.549 -	sleep 2
   4.550 -
   4.551 -	# Formatting root partition
   4.552 -	case $TGT_FS in
   4.553 -		"")
   4.554 -			debug "The partition ($TGT_PARTITION) will be cleaned..."
   4.555 -#			ROOT_FS=$(parted /dev/hda5 print -m | grep "^1:" | cut -d':' -f5) ;;
   4.556 -			ROOT_FS=auto ;;
   4.557 -		*)
   4.558 -			msg "Formatting $TGT_PARTITION ($TGT_FS)"
   4.559 -			mkfs.$TGT_FS $TGT_PARTITION >>$LOG 2>>$LOG
   4.560 -			ROOT_FS=$TGT_FS ;;
   4.561 -	esac
   4.562 -	sleep 2
   4.563 -
   4.564 -	# Formatting /home
   4.565 -	if [ -n "$TGT_HOME" ]; then
   4.566 -		case $TGT_HOME_FS in
   4.567 -			"")
   4.568 -				debug "The partition ($TGT_HOME) will be kept..." ;;
   4.569 -			*)
   4.570 -				msg "Formatting /home on $TGT_HOME ($TGT_HOME_FS)"
   4.571 -				mkfs.$TGT_HOME_FS -L "Home" $TGT_HOME >>$LOG 2>>$LOG ;;
   4.572 -		esac
   4.573 -		sleep 2
   4.574 -	fi
   4.575 -
   4.576 -	# Mount target.
   4.577 -	debug "Creating mount point: $TARGET_ROOT"
   4.578 -	mkdir -p $TARGET_ROOT >>$LOG
   4.579 -	sleep 2
   4.580 -
   4.581 -	mount -t $ROOT_FS $TGT_PARTITION $TARGET_ROOT >>$LOG 2>>$LOG
   4.582 -	if [ $(mount | grep -c "mnt/target") == "0" ]; then
   4.583 -		abort 5 "Can't mount $TGT_PARTITION"
   4.584 -	fi
   4.585 -}
   4.586 -
   4.587 -# Get a clean target device (15%).
   4.588 -clean_target()
   4.589 -{
   4.590 -	if [ -z "$TGT_FS" ]; then
   4.591 -		# partition was not formatted
   4.592 -		debug "Cleaning the root partition ($TGT_PARTITION)..."
   4.593 -		# Keep /home in case of reinstall.
   4.594 -		cd $TARGET_ROOT || abort 8 "Internal"
   4.595 -		for dir in *
   4.596 -		do
   4.597 -			case "$dir" in
   4.598 -				home)
   4.599 -					debug "keeping /home found on: $TGT_PARTITION"
   4.600 -					mv home home.bak ;;
   4.601 -				lost+found)
   4.602 -					continue ;;
   4.603 -				*)
   4.604 -					debug "removing target: $dir"
   4.605 -					rm -rf $dir 2>>$LOG ;;
   4.606 -			esac
   4.607 -		done
   4.608 -		if [ -d mklost+found ]; then
   4.609 -			mklost+found 2>>$LOG
   4.610 -		fi
   4.611 -	fi
   4.612 -	sleep 2
   4.613 -}
   4.614 -
   4.615 -# Kernel is renamed to standard vmlinuz-$VERSION.
   4.616 -install_kernel()
   4.617 -{
   4.618 -	if [ -d /$TARGET_ROOT/lib/modules ]; then
   4.619 -		KERNEL=$(ls /$TARGET_ROOT/lib/modules | tail -1)
   4.620 -		KERNEL="vmlinuz-$KERNEL"
   4.621 -	else
   4.622 -		warning "Falling back to running kernel name.."
   4.623 -		KERNEL=vmlinuz-`uname -r`
   4.624 -	fi
   4.625 -	mkdir -p $TARGET_ROOT/boot
   4.626 -	cp $SOURCE_ROOT/boot/bzImage $TARGET_ROOT/boot/$KERNEL
   4.627 -	debug "install_kernel: $KERNEL"
   4.628 -	sleep 2
   4.629 -}
   4.630 -
   4.631 -# Copy isolinux r/w files (not syslinux, some files are read only).
   4.632 -copy_bootloaders()
   4.633 -{
   4.634 -	if [ -d "$SOURCE/ROOT/boot/isolinux" ]; then
   4.635 -		debug "Copy isolinux r/w files"
   4.636 -		mkdir -p $TARGET_ROOT/boot/isolinux
   4.637 -		cp -a $SOURCE_ROOT/boot/isolinux/*.cfg $TARGET_ROOT/boot/isolinux
   4.638 -		cp -a $SOURCE_ROOT/boot/isolinux/*.kbd $TARGET_ROOT/boot/isolinux
   4.639 -		cp -a $SOURCE_ROOT/boot/isolinux/*.txt $TARGET_ROOT/boot/isolinux
   4.640 -		cp -a $SOURCE_ROOT/boot/isolinux/*.bin $TARGET_ROOT/boot/isolinux
   4.641 -		cp -a $SOURCE_ROOT/boot/isolinux/*.msg $TARGET_ROOT/boot/isolinux
   4.642 -		cp -a $SOURCE_ROOT/boot/isolinux/*.lss $TARGET_ROOT/boot/isolinux
   4.643 -		cp -a $SOURCE_ROOT/boot/isolinux/*.c32 $TARGET_ROOT/boot/isolinux
   4.644 -	fi
   4.645 -}
   4.646 -
   4.647 -need_package()
   4.648 -{
   4.649 -	[ -d /var/lib/tazpkg/installed/$1 ] || tazpkg get-install $1
   4.650 -}
   4.651 -
   4.652 -# extract packed rootfs: squashfs or cromfs
   4.653 -extract_loramfs()
   4.654 -{
   4.655 -	local i
   4.656 -	for i in $(cpio -idvum 2> /dev/null); do
   4.657 -		case "$i" in
   4.658 -		rootfs*)
   4.659 -			need_package squashfs
   4.660 -			if ! unsquashfs $i ; then
   4.661 -				need_package cromfs
   4.662 -				unmkcromfs $i squashfs-root
   4.663 -			fi
   4.664 -			mv -f squashfs-root/* .
   4.665 -			rmdir squashfs-root
   4.666 -			rm -f $i
   4.667 -		esac
   4.668 -	done
   4.669 -}
   4.670 -
   4.671 -# This is a loram rootfs.gz, skip loram bootstrap and extract
   4.672 -extract_first_loramfs()
   4.673 -{
   4.674 -	(zcat $1 || unlzma -c $1) | cpio -i extractfs.cpio 2> /dev/null &&
   4.675 -		( cd / ; cpio -id ) < extractfs.cpio && rm -f extractfs.cpio
   4.676 -	ofs=$(awk '/07070100/ { o+=index($0,"07070100"); printf "%d\n",o/4 ; exit } { o+=1+length() }' < $1)
   4.677 -	dd if=$1 skip=$(($ofs / 1024)) bs=4k count=1 2> /dev/null | \
   4.678 -	( dd skip=$(($ofs % 1024)) bs=4 2> /dev/null ; \
   4.679 -	  dd if=$1 skip=$((1 + ($ofs / 1024) )) bs=4k ) | extract_loramfs			  
   4.680 -}
   4.681 -
   4.682 -# Extract lzma'ed or gziped rootfs.
   4.683 -extract_rootfs()
   4.684 -{
   4.685 -	local isloramfs
   4.686 -	isloramfs=
   4.687 -	cd $TARGET_ROOT || abort 8 "Internal"
   4.688 -	if [ -d $1/../fs/etc ]; then
   4.689 -		# This is a tazlitobox loram (cdrom)
   4.690 -		cp -a $1/../fs/. .
   4.691 -	else
   4.692 -	for i in $(ls $1/rootfs* | sort -r); do
   4.693 -		if [ ! -d etc ]; then
   4.694 -			if [ $( (zcat $i 2>/dev/null || lzma d $i -so) | wc -c) \
   4.695 -					-lt $(stat -c %s $i) ]; then
   4.696 -				# This is a tazlitobox loram (ram)
   4.697 -				isloramfs=$i
   4.698 -				extract_first_loramfs $i
   4.699 -				continue
   4.700 -			fi
   4.701 -		fi
   4.702 -		if [ -n "$isloramfs" ]; then
   4.703 -			extract_loramfs < $i
   4.704 -			continue
   4.705 -		fi
   4.706 -		( zcat $i 2>/dev/null || lzma d $i -so || \
   4.707 -		  cat $i ) 2>>$LOG | cpio -idu
   4.708 -	done 2>>$LOG > /dev/null
   4.709 -	fi
   4.710 -	cp /etc/keymap.conf etc
   4.711 -	# unpack /usr (double check...)
   4.712 -	if ls etc/tazlito | grep -q ".extract"; then
   4.713 -		for i in etc/tazlito/*.extract; do
   4.714 -			[ -f "$i" ] && . $i /media/cdrom
   4.715 -		done
   4.716 -	fi
   4.717 -}
   4.718 -
   4.719 -# Pre configure freshly installed system (60 - 80%).
   4.720 -pre_config_system()
   4.721 -{
   4.722 -	cd $TARGET_ROOT || abort 8 "Internal"
   4.723 -	# Restore backup of existing /home if exists.
   4.724 -	# (created by prepare_target_dev)
   4.725 -	if [ -d home.bak ]; then
   4.726 -		debug "Restoring directory: /home..."
   4.727 -		rm -rf home
   4.728 -		mv home.bak home
   4.729 -		sleep 1
   4.730 -	fi
   4.731 -	# Add root device to CHECK_FS in rcS.conf to check filesystem
   4.732 -	# on each boot.
   4.733 -	debug "Adding $TGT_PARTITION and CHECK_FS to file /etc/rcS.conf..."
   4.734 -	sed -i s#'CHECK_FS=\"\"'#"CHECK_FS=\"$TGT_PARTITION\""# etc/rcS.conf
   4.735 -	sleep 2
   4.736 -	# Set hostname.
   4.737 -	msg "Configuring host name: $TGT_HOSTNAME"
   4.738 -	echo $TGT_HOSTNAME > etc/hostname
   4.739 -}
   4.740 -
   4.741 -# Set root passwd and create user after rootfs extraction.
   4.742 -users_settings()
   4.743 -{
   4.744 -	cat > $TARGET_ROOT/users.sh << _EOF_
   4.745 -#!/bin/sh
   4.746 -echo "root:$TGT_ROOT_PWD" | chpasswd
   4.747 -adduser -D -H $TGT_USER
   4.748 -
   4.749 -for grp in audio cdrom floppy dialout disk kmem tape tty video; do
   4.750 - if ! grep \$grp /etc/group | grep -q $TGT_USER ; then
   4.751 -	grep -q \$grp /etc/group && addgroup $TGT_USER \$grp
   4.752 - fi
   4.753 -done
   4.754 -
   4.755 -echo "$TGT_USER:$TGT_USER_PWD" | chpasswd
   4.756 -if [ ! -d /home/$TGT_USER ]; then
   4.757 -	cp -a /etc/skel /home/$TGT_USER
   4.758 -	cp /root/.xinitrc /home/$TGT_USER
   4.759 -	mkdir -p /home/$TGT_USER/.config/slitaz
   4.760 -	cp -a /etc/slitaz/applications.conf /home/$TGT_USER/.config/slitaz
   4.761 -	chown -R $TGT_USER.users /home/$TGT_USER
   4.762 -	# Path for user desktop files.
   4.763 -	for i in /home/$TGT_USER/.local/share/applications/*.desktop
   4.764 -	do
   4.765 -		[ -e "$i" ] && sed -i s/"user_name"/"$TGT_USER"/g \$i
   4.766 -	done
   4.767 -fi
   4.768 -# Slim default user.
   4.769 -if [ -f /etc/slim.conf ]; then
   4.770 -	sed -i s/"default_user .*"/"default_user        $TGT_USER"/ \
   4.771 -		/etc/slim.conf
   4.772 -fi
   4.773 -_EOF_
   4.774 -	chmod +x $TARGET_ROOT/users.sh
   4.775 -	chroot $TARGET_ROOT ./users.sh
   4.776 -	rm $TARGET_ROOT/users.sh
   4.777 -	sleep 2
   4.778 -}
   4.779 -
   4.780 -# /home can be on a separate partition. If default user exist in /home
   4.781 -# we remove default file crated by users_settings().
   4.782 -home_config()
   4.783 -{
   4.784 -	debug "home_config: $TGT_HOME"
   4.785 -	cd $TARGET_ROOT || abort 8 "Internal"
   4.786 -	mv home/$TGT_USER tmp
   4.787 -	mount $TGT_HOME home
   4.788 -	if [ -d $TARGET_ROOT/home/$TGTUSER ]; then
   4.789 -		rm -rf tmp/$TGT_USER
   4.790 -	else
   4.791 -		mv tmp/$TGT_USER home
   4.792 -	fi
   4.793 -	echo "$TGT_HOME       /home        ext3    defaults          0       2" \
   4.794 -		>> etc/fstab
   4.795 -	umount home
   4.796 -}
   4.797 -
   4.798 -# Search for a Windows partition
   4.799 -win_partition()
   4.800 -{
   4.801 -	msg "Enabling Windows dual-boot"
   4.802 -	if [ "$TGT_WINBOOT" == "auto" ];then
   4.803 -		WINBOOT=$(fdisk -l | awk '
   4.804 -BEGIN{disk=-1,	found=-1,	winboot=""}
   4.805 -{
   4.806 -	# Counting disk
   4.807 -	if ($1=="Disk"){disk++, part=-1}
   4.808 -	# Counting partition
   4.809 -	if (substr($1,1,4)=="/dev"){part++}
   4.810 -	# Read partition Id
   4.811 - 	if ($2=="*"){Id=$6}	else {Id=$5}
   4.812 -	# Detect Windows type
   4.813 -	if (Id=="7" || Id=="b"){
   4.814 -		if (found){
   4.815 -			# record 1st Windows partition found
   4.816 -			winboot=sprintf("hd%d,%d",disk,part),found++}
   4.817 -		}
   4.818 -}
   4.819 -END{printf "%s", winboot}')
   4.820 -		if [ -z "$WINBOOT" ]; then
   4.821 -			warning "No windows partition found. Dual-boot disabled"
   4.822 -			TGT_WINBOOT=""
   4.823 -		fi
   4.824 -	fi
   4.825 -}
   4.826 -
   4.827 -# Determine GRUB partition number and GRUB disk number.
   4.828 -grub_partition()
   4.829 -{
   4.830 -	DISK_LETTER=${TGT_PARTITION#/dev/[h-s]d}
   4.831 -	DISK_LETTER=${DISK_LETTER%[0-9]}
   4.832 -	GRUB_PARTITION=$((${TGT_PARTITION#/dev/[h-s]d[a-z]}-1))
   4.833 -	for disk in a b c d e f g h
   4.834 -	do
   4.835 -		nb=$(($nb+1))
   4.836 -		if [ "$disk" = "$DISK_LETTER" ]; then
   4.837 -			GRUB_DISK=$(($nb-1))
   4.838 -			break
   4.839 -		fi
   4.840 -	done
   4.841 -	GRUB_ROOT="(hd${GRUB_DISK},${GRUB_PARTITION})"
   4.842 -}
   4.843 -
   4.844 -# Create grub conf
   4.845 -grub_config()
   4.846 -{
   4.847 -	grub_partition
   4.848 -	win_partition
   4.849 -	# Create the target GRUB configuration.
   4.850 -	mkdir -p $TARGET_ROOT/boot/grub
   4.851 -	. /etc/locale.conf
   4.852 -	cat > $TARGET_ROOT/boot/grub/menu.lst << _EOF_
   4.853 -# /boot/grub/menu.lst: GRUB boot loader configuration.
   4.854 -#
   4.855 -
   4.856 -# By default, boot the first entry.
   4.857 -default 0
   4.858 -
   4.859 -# Boot automatically after 8 secs.
   4.860 -timeout 8
   4.861 -
   4.862 -# Graphical splash image.
   4.863 -splashimage=/boot/grub/splash.xpm.gz
   4.864 -
   4.865 -# Change the colors.
   4.866 -#color yellow/brown light-green/black
   4.867 -
   4.868 -# For booting SliTaz from : $TGT_PARTITION
   4.869 -#
   4.870 -title SliTaz GNU/Linux (cooking) (Kernel $KERNEL)
   4.871 -root $GRUB_ROOT
   4.872 -kernel /boot/$KERNEL root=$TGT_PARTITION lang=$LANG
   4.873 -
   4.874 -_EOF_
   4.875 -	if [ -n "$TGT_WINBOOT" ]; then
   4.876 -	cat >> $TARGET_ROOT/boot/grub/menu.lst << _EOF_
   4.877 -# For booting Windows :
   4.878 -#
   4.879 -title Microsoft Windows
   4.880 -	  rootnoverify ($WINBOOT)
   4.881 -	  chainloader +1
   4.882 -
   4.883 -_EOF_
   4.884 -	fi
   4.885 -	# log
   4.886 -	debug "grub_config: $TARGET_ROOT/boot/grub/menu.lst"
   4.887 -	echo "--- menu.lst -------------" >>$LOG
   4.888 -	cat $TARGET_ROOT/boot/grub/menu.lst >>$LOG
   4.889 -	echo "--- menu.lst -------------" >>$LOG
   4.890 -	sleep 2
   4.891 -}
   4.892 -
   4.893 -# Files install, calling for functions or with cmds.
   4.894 -install_files()
   4.895 -{
   4.896 -	msg "Installing SliTaz on $TGT_PARTITION"
   4.897 -	# saving pwd
   4.898 -	local save_pwd=$(pwd)
   4.899 -
   4.900 -	debug "Cleaning the root partition if necessary..."
   4.901 -	clean_target
   4.902 -
   4.903 -	debug "Extracting the root system..."
   4.904 -	extract_rootfs $SOURCE_ROOT/boot
   4.905 -
   4.906 -	debug "Installing the kernel..."
   4.907 -	install_kernel
   4.908 -
   4.909 -	debug "Copying the bootloader syslinux/isolinux..."
   4.910 -	copy_bootloaders
   4.911 -
   4.912 -	debug "Preconfiguring the system..."
   4.913 -	pre_config_system
   4.914 -
   4.915 -	msg "Configuring root and default $USER account..."
   4.916 -	users_settings
   4.917 -
   4.918 -	if [ "$TGT_HOME" != "" ]; then
   4.919 -		msg "Configuring $TGT_HOME to be used as /home..."
   4.920 -		home_config
   4.921 -		sleep 2
   4.922 -	fi
   4.923 -
   4.924 -	debug "Creating configuration file for GRUB (menu.lst)..."
   4.925 -	grub_config
   4.926 -
   4.927 -	debug "Files installation completed"
   4.928 -	sleep 2
   4.929 -	# restoring pwd
   4.930 -	cd $save_pwd
   4.931 -}
   4.932 -
   4.933 -# GRUB info with disk name used for grub-install.
   4.934 -grub_install()
   4.935 -{
   4.936 -	if [ "$TGT_GRUB" == "yes" ]; then
   4.937 -		TARGET_DISK=`echo $TGT_PARTITION | sed s/"[0-9]"/''/`
   4.938 -		msg "Running grub-install on : $TARGET_DISK"
   4.939 -		grub-install --no-floppy \
   4.940 -				--root-directory=$TARGET_ROOT $TARGET_DISK 2>>$LOG
   4.941 -		debug "Grub installation done..."
   4.942 -	else
   4.943 -		debug "Grub not installed"
   4.944 -	fi
   4.945 -}
   4.946 -
   4.947 -# Copy log file, umount target and eject cdrom.
   4.948 -umount_devices()
   4.949 -{
   4.950 -	# Log files
   4.951 -	debug "Copying log files ($LOG)..."
   4.952 -	cp -a $LOG $TARGET_ROOT/var/log
   4.953 -	sleep 2
   4.954 -
   4.955 -	# Umount target
   4.956 -	if mount | grep -q $TARGET_ROOT; then
   4.957 -		echo "Unmounting target ($TGT_PARTITION)..."
   4.958 -	umount $TARGET_ROOT 2>>$LOG
   4.959 -	fi
   4.960 -
   4.961 -	# Umount source
   4.962 -	if mount | grep -q $SOURCE_ROOT; then
   4.963 -		echo "Unmounting $SOURCE_ROOT"
   4.964 -		umount $SOURCE_ROOT
   4.965 -	fi
   4.966 -
   4.967 -	# Eject cd
   4.968 -	if [ "$INST_TYPE" == "cdrom" ]; then
   4.969 -		echo "Ejecting cdrom..."
   4.970 -		eject
   4.971 -	fi
   4.972 -	sleep 2
   4.973 -}
   4.974 -
   4.975 -# End of installation.
   4.976 -end_of_install()
   4.977 -{
   4.978 -	echo "Installation complete. You can now restart (reboot) \
   4.979 -from your SliTaz GNU/Linux system."
   4.980 -	echo "=== Tazinst end at `date` ===" >>$LOG
   4.981 -	umount_devices
   4.982 -}
   4.983 -
   4.984 -#####################
   4.985 -# Upgrade functions #
   4.986 -#####################
   4.987 -
   4.988 -# Mount.
   4.989 -prepare_upgrade()
   4.990 -{
   4.991 -	debug "Preparing the target partition..."
   4.992 -	# Mount point can be already used.
   4.993 -	if mount | grep -q $TARGET_ROOT; then
   4.994 -		umount $TARGET_ROOT 2>>$LOG
   4.995 -	fi
   4.996 -	mkdir -p $TARGET_ROOT && sleep 2
   4.997 -	# Mount target.
   4.998 -	mount $TGT_PARTITION $TARGET_ROOT >>$LOG 2>>$LOG
   4.999 -	if [ $(mount | grep -c "mnt/target") == "0" ]; then
  4.1000 -		abort 5 "Can't mount $TGT_PARTITION"
  4.1001 -	fi
  4.1002 -}
  4.1003 -
  4.1004 -# Check for a valid SliTaz
  4.1005 -check_release()
  4.1006 -{
  4.1007 -	if [ -f $TARGET_ROOT/etc/slitaz-release ]; then
  4.1008 -		release=`cat $TARGET_ROOT/etc/slitaz-release`
  4.1009 -		msg "Preparing upgrade of SliTaz release: $release"
  4.1010 -	else
  4.1011 -		abort 6 "The partition '$TGT_PARTITION' doesn't appear to contain \
  4.1012 -a SliTaz system, the file: /etc/slitaz-release doesn't exist."
  4.1013 -	fi && sleep 2
  4.1014 -}
  4.1015 -
  4.1016 -# Backup target packages list.
  4.1017 -backup_files()
  4.1018 -{
  4.1019 -	cd $TARGET_ROOT || abort 8 "Internal"
  4.1020 -	ls -1 var/lib/tazpkg/installed > home/packages-selection.list
  4.1021 -	for dir in *
  4.1022 -	do
  4.1023 -		case "$dir" in
  4.1024 -			boot)
  4.1025 -				rm -rf boot/vmlinuz-* ;;
  4.1026 -			home)
  4.1027 -				mv home home.bak
  4.1028 -				debug "keeping /home found on: $TGT_PARTITION" ;;
  4.1029 -			etc)
  4.1030 -				tar czf etc.tar.gz etc
  4.1031 -				mv etc etc.bak
  4.1032 -				debug "keeping /etc found on: $TGT_PARTITION" ;;
  4.1033 -			var)
  4.1034 -				if [ -d var/www ]; then
  4.1035 -					mv var/www www.bak
  4.1036 -					debug "keeping /var/www found on: $TGT_PARTITION"
  4.1037 -				fi
  4.1038 -				rm -rf var 2>>$LOG ;;
  4.1039 -			lost+found)
  4.1040 -				continue ;;
  4.1041 -			*)
  4.1042 -				debug "removing target: $dir"
  4.1043 -				rm -rf $dir 2>>$LOG ;;
  4.1044 -		esac
  4.1045 -	done
  4.1046 -	if [ -d mklost+found ]; then
  4.1047 -		mklost+found 2>>$LOG
  4.1048 -	fi
  4.1049 -	sleep 2
  4.1050 -}
  4.1051 -
  4.1052 -# Restore backups.
  4.1053 -restore_files()
  4.1054 -{
  4.1055 -	rm -rf $TARGET_ROOT/home
  4.1056 -	mv $TARGET_ROOT/home.bak $TARGET_ROOT/home
  4.1057 -	rm -rf $TARGET_ROOT/etc
  4.1058 -	mv $TARGET_ROOT/etc.bak $TARGET_ROOT/etc
  4.1059 -	if [ -d $TARGET_ROOT/www.bak ]; then
  4.1060 -		rm -rf $TARGET_ROOT/var/www
  4.1061 -		mv $TARGET_ROOT/www.bak $TARGET_ROOT/var/www
  4.1062 -	fi
  4.1063 -	debug "backups restored: `date`"
  4.1064 -
  4.1065 -	# /var/lib/slitaz-installer
  4.1066 -	mkdir -p $TARGET_ROOT/var/lib/tazinst
  4.1067 -	mv $TARGET_ROOT/etc.tar.gz $TARGET_ROOT/var/lib/tazinst
  4.1068 -	mv $TARGET_ROOT/home/packages-selection.list $TARGET_ROOT/var/lib/tazinst
  4.1069 -}
  4.1070 -
  4.1071 -# Added pkgs
  4.1072 -install_pkgs()
  4.1073 -{
  4.1074 -	# Check if the pkg is on the mirror.
  4.1075 -	debug "Checking the availability of packages..."
  4.1076 -	touch packages-to-install.list
  4.1077 -	packages=0
  4.1078 -	diff=`cat packages-selection.diff | sort`
  4.1079 -	for pkg in $diff
  4.1080 -	do
  4.1081 -		if grep -q ^$pkg-[0-9] /var/lib/tazpkg/packages.list; then
  4.1082 -			packages=$(($packages+1))
  4.1083 -			echo "$pkg" >> packages-to-install.list
  4.1084 -		fi
  4.1085 -	done
  4.1086 -
  4.1087 -	# Calculate the percent for one package and install.
  4.1088 -	debug "Installing any packages..."
  4.1089 -	sleep 2
  4.1090 -	if [ "$packages" == "0" ]; then
  4.1091 -		debug "packages to install: 0"
  4.1092 -	else
  4.1093 -		onepkg=$((48/$packages))
  4.1094 -		pct=50
  4.1095 -		# Get-install all missing pkgs.
  4.1096 -		for pkg in `cat packages-to-install.list`
  4.1097 -		do
  4.1098 -			pct=$(($pct+$onepkg))
  4.1099 -			echo $pct
  4.1100 -			debug "Installing: $pkg..."
  4.1101 -			# Get install package and answer yes in case of dependencies.
  4.1102 -			pkgname=`grep ^$pkg /var/lib/tazpkg/packages.list`
  4.1103 -			tazpkg get $pkg >/dev/null 2>/dev/null
  4.1104 -			yes "" | tazpkg install $pkgname.tazpkg --root=$TARGET_ROOT >/dev/null 2>/dev/null
  4.1105 -			rm -f $pkgname.tazpkg
  4.1106 -		done
  4.1107 -	fi
  4.1108 -	echo 100
  4.1109 -	debug "Installation of packages complete..."
  4.1110 -	sleep 2
  4.1111 -}
  4.1112 -
  4.1113 -# Search for added pkgs
  4.1114 -update_pkgs()
  4.1115 -{
  4.1116 -	cd $TARGET_ROOT/var/lib/tazinst || abort 8 "Internal"
  4.1117 -	# LiveCD packages list.
  4.1118 -	debug "Creating package lists..."
  4.1119 -	ls -1 $TARGET_ROOT/var/lib/tazpkg/installed > packages-source.list || exit 1
  4.1120 -	debug "packages-source.list: done"
  4.1121 -	# Diff
  4.1122 -	diff packages-source.list packages-selection.list | \
  4.1123 -		grep ^+[a-z] | sed s/^+// > packages-selection.diff
  4.1124 -	debug "packages-selection.diff: done"
  4.1125 -	# Get mirror list.
  4.1126 -	tazpkg recharge >>$LOG 2>>$LOG
  4.1127 -	if [ -f /var/lib/tazpkg/packages.list ]; then
  4.1128 -		install_pkgs
  4.1129 -	else
  4.1130 -		touch packages-to-install.list
  4.1131 -		warning "The list of available packages on the mirror could not be \
  4.1132 -downloaded. No missing packages will be reinstalled now, but \
  4.1133 -you can do so later by looking at the following list: \
  4.1134 -/var/lib/tazinst/packages-selection.diff"
  4.1135 -	fi
  4.1136 -	sleep 2
  4.1137 -}
  4.1138 -
  4.1139 -# Update grub conf
  4.1140 -grub_update()
  4.1141 -{
  4.1142 -	# Backup and create a new grub menu.lst.
  4.1143 -	if [ "$TGT_GRUB" == "yes" ]; then
  4.1144 -		msg "Grub update"
  4.1145 -		mv $TARGET_ROOT/boot/grub/menu.lst \
  4.1146 -			$TARGET_ROOT/boot/grub/menu.lst.bak 2>/dev/null
  4.1147 -		grub_config
  4.1148 -	fi
  4.1149 -}
  4.1150 -
  4.1151 -# Prepare the partition to upgrade, backup, install, restore configs
  4.1152 -# and reinstall pkgs.
  4.1153 -upgrade_files()
  4.1154 -{
  4.1155 -	# saving pwd
  4.1156 -	local save_pwd=$(pwd)
  4.1157 -	cd $TARGET_ROOT || abort 8 "Internal"
  4.1158 -
  4.1159 -	debug "Searching for /etc/slitaz-release"
  4.1160 -	check_release
  4.1161 -
  4.1162 -	msg "Backup /etc, /home and the packages list..."
  4.1163 -	backup_files
  4.1164 -
  4.1165 -	msg "Upgrading SliTaz on $TGT_PARTITION"
  4.1166 -
  4.1167 -	debug "Copying the bootloader syslinux/isolinux..."
  4.1168 -	copy_bootloaders
  4.1169 -
  4.1170 -	debug "Extracting the root system..."
  4.1171 -	extract_rootfs $SOURCE_ROOT/boot
  4.1172 -
  4.1173 -	msg "Restoring configuration files..."
  4.1174 -	restore_files
  4.1175 -
  4.1176 -	debug "Installing the kernel..."
  4.1177 -	install_kernel
  4.1178 -
  4.1179 -	msg "Upgrading added packages..."
  4.1180 -	update_pkgs
  4.1181 -
  4.1182 -	# restoring pwd
  4.1183 -	cd $save_pwd 
  4.1184 -}
  4.1185 -
  4.1186 -# End of system upgrade.
  4.1187 -end_of_upgrade()
  4.1188 -{
  4.1189 -	pkgscd=`cat $TARGET_ROOT/var/lib/tazinst/packages-source.list | wc -l`
  4.1190 -	pkginst=`cat $TARGET_ROOT/var/lib/tazinst/packages-to-install.list | wc -l`
  4.1191 -	echo -e "Upgrade finished. You can now restart (reboot) \
  4.1192 -from your SliTaz GNU/Linux system.
  4.1193 -Packages on the cdrom : $pkgscd
  4.1194 -Packages installed from the mirror : $pkginst"
  4.1195 -	echo "=== Tazinst end at `date` ===" >>$LOG
  4.1196 -	umount_devices
  4.1197 -}
  4.1198 -
  4.1199 -######################
  4.1200 -# Installer sequence #
  4.1201 -######################
  4.1202 -
  4.1203 -case $1 in
  4.1204 -	install)
  4.1205 -		INST_ACTION=install
  4.1206 -		check_root
  4.1207 -		init $@
  4.1208 -		read_configuration_file $2
  4.1209 -		check_vars
  4.1210 -		check_source
  4.1211 -		prepare_install
  4.1212 -		install_files
  4.1213 -		grub_install
  4.1214 -		end_of_install ;;
  4.1215 -	upgrade)
  4.1216 -		INST_ACTION=upgrade
  4.1217 -		check_root
  4.1218 -		init $@
  4.1219 -		read_configuration_file $2
  4.1220 -		check_vars
  4.1221 -		check_source
  4.1222 -		prepare_upgrade
  4.1223 -		upgrade_files
  4.1224 -		grub_update
  4.1225 -		end_of_upgrade ;;
  4.1226 -	config)
  4.1227 -		gen_config $2 ;;
  4.1228 -	cli)
  4.1229 -		check_root
  4.1230 -		init $@
  4.1231 -		check_cli_options $@
  4.1232 -		check_vars
  4.1233 -		check_source
  4.1234 -		summary
  4.1235 -		case $INST_ACTION in
  4.1236 -			upgrade)
  4.1237 -				prepare_upgrade
  4.1238 -				upgrade_files
  4.1239 -				grub_update
  4.1240 -				end_of_upgrade ;;
  4.1241 -			install)
  4.1242 -				prepare_install
  4.1243 -				install_files
  4.1244 -				grub_install
  4.1245 -				end_of_install ;;
  4.1246 -		esac ;;
  4.1247 -	usage|*)
  4.1248 -		usage ;;
  4.1249 -esac
  4.1250 -
  4.1251 -exit 0
     5.1 --- a/core/rootfs/usr/share/doc/slitaz/tazinst.fr.html	Wed Jun 01 12:07:12 2011 +0200
     5.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.3 @@ -1,223 +0,0 @@
     5.4 -<!DOCTYPE html>
     5.5 -<html xmlns="http://www.w3.org/1999/xhtml">
     5.6 -<head>
     5.7 -	<title>Tazinst Manual - Manuel de l'installeur 'tazinst'</title>
     5.8 -	<meta charset="utf-8" />
     5.9 -	<link rel="shortcut icon" href="favicon.ico" />
    5.10 -	<link rel="stylesheet" type="text/css" href="style.css" />
    5.11 -</head>
    5.12 -<body>
    5.13 -
    5.14 -<!-- Header -->
    5.15 -<div id="header">
    5.16 -	<h1>Tazinst Manual</h1>
    5.17 -</div>
    5.18 -
    5.19 -<!-- Start content -->
    5.20 -<div id="content">
    5.21 -
    5.22 -<h2>NOM</h2>
    5.23 -<p>
    5.24 -	Tazinst - Tiny autonomous zone installer manager
    5.25 -</p>
    5.26 -
    5.27 -<h2>SYNTAXE</h2>
    5.28 -<pre>
    5.29 -tazinst [commande] [fichier de configuration]
    5.30 -</pre>
    5.31 -
    5.32 -<h2>DESCRIPTION</h2>
    5.33 -<p>
    5.34 -	Tazinst est l'installateur ultra léger (~29 Ko) de SliTaz sur disque dur.
    5.35 -	Il permet d'installer SliTaz au choix à partir du Live-CD, d'une clé
    5.36 -	LiveUSB, d'une image ISO de SliTaz, ou depuis le web en téléchargeant la
    5.37 -	version stable, la version cooking ou en donnant le lien http d'une autre
    5.38 -	iso (ex: iso de developpement).
    5.39 -</p>
    5.40 -<p>
    5.41 -	Tazinst permet de formatter la partition cible aux formats de base ext2,
    5.42 -	ext3, ext4 ou d'autres formats si les paquets correspondants ont été
    5.43 -	installés. La partition /home peut être installée sur une autre partition,
    5.44 -	et si besoin être formattée avant l'installation dans un des formats
    5.45 -	disponibles. Tazinst peut, à la demande, installer le chargeur de démarrage
    5.46 -	Grub dans le mbr du disque cible. Un dual-boot avec une partition Windows©
    5.47 -	existante est possible, la recherche de la partition Windows© étant soit
    5.48 -	automatique, soit précisée manuellement.
    5.49 -</p>
    5.50 -<p>
    5.51 -	Tazinst permet également la mise à jour de SliTaz déjà installé sur une
    5.52 -	partition du disque dur, ce qui est pratique en cas de changement de
    5.53 -	version. Dans ce cas, Slitaz est mis à jour, les données présentes dans
    5.54 -	/home sont préservées, et les paquets supplémentaires sont réinstallés
    5.55 -	dans la nouvelle version.
    5.56 -</p>
    5.57 -<p>
    5.58 -	Tazinst a été créé pour les besoins de SliTaz GNU/Linux, mini distribution
    5.59 -	autonome.
    5.60 -</p>
    5.61 -<p>
    5.62 -	Tazinst, écrit en script shell à partir de zéro est compatible Bash, et 
    5.63 -	fonctionne avec Ash du projet Busybox. Tazinst est distribué sous license 
    5.64 -	libre GNU gpl v3.
    5.65 -</p>
    5.66 -
    5.67 -<h2>COMMANDES</h2>
    5.68 -<a name="config"></a>
    5.69 -<h3>config</h3>
    5.70 -<p>
    5.71 -	Génère un fichier de configuration autodocumenté, qui une fois édité suivant
    5.72 -	les besoins de l'utilisateur, permettra d'installer ou mettre à jour SliTaz
    5.73 -	sur disque dur, en utilisant <code>tazinst install [nom du fichier]</code>.
    5.74 -</p>
    5.75 -<pre>
    5.76 -tazinst config /var/lib/tazinst.conf
    5.77 -</pre>
    5.78 -
    5.79 -<p>
    5.80 -	Le fichier de configuration contient les variables suivantes :
    5.81 -</p>
    5.82 -<ul>
    5.83 -	<li>Les variables décrivant la source d'installation :</li>
    5.84 -</ul>
    5.85 -
    5.86 -<ol>
    5.87 -<li class="level1"><div class="li"> * INST_TYPE : le type du support contenant les 
    5.88 -fichiers sources de SliTaz, au choix : cdrom (LiveCD de SliTaz), usb (LiveUSB de SliTaz), 
    5.89 -iso (Image ISO de SliTaz), web (Image ISO sur le Web), weboot, ex : <code>INST_TYPE=web
    5.90 -</code></div>
    5.91 -</li>
    5.92 -<li class="level1"><div class="li"> * SRC_FILE : le nom de la source contenant SliTaz. 
    5.93 -Il dépend du type de support :
    5.94 -    <ul>
    5.95 -      <li class="level2"><div class="li">cdrom (LiveCD de SliTaz) : <i>inutilisé</i>
    5.96 -      </div></li>
    5.97 -      <li class="level2"><div class="li">usb (LiveUSB de SliTaz) : Nom de la partition 
    5.98 -	  hôte de périphérique USB, ex : <code>SRC_FILE=/dev/sdb1</code>
    5.99 -      </div></li>
   5.100 -      <li class="level2"><div class="li">iso (Image ISO de SliTaz) : Nom du fichier ISO, 
   5.101 -	  ex : <code>SRC_FILE=~/slitaz.3.0.iso</code>
   5.102 -      </div></li>
   5.103 -      <li class="level2"><div class="li">web (Image ISO sur le Web) : Nom de l'URL, 
   5.104 -	  ex : <code>SRC_FILE=http://mirror.slitaz.org/iso/cooking/slitaz-cooking.iso
   5.105 -	  </code>. À noter que 3 URL sont prédéfinies : 'stable', 'cooking, 'rolling', 
   5.106 -	  ex : <code>SRC_FILE=cooking</code> téléchargera la dernière cooking disponible 
   5.107 -	  sur le web
   5.108 -      </div></li>
   5.109 -      <li class="level2"><div class="li">weboot : <i>inutilisé</i></div></li> 
   5.110 -    </ul></div>
   5.111 -</li>
   5.112 -</ol>
   5.113 -
   5.114 -<ul>
   5.115 -<li class="level1"><div class="li"> Les variables décrivant la partition cible : </div>
   5.116 -</li>
   5.117 -</ul>
   5.118 -
   5.119 -<ol>
   5.120 -<li class="level1"><div class="li"> * TGT_PARTITION : Le nom de la partition cible sur 
   5.121 -laquelle SliTaz sera insallé ou mis à jour, ex : <code>TGT_PARTITION=/dev/hda3</code></div>
   5.122 -</li>
   5.123 -<li class="level1"><div class="li">TGT_FS : Si cette variable est renseignée, la partition 
   5.124 -cible sera formatée dans le système de fichiers indiqué, sinon, la partition sera nettoyée 
   5.125 -et le répertoire /home sera conservé, ex : <code>TGT_FS=ext3</code></div>
   5.126 -</li>
   5.127 -<li class="level1"><div class="li">TGT_HOME : Cette variable indique, si besoin est, le nom 
   5.128 -de la partition recevant le répertoire /home, ex : <code>TGT_HOME=/dev/hda5</code></div>
   5.129 -</li>
   5.130 -<li class="level1"><div class="li">TGT_HOME_FS : Si cette variable est renseignée, la 
   5.131 -partition/home sera formatée dans le système de fichiers indiqué, ex : 
   5.132 -<code>TGT_HOME_FS=ext2</code></div>
   5.133 -</li>
   5.134 -</ol>
   5.135 -
   5.136 -<ul>
   5.137 -<li class="level1"><div class="li"> Les variables de configuration de Slitaz : </div>
   5.138 -</li>
   5.139 -</ul>
   5.140 -
   5.141 -<ol>
   5.142 -<li class="level1"><div class="li">TGT_HOSTNAME : Nom du système, ex : <code>TGT_HOSTNAME=hd-slitaz
   5.143 -</code>, par défaut <code>TGT_HOSTNAME=slitaz</code></div>
   5.144 -</li>
   5.145 -<li class="level1"><div class="li">TGT_ROOT_PWD : Mot de passe du super-utilisateur, ex : 
   5.146 -<code>TGT_ROOT_PWD=toor</code>, par défaut <code>TGT_ROOT_PWD=root</code></div>
   5.147 -</li>
   5.148 -<li class="level1"><div class="li">TGT_USER : Nom de l'utitisateur par défaut, ex : 
   5.149 -<code>TGT_USER=toto</code>, par défaut <code>TGT_USER=tux</code></div>
   5.150 -</li>
   5.151 -<li class="level1"><div class="li">TGT_USER_PWD : Mot de passe de l'utitisateur par 
   5.152 -défaut, ex : <code>TGT_USER_PWD=titi</code>, par défaut <code>TGT_USER_PWD=tux</code></div>
   5.153 -</li>
   5.154 -</ol>
   5.155 -
   5.156 -<ul>
   5.157 -<li class="level1"><div class="li"> Les variables de configuration du chargeur de démarrage 
   5.158 -(bootloader) : </div>
   5.159 -</li>
   5.160 -</ul>
   5.161 -
   5.162 -<ol>
   5.163 -	<li>TGT_GRUB : Installation de GRUB (yes ou no), ex : 
   5.164 -		<code>TGT_GRUB=yes</code>, par défaut <code>TGT_GRUB=no</code>
   5.165 -	</li>
   5.166 -	<li class="level1"><div class="li">TGT_MENU_PARTITION: Nom de la partition où le fichier de 
   5.167 -	configuration de GRUB est installé. Normalement, cette variable n'est pas renseignée, elle peut
   5.168 -	servir dans le cas où GRUB est installé dans une partition dédiée, ou dans une configuration 
   5.169 -	multi-os, ex : <code>TGT_MENU_PARTITION=/dev/hda4</code></div>
   5.170 -	</li>
   5.171 -	<li class="level1"><div class="li">TGT_WINBOOT : Si cette variable est renseignée, elle 
   5.172 -	indique la partition contenant Windows© pour mettre en place un Dual-boot. Elle peut être 
   5.173 -	aussi positionnée à 'auto', dans ce cas le dual-boot se fera sur la première partition 
   5.174 -	Windows© détectée,  ex : <code>TGT_WINBOOT=auto</code></div>
   5.175 -	</li>
   5.176 -</ol>
   5.177 -
   5.178 -<p>
   5.179 -	À noter que seules les variables précédées d'une atérisque sont obligatoires,
   5.180 -	les autres sont optionnelles. Ainsi un fichier de configuration minimaliste
   5.181 -	peut être le suivant:
   5.182 -</p>
   5.183 -<pre>
   5.184 -INST_TYPE=cdrom
   5.185 -TGT_PARTITION=/dev/hda3
   5.186 -</pre>
   5.187 -<p>
   5.188 -	Ce fichier permettra une installation de SliTaz sur /dev/hda3, sans
   5.189 -	formatter la partition, à partir d'un LiveCD.
   5.190 -</p>
   5.191 -
   5.192 -<a name="install"></a>
   5.193 -<h3>install</h3>
   5.194 -<p>
   5.195 -	Lance l'installation de SliTaz en fonction des données présentes dans le
   5.196 -	fichier de configuration.
   5.197 -</p>
   5.198 -<pre>
   5.199 -tazinst install /var/lib/tazinst.conf
   5.200 -</pre>
   5.201 -
   5.202 -<a name="upgrade"></a>
   5.203 -<h3>upgrade</h3>
   5.204 -<p>
   5.205 -	Lance la mise à jour de SliTaz en fonction des données présentes dans le
   5.206 -	fichier de configuration.
   5.207 -</p>
   5.208 -<pre>
   5.209 -tazinst upgrade /var/lib/tazinst.conf
   5.210 -</pre>
   5.211 -
   5.212 -<h2>MAINTENEUR</h2>
   5.213 -<p>
   5.214 -	Christophe Lincoln &lt;pankso at slitaz.org&gt;
   5.215 -	Dominique Corbex &lt;domcox at slitaz.org&gt;
   5.216 -</p>
   5.217 -
   5.218 -<!-- End of content -->
   5.219 -</div>
   5.220 -
   5.221 -<div id="footer">
   5.222 -	Copyright &copy; 2011 <a href="http://www.slitaz.org/">SliTaz GNU/Linux</a>
   5.223 -</div>
   5.224 -
   5.225 -</body>
   5.226 -</html>
     6.1 Binary file core/rootfs/usr/share/images/panel-background.png has changed
     7.1 Binary file core/rootfs/usr/share/slim/themes/slitaz/panel.png has changed
     8.1 --- a/core/rootfs/usr/share/slim/themes/slitaz/slim.theme	Wed Jun 01 12:07:12 2011 +0200
     8.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.3 @@ -1,37 +0,0 @@
     8.4 -# SliTaz theme for SLiM
     8.5 -# 
     8.6 -
     8.7 -# Messages
     8.8 -msg_color               #000000
     8.9 -msg_font                Vera:size=18:bold:dpi=75
    8.10 -msg_x                   50%
    8.11 -msg_y                   35%
    8.12 -msg_shadow_color        #FFFFFF
    8.13 -msg_shadow_xoffset      1
    8.14 -msg_shadow_yoffset      1
    8.15 -
    8.16 -# valid values: stretch, tile
    8.17 -#background_style        stretch
    8.18 -background_color        #351a0a
    8.19 -
    8.20 -# Input controls
    8.21 -input_panel_x           50%
    8.22 -input_panel_y           50%
    8.23 -input_name_x            105
    8.24 -input_name_y            214
    8.25 -input_font          	Sans:size=12:dpi=75
    8.26 -input_fgcolor           #3c3c3c
    8.27 -
    8.28 -# Username / password request
    8.29 -# username_font         Sans:size=12:bold:dpi=75
    8.30 -username_font          	Sans:size=12:bold:dpi=75
    8.31 -username_color        	#6a6a6a
    8.32 -username_x              16%
    8.33 -username_y              214
    8.34 -password_x              17%
    8.35 -password_y              214
    8.36 -username_shadow_xoffset 1
    8.37 -username_shadow_yoffset 1
    8.38 -
    8.39 -username_msg            Username:
    8.40 -password_msg            Password: