wok view suggested-applications/stuff/default-app @ rev 18612
lxpanel, slitaz-configs: copy LXPanel profile to /etc/skel (again)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Nov 17 16:50:26 2015 +0200 (2015-11-17) |
parents | 67404973a113 |
children |
line source
1 #!/bin/sh
3 APP="$1"
5 # Auto Install DEPENDS and/or SUGGESTED
6 install() {
7 TMPFILE="/tmp/installlist-$$"
8 #echo "pkgs to install: $1"
9 for pkg in $1 ; do
10 if [ ! -d /var/lib/tazpkg/installed/${pkg} ]; then
11 echo "$pkg" >> $TMPFILE
12 fi
13 done
15 if [ -f $TMPFILE ] ; then
16 xterm -geometry 80x16 -title "Installing Packages (Press ENTER to close)" \
17 -e "echo -e \"Installing packages as root. This option depends on \n `cat $TMPFILE`\"
18 subox \"tazpkg get-install-list $TMPFILE\"
19 echo -e \"----\nPress ENTER to close and to proceed further...\"
20 read i; exit 0;
21 "
22 rm -f $TMPFILE
23 fi
24 }
26 if [ "$2" == "--install" ] ; then
27 SUGGESTED="$3"
28 install "$SUGGESTED"
29 fi
31 $APP &
33 exit 0