# HG changeset patch # User Christophe Lincoln # Date 1389772557 -3600 # Node ID c5bb97d97d949c6adbcbbfe244d929dfd0cef26a # Parent adeb6ba5ab373dba23a31b000f6f274106dc203a writefs: use libtaz.sh functions diff -r adeb6ba5ab37 -r c5bb97d97d94 tazusb --- a/tazusb Wed Jan 15 08:36:16 2014 +0100 +++ b/tazusb Wed Jan 15 08:55:57 2014 +0100 @@ -415,35 +415,39 @@ COMPRESSION=$2 fi # Start info - echo "" - echo -e "\n\033[1m`gettext "Write filesystem"`\033[0m -===============================================================================" -gettext "The command writefs will write all the current filesystem into a suitable cpio -archive (rootfs.gz) usable on a bootable LiveUSB media. + newline + boldify "$(gettext 'Write filesystem')" + separator + cat << EOT +$(gettext "The command writefs will write all the current filesystem into a suitable +cpio archive (rootfs.gz) usable on a bootable LiveUSB media.") -Archive compression: $COMPRESSION" - echo "" - +$(boldify "Archive compression:") $(colorize 36 "$COMPRESSION") + +EOT # Clear out tazpkg cache rm /var/cache/tazpkg/* -r -f - # Optionally remove sound card selection - gettext "Do you wish to remove the sound card selection (No/yes/exit) ? " + # Optionally remove sound card selection and screen resolution. + gettext "Do you wish to remove the sound card and screen configs ? "; echo + gettext "Press ENTER to keep or answer (No|yes|exit): " read anser case $anser in e|E|"exit"|Exit) exit 0 ;; y|Y|yes|Yes) - gettext "Removing current sound card selection..." + gettext "Removing current sound card and screen configurations..." rm -f /var/lib/sound-card-driver - rm -f /var/lib/alsa/asound.state ;; + rm -f /var/lib/alsa/asound.state + rm -f /etc/X11/xorg.conf ;; *) - gettext "Keeping current sound card selection..." ;; + gettext "Keeping current sound card and screen configurations..." ;; esac - status + status && newline # Optionally remove i18n settings - gettext "Do you wish to remove local/keymap settings (No/yes/exit) ? " + gettext "Do you wish to remove local/keymap settings ? "; echo + gettext "Press ENTER to keep or answer (No|yes|exit): " read anser case $anser in e|E|"exit"|Exit)