tazpanel rev 4

Add tazpanel SHell small cmdline interface
author Christophe Lincoln <pankso@slitaz.org>
date Sat Apr 02 10:21:40 2011 +0200 (2011-04-02)
parents d1e0519a02c8
children d2d143d65915
files tazpanel
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/tazpanel	Sat Apr 02 10:21:40 2011 +0200
     1.3 @@ -0,0 +1,21 @@
     1.4 +#!/bin/sh
     1.5 +#
     1.6 +# Tiny Tazpanel cmdline interface
     1.7 +#
     1.8 +
     1.9 +#. /etc/slitaz/tazpanel.conf
    1.10 +[ -f tazpanel.conf ] && . tazpanel.conf
    1.11 +
    1.12 +case "$1" in
    1.13 +	start)
    1.14 +		httpd -p $HTTPD_PORT -u root -c $HTTPD_CONF ;;
    1.15 +	stop)
    1.16 +		killall httpd ;;
    1.17 +	passwd|-p)
    1.18 +		echo -e "\nChanging password for TazPanel"
    1.19 +		echo -n "New password: " && read pass
    1.20 +		sed -i s"/\/:root:.*/\/:root:$pass/" $HTTPD_CONF
    1.21 +		echo -e "Password changed succeffuly\n" ;;
    1.22 +	*)
    1.23 +		echo "Usage: `basename $0` [start|stop|passwd]" ;;
    1.24 +esac