tazusb rev 117
tazusb: use libtaz
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Mar 07 13:59:36 2012 +0100 (2012-03-07) |
parents | 82aeb1a92f5e |
children | c0cdcb3ef64a |
files | tazusb |
line diff
1.1 --- a/tazusb Sat Mar 03 22:07:49 2012 +0100 1.2 +++ b/tazusb Wed Mar 07 13:59:36 2012 +0100 1.3 @@ -27,6 +27,9 @@ 1.4 # Tazusb functions 1.5 # 1.6 1.7 +source /usr/lib/slitaz/libtaz 1.8 +source_lib commons 1.9 + 1.10 # Print the usage. 1.11 usage () 1.12 { 1.13 @@ -44,30 +47,6 @@ 1.14 clean `gettext \"Remove old backup filesystems to free disk space.\"`\n" 1.15 } 1.16 1.17 -# Status function. 1.18 -status() 1.19 -{ 1.20 - local CHECK=$? 1.21 - echo -en "\\033[70G[ " 1.22 - if [ $CHECK = 0 ]; then 1.23 - echo -en "\\033[1;33m`gettext \"OK\"`" 1.24 - else 1.25 - echo -en "\\033[1;31m`gettext \"Failed\"`" 1.26 - fi 1.27 - echo -e "\\033[0;39m ]" 1.28 -} 1.29 - 1.30 -# Exit if user is not root. 1.31 -check_root() 1.32 -{ 1.33 - if test $(id -u) != 0 ; then 1.34 - # echo -e "\nThis program requires being run as root.\n" 1.35 - gettext "This program requires being run as root." 1.36 - echo "" 1.37 - exit 0 1.38 - fi 1.39 -} 1.40 - 1.41 # Display a list of available partitions. 1.42 fdisk_list() 1.43 {