tazusb rev 151

writefs: use libtaz.sh functions
author Christophe Lincoln <pankso@slitaz.org>
date Wed Jan 15 08:55:57 2014 +0100 (2014-01-15)
parents adeb6ba5ab37
children 04c35de45370
files tazusb
line diff
     1.1 --- a/tazusb	Wed Jan 15 08:36:16 2014 +0100
     1.2 +++ b/tazusb	Wed Jan 15 08:55:57 2014 +0100
     1.3 @@ -415,35 +415,39 @@
     1.4  			COMPRESSION=$2
     1.5  		fi
     1.6  		# Start info
     1.7 -		echo ""
     1.8 -		echo -e "\n\033[1m`gettext "Write filesystem"`\033[0m
     1.9 -==============================================================================="
    1.10 -gettext "The command writefs will write all the current filesystem into a suitable cpio 
    1.11 -archive (rootfs.gz) usable on a bootable LiveUSB media. 
    1.12 +		newline
    1.13 +		boldify "$(gettext 'Write filesystem')"
    1.14 +		separator
    1.15 +		cat << EOT
    1.16 +$(gettext "The command writefs will write all the current filesystem into a suitable
    1.17 +cpio archive (rootfs.gz) usable on a bootable LiveUSB media.")
    1.18  
    1.19 -Archive compression: $COMPRESSION"
    1.20 -		echo ""
    1.21 -		
    1.22 +$(boldify "Archive compression:") $(colorize 36 "$COMPRESSION")
    1.23 +
    1.24 +EOT
    1.25  		# Clear out tazpkg cache
    1.26  		rm /var/cache/tazpkg/* -r -f
    1.27  
    1.28 -		# Optionally remove sound card selection
    1.29 -		gettext "Do you wish to remove the sound card selection (No/yes/exit) ? "
    1.30 +		# Optionally remove sound card selection and screen resolution.
    1.31 +		gettext "Do you wish to remove the sound card and screen configs ? "; echo
    1.32 +		gettext "Press ENTER to keep or answer (No|yes|exit): "
    1.33  		read anser
    1.34  		case $anser in
    1.35  			e|E|"exit"|Exit)
    1.36  				exit 0 ;;
    1.37  			y|Y|yes|Yes)
    1.38 -				gettext "Removing current sound card selection..."
    1.39 +				gettext "Removing current sound card and screen configurations..."
    1.40  				rm -f /var/lib/sound-card-driver
    1.41 -				rm -f /var/lib/alsa/asound.state ;;
    1.42 +				rm -f /var/lib/alsa/asound.state
    1.43 +				rm -f /etc/X11/xorg.conf ;;
    1.44  			*)
    1.45 -				gettext "Keeping current sound card selection..." ;;
    1.46 +				gettext "Keeping current sound card and screen configurations..." ;;
    1.47  		esac
    1.48 -		status
    1.49 +		status && newline
    1.50  		
    1.51  		# Optionally remove i18n settings
    1.52 -		gettext "Do you wish to remove local/keymap settings (No/yes/exit) ? "
    1.53 +		gettext "Do you wish to remove local/keymap settings ? "; echo
    1.54 +		gettext "Press ENTER to keep or answer (No|yes|exit): "
    1.55  		read anser
    1.56  		case $anser in
    1.57  			e|E|"exit"|Exit)