Index: ipk/source.sh4/network_ipsec/CONTROL/postinst
===================================================================
--- ipk/source.sh4/network_ipsec/CONTROL/postinst	(revision 45364)
+++ ipk/source.sh4/network_ipsec/CONTROL/postinst	(revision 45366)
@@ -1,8 +1,16 @@
 #!/bin/sh
+
+ARCH=$(cat /etc/.arch)
 
 if [ -e /etc/.oebuild ];then
 	opkg update
-	opkg install minisatip
-	opkg install titan-plugin-minisatip --dest $1
+	opkg install strongswan
+	if [ "$ARCH" == "sh4" ];then
+		opkg install kernel-module-aes-generic
+		opkg install kernel-module-sha1-generic
+	fi
+	opkg install iptables
+	opkg install iptables-module-xt-policy
+	opkg install titan-plugin-ipsec --dest $1
 fi
 
Index: ipk/source.sh4/network_ipsec/CONTROL/postrm
===================================================================
--- ipk/source.sh4/network_ipsec/CONTROL/postrm	(revision 45364)
+++ ipk/source.sh4/network_ipsec/CONTROL/postrm	(revision 45366)
@@ -2,7 +2,10 @@
 
 if [ -e /etc/.oebuild ];then
-	sed 's/minisatip.*//g' -i /mnt/config/start-config
-	opkg remove minisatip
-	opkg remove titan-plugin-minisatip --dest $1
+	sed 's/ipsec=.*//g' -i /mnt/config/start-config
+	opkg remove strongswan --force-removal-of-dependent-packages
+	opkg remove kernel-module-aes-generic --force-removal-of-dependent-packages
+	opkg remove kernel-module-sha1-generic --force-removal-of-dependent-packages
+	opkg remove iptables --force-removal-of-dependent-packages
+	opkg remove titan-plugin-ipsec --dest $1
 fi
 
Index: ipk/source.sh4/network_minisatip/CONTROL/postrm
===================================================================
--- ipk/source.sh4/network_minisatip/CONTROL/postrm	(revision 45364)
+++ ipk/source.sh4/network_minisatip/CONTROL/postrm	(revision 45366)
@@ -2,5 +2,5 @@
 
 if [ -e /etc/.oebuild ];then
-	sed 's/minisatip.*//g' -i /mnt/config/start-config
+	sed 's/minisatip=.*//g' -i /mnt/config/start-config
 	opkg remove minisatip
 	opkg remove titan-plugin-minisatip --dest $1
Index: ipk/source.sh4/network_satipclient/CONTROL/postrm
===================================================================
--- ipk/source.sh4/network_satipclient/CONTROL/postrm	(revision 45364)
+++ ipk/source.sh4/network_satipclient/CONTROL/postrm	(revision 45366)
@@ -2,5 +2,5 @@
 
 if [ -e /etc/.oebuild ];then
-	sed 's/satipclient.*//g' -i /mnt/config/start-config
+	sed 's/satipclient=.*//g' -i /mnt/config/start-config
 	opkg remove satipclient
 	opkg remove titan-plugin-satipclient --dest $1
