add packages_10.03.2 in preparation for the 10.03.2 interim release
[10.03/packages.git] / net / chaosvpn / files / chaosvpn_config.sh
1 #!/bin/sh
2
3 [ -f "/etc/tinc/chaos/rsa_key.pub" -a -f "/etc/tinc/chaos/rsa_key.priv" ] || {
4         echo "please generate rsa key pair"
5         echo "tincd -n chaos --generate-keys=2048"
6         exit 1
7 }
8
9 C=`grep unconfigured_please_change_me /etc/tinc/chaosvpn.conf  | wc -l`
10 [ "$C" = "0" ] || {
11         echo "/etc/tinc/chaosvpn.conf is not configured yet"
12         exit 1
13 }
14 exit 0