# HG changeset patch # User Pascal Bellard # Date 1223811982 0 # Node ID c52aada85f580cdc347ac3b715802423159cf588 # Parent d6cd1cfc7fe158b7bd4b39801ef923f58b326d62 desktopbox logout: add tazusb support diff -r d6cd1cfc7fe1 -r c52aada85f58 tinyutils/desktopbox --- a/tinyutils/desktopbox Wed Sep 03 08:55:00 2008 +0000 +++ b/tinyutils/desktopbox Sun Oct 12 11:46:22 2008 +0000 @@ -22,6 +22,7 @@ NEW_FILE_LABEL="Create a new file on the desktop:" FILE_ENTRY_MSG="filename" ADD_ICON_LABEL="Add some desktop icons" + DESKTOP_DIALOG_TAZUSB="Save filesystem using compression" DESKTOP_DIALOG_LABEL="Session logout, system shutdown or reboot" ;; fr*) lang="fr" @@ -30,6 +31,7 @@ NEW_FILE_LABEL="Créer un nouveau fichier sur le bureau:" FILE_ENTRY_MSG="fichier" ADD_ICON_LABEL="Ajouter des icons de bureau" + DESKTOP_DIALOG_TAZUSB="Enregistrer le système avec la compression" DESKTOP_DIALOG_LABEL="Déconnexion, arrêt ou redémarrage du système" ;; *) lang="" @@ -38,6 +40,7 @@ NEW_FILE_LABEL="Create a new file on the desktop:" FILE_ENTRY_MSG="filename" ADD_ICON_LABEL="Add some desktop icons" + DESKTOP_DIALOG_TAZUSB="Save filesystem using compression" DESKTOP_DIALOG_LABEL="Session logout, system shutdown or reboot" ;; esac @@ -201,35 +204,57 @@ " + TAZUSB_DIALOG=" + + + + TAZUSB_WRITE + false + + + + LZMA + + + + GZIP + + + + NONE + + " + EXTRA="COMP=none; [ '\$LZMA' = 'true' ] && COMP=lzma; [ '\$GZIP' = 'true' ] && COMP=gzip; [ '\$TAZUSB_WRITE' = 'true' ] && subox 'xterm -e \"tazusb writefs \$COMP\"';" + #[ -f /home/boot/rootfs.gz ] || { TAZUSB_DIALOG=""; EXTRA=""; } # Logout for Openbox or JWM and system shutdown or reboot. - ACTIONS=' + ACTIONS=" -' - export DESKTOP_DIALOG=${DESKTOP_DIALOG}${ACTIONS} ;; +" + export DESKTOP_DIALOG=${DESKTOP_DIALOG}${TAZUSB_DIALOG}${ACTIONS} ;; *) # Usage if executed from cmdline. #