1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2006-2011 OpenWrt.org
8 config_get path "$section" 'path'
9 config_get port "$section" 'port'
11 if [ ! -d "$path" ]; then
12 echo "The subversion repository (${path}) does not exist."
13 echo "Create a new repository and/or change the path in /etc/config/subversion"
15 echo "Create a new subversion repository with:"
17 echo " svnadmin create --fs-type fsfs /srv/svn"
19 echo "Changing the path using UCI (default path is: /var/local/svn):"
20 echo " uci set subversion.@[0].path="/srv/svn""
22 echo " /etc/init.d/subversion restart"
26 service_start /usr/bin/svnserve -d --listen-port ${port} -r ${path}
30 config_load 'subversion'
31 config_foreach start_instance 'subversion'
35 SERVICE_SIG_STOP="INT" \
36 service_stop /usr/bin/svnserve