Index: /ipk/runipk.sh
===================================================================
--- /ipk/runipk.sh	(revision 1652)
+++ /ipk/runipk.sh	(revision 1653)
@@ -4,11 +4,27 @@
 NEXT_LIST=.tmp2
 
-ls -1 ~/ipk > aaf-flashbeta.txt
+mkdir -p WWW/boot
+rm WWW/*.ipk > /dev/null 2>&1
+rm WWW/Packages* > /dev/null 2>&1
+rm WWW/PlugList > /dev/null 2>&1
+rm WWW/boot/* > /dev/null 2>&1
+rm Packages* > /dev/null 2>&1
+rm PlugList > /dev/null 2>&1
+rm *.ipk > /dev/null 2>&1
+
+cp -a ~/ipk/source/bootvideos/* ~/ipk/WWW/boot
+
+ls -1 ~/ipk/source > aaf-flashbeta.txt
 LIST_LINE=`cat aaf-flashbeta.txt`
 ALLOWED=`cat ~/ipk/aaf-flashbeta_allowed`
 
-cd ~/ipk/aaf-flash-beta
+cd ~/ipk/WWW	
+chmod -R 755 `find ~/ipk/source -type d -name "CONTROL"`
+chmod -R 755 `find ~/ipk/source -type d -name "bin"`
+chmod -R 755 `find ~/ipk/source -type d -name "sbin"`	
 
-#cp /var/www/web16/web/ufs910-e2/aaf-flash-beta/civer/*.ipk /var/www/web16/web/ufs910-e2/aaf-flash-beta
+# for externel files
+#cp ~/WWW/civer/*.ipk ~/WWW
+
 for ROUND in $ALLOWED; do
 	for DIR in $LIST_LINE; do
@@ -25,5 +41,5 @@
 
 for DIR in $LIST; do
-	ipkg-build source/"$DIR"
+	ipkg-build ~/ipk/source/"$DIR"
 done
 
