cjdroute script update

This commit is contained in:
Jack L. Frost 2014-02-26 01:57:59 +04:00
parent 3cf24fa2dd
commit c710dcd56d
1 changed files with 7 additions and 1 deletions

View File

@ -2,7 +2,7 @@
unset reload
service_command='/usr/local/sbin/cjdroute'
service_command='/usr/bin/cjdroute'
cjdroute_config='/etc/cjdroute.conf'
cjdroute_tun_interface='cjdns0'
@ -21,5 +21,11 @@ cjdroute.check_tun_module() {
start() {
cjdroute.check_tun_module || { return 1; }
[[ -e "$cjdroute_config" ]] || {
watchman.err "$cjdroute_config does not exist, please create it by running cjdroute --genconf >> /etc/cjdroute.conf"
return 1
}
"$service_command" < "$cjdroute_config"
}