# HG changeset patch # User Christophe Lincoln # Date 1331125176 -3600 # Node ID 22f3a9b70ec809e1760250a5ad250662da73d8c6 # Parent 82aeb1a92f5e3b13b4b65304f8c259414997f2c9 tazusb: use libtaz diff -r 82aeb1a92f5e -r 22f3a9b70ec8 tazusb --- a/tazusb Sat Mar 03 22:07:49 2012 +0100 +++ b/tazusb Wed Mar 07 13:59:36 2012 +0100 @@ -27,6 +27,9 @@ # Tazusb functions # +source /usr/lib/slitaz/libtaz +source_lib commons + # Print the usage. usage () { @@ -44,30 +47,6 @@ clean `gettext \"Remove old backup filesystems to free disk space.\"`\n" } -# Status function. -status() -{ - local CHECK=$? - echo -en "\\033[70G[ " - if [ $CHECK = 0 ]; then - echo -en "\\033[1;33m`gettext \"OK\"`" - else - echo -en "\\033[1;31m`gettext \"Failed\"`" - fi - echo -e "\\033[0;39m ]" -} - -# Exit if user is not root. -check_root() -{ - if test $(id -u) != 0 ; then - # echo -e "\nThis program requires being run as root.\n" - gettext "This program requires being run as root." - echo "" - exit 0 - fi -} - # Display a list of available partitions. fdisk_list() {