wok-next view suggested-applications/stuff/default-app @ rev 13293

Up sslh (1.13b)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Aug 27 17:12:14 2012 +0200 (2012-08-27)
parents a4542133af01
children 256340cc43f6
line source
1 #!/bin/sh
3 APP="$1"
5 # Auto Install DEPENDS and/or SUGGESTED
6 install()
7 {
8 TMPFILE="/tmp/installlist-$$"
9 #echo "pkgs to install: $1"
10 for pkg in $1 ; do
11 if [ ! -d /var/lib/tazpkg/installed/${pkg} ]; then
12 echo "$pkg" >> $TMPFILE
13 fi
14 done
16 if [ -f $TMPFILE ] ; then
17 xterm -geometry 80x16 -title "Installing Packages (Press ENTER to close)" \
18 -e "echo -e \"Installing packages as root. This option depends on \n `cat $TMPFILE`\"
19 subox \"tazpkg get-install-list $TMPFILE\"
20 echo -e \"----\nPress ENTER to close and to proceed further...\"
21 read i; exit 0;
22 "
23 rm -f $TMPFILE
24 fi
26 }
28 if [ "$2" == "--install" ] ; then
29 SUGGESTED="$3"
30 install "$SUGGESTED"
31 fi
33 $APP &
35 exit 0