# HG changeset patch # User Christophe Lincoln # Date 1306978629 -7200 # Node ID 9bf22833534514ac7d660d5ae816a48ffa5778fc # Parent 99e76d407f79ad420866640ff8b7a18a37d9b1cd tazpkg-notify: switch to TazPanel, no more tazpkgbox diff -r 99e76d407f79 -r 9bf228335345 tazpkg-notify --- a/tazpkg-notify Thu Jun 02 03:31:44 2011 +0200 +++ b/tazpkg-notify Thu Jun 02 03:37:09 2011 +0200 @@ -22,8 +22,8 @@ TEXTDOMAIN='tazpkg-notify' export TEXTDOMAIN -up=`cat $LOCALSTATE/packages.up | wc -l` -rel=`cat /etc/slitaz-release` +up=$(cat $LOCALSTATE/packages.up | wc -l) +rel=$(cat /etc/slitaz-release) # Kill the notification icon after user pressed on it. kill_notification() { @@ -86,8 +86,7 @@ # Deal with --button values case $ret in 1) exit 0 ;; - #tazweb http://tazpanel:8090/pkgs.cgi?up & - 2) subox tazpkgbox & ;; + 2) tazweb http://tazpanel:82/pkgs.cgi?up & ;; *) continue ;; esac } @@ -119,14 +118,13 @@ # Main missing packages.list function old_list() { # Store box results - main=`old_list_main` + main=$(old_list_main) ret=$? kill_notification # Deal with --button values case $ret in 1) exit 0 ;; - # tazweb http://tazpanel:8090/pkgs.cgi?recharge & - 2) subox tazpkgbox & ;; + 2) tazweb http://tazpanel:82/pkgs.cgi?recharge & ;; *) continue ;; esac } @@ -159,14 +157,13 @@ # Main missing packages.list function no_list() { # Store box results - main=`no_list_main` + main=$(no_list_main) ret=$? kill_notification # Deal with --button values case $ret in 1) exit 0 ;; - # tazweb http://tazpanel:8090/pkgs.cgi?recharge & - 2) subox tazpkgbox & ;; + 2) tazweb http://tazpanel:82/pkgs.cgi?recharge & ;; *) continue ;; esac } @@ -188,7 +185,7 @@ # (live or first boot) sleep 10 [ "$up" -gt 0 ] && up_notify && exit 0 - mtime=`find /var/lib/tazpkg/packages.list -mtime +10;` + mtime=$(find /var/lib/tazpkg/packages.list -mtime +10;) [ "$mtime" ] && old_list_notify && exit 0 [ ! -f $LOCALSTATE/packages.list ] && no_list_notify \ && exit 0 ;;