tazpkg rev 505

tazpkg-notify: switch to TazPanel, no more tazpkgbox
author Christophe Lincoln <pankso@slitaz.org>
date Thu Jun 02 03:37:09 2011 +0200 (2011-06-02)
parents 99e76d407f79
children a601839bbe95
files tazpkg-notify
line diff
     1.1 --- a/tazpkg-notify	Thu Jun 02 03:31:44 2011 +0200
     1.2 +++ b/tazpkg-notify	Thu Jun 02 03:37:09 2011 +0200
     1.3 @@ -22,8 +22,8 @@
     1.4  TEXTDOMAIN='tazpkg-notify'
     1.5  export TEXTDOMAIN
     1.6  
     1.7 -up=`cat $LOCALSTATE/packages.up | wc -l`
     1.8 -rel=`cat /etc/slitaz-release`
     1.9 +up=$(cat $LOCALSTATE/packages.up | wc -l)
    1.10 +rel=$(cat /etc/slitaz-release)
    1.11  
    1.12  # Kill the notification icon after user pressed on it.
    1.13  kill_notification() {
    1.14 @@ -86,8 +86,7 @@
    1.15  	# Deal with --button values
    1.16  	case $ret in
    1.17  		1) exit 0 ;;
    1.18 -		#tazweb http://tazpanel:8090/pkgs.cgi?up &
    1.19 -		2) subox tazpkgbox & ;;
    1.20 +		2) tazweb http://tazpanel:82/pkgs.cgi?up & ;;
    1.21  		*) continue ;;
    1.22  	esac
    1.23  }
    1.24 @@ -119,14 +118,13 @@
    1.25  # Main missing packages.list function
    1.26  old_list() {
    1.27  	# Store box results
    1.28 -	main=`old_list_main`
    1.29 +	main=$(old_list_main)
    1.30  	ret=$?
    1.31  	kill_notification
    1.32  	# Deal with --button values
    1.33  	case $ret in
    1.34  		1) exit 0 ;;
    1.35 -		# tazweb http://tazpanel:8090/pkgs.cgi?recharge &
    1.36 -		2) subox tazpkgbox & ;;
    1.37 +		2) tazweb http://tazpanel:82/pkgs.cgi?recharge & ;;
    1.38  		*) continue ;;
    1.39  	esac
    1.40  }
    1.41 @@ -159,14 +157,13 @@
    1.42  # Main missing packages.list function
    1.43  no_list() {
    1.44  	# Store box results
    1.45 -	main=`no_list_main`
    1.46 +	main=$(no_list_main)
    1.47  	ret=$?
    1.48  	kill_notification
    1.49  	# Deal with --button values
    1.50  	case $ret in
    1.51  		1) exit 0 ;;
    1.52 -		# tazweb http://tazpanel:8090/pkgs.cgi?recharge &
    1.53 -		2) subox tazpkgbox & ;;
    1.54 +		2) tazweb http://tazpanel:82/pkgs.cgi?recharge & ;;
    1.55  		*) continue ;;
    1.56  	esac
    1.57  }
    1.58 @@ -188,7 +185,7 @@
    1.59  		# (live or first boot)
    1.60  		sleep 10
    1.61  		[ "$up" -gt 0 ] && up_notify && exit 0
    1.62 -		mtime=`find /var/lib/tazpkg/packages.list -mtime +10;`
    1.63 +		mtime=$(find /var/lib/tazpkg/packages.list -mtime +10;)
    1.64  		[ "$mtime" ] && old_list_notify && exit 0
    1.65  		[ ! -f $LOCALSTATE/packages.list ] && no_list_notify \
    1.66  			&& exit 0 ;;