# HG changeset patch # User Christophe Lincoln # Date 1264263512 -3600 # Node ID 6b97ef60644afb1134fb525df39856878e9a63d5 # Parent f2b3006d4e4267ad8d218611ae55b1c7eac84008 box: move gen-liveflavor and clean-distro to functions diff -r f2b3006d4e42 -r 6b97ef60644a tazlitobox --- a/tazlitobox Sat Jan 23 17:10:02 2010 +0100 +++ b/tazlitobox Sat Jan 23 17:18:32 2010 +0100 @@ -52,6 +52,24 @@ -e "tazlito writeiso $COMPRESSION" } +gen_liveflavor_action() +{ + cd /home/slitaz + sed -i "s/ISO_NAME=.*/ISO_NAME=\"slitaz-$GEN_LIVEFLAVOR_NAME\"/" \ + /etc/tazlito/tazlito.conf + xterm -geometry 80x16 \ + -title "gen-liveflavor" \ + -e "tazlito gen-liveflavor $GEN_LIVEFLAVOR_NAME && echo -e \"----\nENTER to continue...\" && read close" +} + +clean_distro_action() +{ + cd /home/slitaz + xterm -geometry 80x16 \ + -title "clean-distro" \ + -e "tazlito clean-distro && sleep 1" +} + export HELP=' @@ -205,15 +223,12 @@ @@ -266,7 +281,7 @@