Index: ipk/source/emus_kbox_1_01pre24/CONTROL/postinst
===================================================================
--- ipk/source/emus_kbox_1_01pre24/CONTROL/postinst	(revision 4651)
+++ ipk/source/emus_kbox_1_01pre24/CONTROL/postinst	(revision 6663)
@@ -1,19 +1,8 @@
 #!/bin/sh
-TMP=/tmp/.kbox
-PLUGINDIR=/var/emu
+TMP=/tmp/.keys
+PLUGINDIR=/var/keys
+PLUGINDIR=/var/bin
 CONFIGDIR=/var/etc
-if [ ! -e /var/keys/cwshare.cfg ]; then
-	echo "rename cwshare.cfg.kbox -> cwshare.cfg"
-	mv /var/keys/cwshare.cfg.kbox /var/keys/cwshare.cfg
-fi
-if [ ! -e /var/keys/kbox_cfg ]; then
-	echo "rename kbox_cfg.kbox -> kbox_cfg"
-	mv /var/keys/kbox_cfg.kbox /var/keys/kbox_cfg
-fi
-if [ ! -e /var/keys/nwcdcs.cfg ]; then
-	echo "rename nwcdcs.cfg.kbox -> nwcdcs.cfg"
-	mv /var/keys/nwcdcs.cfg.kbox /var/keys/nwcdcs.cfg
-fi
-echo "successful installed"
+echo "successfully installed"
 echo "syncing disk"
 sync
@@ -23,3 +12,31 @@
 	echo new freespace size $FREE kb
 fi
+
+if [ ! -e /var/keys/cwshare.cfg ]; then
+	echo "use ipk config file: cwshare.cfg"
+	echo "rename /var/keys/cwshare.cfg.kbox > /var/keys/cwshare.cfg"
+	mv /var/keys/cwshare.cfg.kbox /var/keys/cwshare.cfg
+else
+	echo "found user config file: cwshare.cfg"
+	echo "skip ipk config file: cwshare.cfg.kbox"
+fi
+
+if [ ! -e /var/keys/kbox_cfg ]; then
+	echo "use ipk config file: kbox_cfg"
+	echo "rename /var/keys/kbox_cfg.kbox > /var/keys/kbox_cfg"
+	mv /var/keys/kbox_cfg.kbox /var/keys/kbox_cfg
+else
+	echo "found user config file: kbox_cfg"
+	echo "skip ipk config file: kbox_cfg.kbox"
+fi
+
+if [ ! -e /var/keys/nwcdcs.cfg ]; then
+	echo "use ipk config file: nwcdcs.cfg"
+	echo "rename /var/keys/nwcdcs.cfg.kbox > /var/keys/nwcdcs.cfg"
+	mv /var/keys/nwcdcs.cfg.kbox /var/keys/nwcdcs.cfg
+else
+	echo "found user config file: nwcdcs.cfg"
+	echo "skip ipk config file: nwcdcs.cfg.kbox"
+fi
+
 exit 0
Index: ipk/source/emus_kbox_1_01pre24/CONTROL/postrm
===================================================================
--- ipk/source/emus_kbox_1_01pre24/CONTROL/postrm	(revision 4651)
+++ ipk/source/emus_kbox_1_01pre24/CONTROL/postrm	(revision 6663)
@@ -1,5 +1,5 @@
 #!/bin/sh
-TMP=/tmp/.kbox
-echo "successful removed"
+TMP=/tmp/.keys
+echo "successfully removed"
 echo "syncing disk"
 sync
@@ -9,3 +9,6 @@
 	echo new freespace size $FREE kb
 fi
+
+sync
+
 exit 0
Index: ipk/source/emus_kbox_1_01pre24/CONTROL/preinst
===================================================================
--- ipk/source/emus_kbox_1_01pre24/CONTROL/preinst	(revision 4651)
+++ ipk/source/emus_kbox_1_01pre24/CONTROL/preinst	(revision 6663)
@@ -1,5 +1,5 @@
 #!/bin/sh
 #
-TMP=/tmp/.skin
+TMP=/tmp/.keys
 echo "syncing disk"
 sync
@@ -21,10 +21,10 @@
 	SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1`
 	FREE=`expr $SPACE - 100`
-	SIZE=115
-	echo "check freespace"
+	SIZE=122
+	echo "checking freespace"
 	echo packege size $SIZE kb
 	echo freespace size $FREE kb
 	if  [ "$FREE" -lt "$SIZE" ]; then
-		echo "sorry no freespace on device"
+		echo "sorry no freespace left on device"
 		exit 1
 	else
@@ -32,7 +32,7 @@
 	fi
 fi   
-echo "install kbox ..."
+echo "installing kbox and configs..."
 echo "checking OS"
-if  [ `cat /etc/motd | grep AAF | grep M | grep rev | wc -l` -eq 0 ]; then                      
+if  [ `cat /etc/motd | grep AAF | grep M | grep rev | wc -l` -eq 0 ]; then
 	echo ---------------------------
 	echo DONT USE this IPK Package!!
@@ -42,3 +42,5 @@
 	exit 1
 fi
+
+sync
 exit 0
Index: ipk/source/emus_kbox_1_01pre24/CONTROL/prerm
===================================================================
--- ipk/source/emus_kbox_1_01pre24/CONTROL/prerm	(revision 4651)
+++ ipk/source/emus_kbox_1_01pre24/CONTROL/prerm	(revision 6663)
@@ -1,4 +1,4 @@
 #!/bin/sh
-#
+TMP=/tmp/.keys
 echo "syncing disk"
 sync
@@ -8,16 +8,20 @@
 	echo freespace size $FREE kb
 fi
-echo "remove kbox"
+
 if [ ! -e /var/keys/cwshare.cfg.kbox ]; then
-	echo "rename cwshare.cfg -> cwshare.cfg.kbox"
-	mv /var/keys/cwshare.cfg /var/keys/cwshare.cfg.kbox
+	echo "remove ipk cwshare.cfg"
+	rm /var/keys/cwshare.cfg
 fi
+
 if [ ! -e /var/keys/kbox_cfg.kbox ]; then
-	echo "rename kbox_cfg -> kbox_cfg.kbox"
-	mv /var/keys/kbox_cfg /var/keys/kbox_cfg.kbox
+	echo "remove ipk kbox_cfg"
+	rm /var/keys/kbox_cfg
 fi
+
 if [ ! -e /var/keys/nwcdcs.cfg.kbox ]; then
-	echo "rename nwcdcs.cfg -> nwcdcs.cfg.kbox"
-	mv /var/keys/nwcdcs.cfg /var/keys/nwcdcs.cfg.kbox
+	echo "remove ipk nwcdcs.cfg"
+	rm /var/keys/nwcdcs.cfg
 fi
+
+echo "removing kbox and configs"
 exit 0
