wok-current diff linux/stuff/gztazmod.sh @ rev 20982

updated goaccess (0.6.1 -> 1.3)
author Hans-G?nter Theisgen
date Wed Mar 06 17:22:58 2019 +0100 (2019-03-06)
parents 873a0ed5aab7
children
line diff
     1.1 --- a/linux/stuff/gztazmod.sh	Sat Apr 28 14:44:50 2012 +0200
     1.2 +++ b/linux/stuff/gztazmod.sh	Wed Mar 06 17:22:58 2019 +0100
     1.3 @@ -1,42 +1,28 @@
     1.4  #!/bin/sh
     1.5  # gztazmod.sh: Compress Linux kernel modules for SliTaz GNU/Linux.
     1.6 -# 2007/10/04 <pankso@slitaz.org> - GNU General Public License.
     1.7 +# 2007-2014 <pankso@slitaz.org> - GNU General Public License.
     1.8  #
     1.9 +. /lib/libtaz.sh
    1.10  
    1.11  # We do our work in the kernel version modules directory.
    1.12  if [ -z "$1" ] ; then
    1.13 -  echo ""
    1.14 -  echo -e "\033[1musage:\033[0m `basename $0` path/to/kernel-version"
    1.15 -  echo ""
    1.16 -  exit 1
    1.17 +	newline
    1.18 +	echo "Usage: $(basename $0) path/to/kernel-version"
    1.19 +	newline && exit 1
    1.20  fi
    1.21  
    1.22  if [ ! -r "$1" ] ; then
    1.23 -  echo ""
    1.24 -  echo -e "Error : $1 does not exist."
    1.25 -  echo ""
    1.26 -  exit 1
    1.27 +	newline
    1.28 +	echo -e "Error : $1 does not exist."
    1.29 +	newline && exit 1
    1.30  fi
    1.31  
    1.32  cd $1
    1.33  
    1.34 -# Status functions.
    1.35 -status()
    1.36 -{
    1.37 -	local CHECK=$?
    1.38 -	echo -en "\\033[70G[ "
    1.39 -	if [ $CHECK = 0 ]; then
    1.40 -		echo -en "\\033[1;33mOK"
    1.41 -	else
    1.42 -		echo -en "\\033[1;31mFailed"
    1.43 -	fi
    1.44 -	echo -e "\\033[0;39m ]"
    1.45 -}
    1.46 -
    1.47  # Script start.
    1.48 -echo ""
    1.49 +newline
    1.50  echo "Starting gztazmod.sh to build compressed kernel modules... "
    1.51 -echo ""
    1.52 +newline
    1.53  
    1.54  # Find all modules.
    1.55  echo -n "Searching all modules to compress them... "
    1.56 @@ -62,6 +48,6 @@
    1.57  status
    1.58  
    1.59  # Script end.
    1.60 -echo ""
    1.61 +newline
    1.62  echo "Kernel modules `basename $1` are ready."
    1.63 -echo ""
    1.64 +newline