packages/net/chaosvpn/files/chaosvpn_config.sh
ryd ca799d93a3 Update ChaosVPN
done by Haegar
add init script
update to version 2.0



git-svn-id: svn://svn.openwrt.org/openwrt/packages@22831 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-08-29 12:38:00 +00:00

15 lines
345 B
Bash

#!/bin/sh
[ -f "/etc/tinc/chaos/rsa_key.pub" -a -f "/etc/tinc/chaos/rsa_key.priv" ] || {
echo "please generate rsa key pair"
echo "tincd -n chaos --generate-keys=2048"
exit 1
}
C=`grep unconfigured_please_change_me /etc/tinc/chaosvpn.conf | wc -l`
[ "$C" = "0" ] || {
echo "/etc/tinc/chaosvpn.conf is not configured yet"
exit 1
}
exit 0