summaryrefslogtreecommitdiff
path: root/testing/tests/sql/rw-eap-aka-rsa/pretest.dat
diff options
context:
space:
mode:
Diffstat (limited to 'testing/tests/sql/rw-eap-aka-rsa/pretest.dat')
-rw-r--r--testing/tests/sql/rw-eap-aka-rsa/pretest.dat12
1 files changed, 12 insertions, 0 deletions
diff --git a/testing/tests/sql/rw-eap-aka-rsa/pretest.dat b/testing/tests/sql/rw-eap-aka-rsa/pretest.dat
new file mode 100644
index 000000000..b78fd480f
--- /dev/null
+++ b/testing/tests/sql/rw-eap-aka-rsa/pretest.dat
@@ -0,0 +1,12 @@
+moon::rm /etc/ipsec.d/cacerts/*
+carol::rm /etc/ipsec.d/cacerts/*
+moon::cat /etc/ipsec.d/tables.sql /etc/ipsec.d/data.sql > /etc/ipsec.d/ipsec.sql
+carol::cat /etc/ipsec.d/tables.sql /etc/ipsec.d/data.sql > /etc/ipsec.d/ipsec.sql
+moon::cat /etc/ipsec.d/ipsec.sql | sqlite3 /etc/ipsec.d/ipsec.db
+carol::cat /etc/ipsec.d/ipsec.sql | sqlite3 /etc/ipsec.d/ipsec.db
+moon::/etc/init.d/iptables start 2> /dev/null
+carol::/etc/init.d/iptables start 2> /dev/null
+moon::ipsec start
+carol::ipsec start
+carol::sleep 1
+carol::ipsec up home