]> git.ipfire.org Git - people/stevee/network.git/blobdiff - src/functions/functions.aiccu
aiccu: Add helper script that adds routing information to the database
[people/stevee/network.git] / src / functions / functions.aiccu
index f08bb6883f61245cd8988213bb24ee394ac0bfb1..1b5708fb51940b0f89790456496b95041509883c 100644 (file)
@@ -22,7 +22,7 @@
 # Define protocols which are supported by aiccu.
 AICCU_SUPPORTED_PROTOCOLS="tic tsp l2tp"
 
-function aiccu_start() {
+aiccu_start() {
        local device=${1}
        assert isset device
 
@@ -40,7 +40,7 @@ function aiccu_start() {
        return ${EXIT_OK}
 }
 
-function aiccu_stop() {
+aiccu_stop() {
        local device=${1}
        assert isset device
 
@@ -48,7 +48,7 @@ function aiccu_stop() {
        service_stop "aiccu@${device}.service"
 }
 
-function aiccu_write_config() {
+aiccu_write_config() {
        local device=${1}
        local file=${2}
        shift 2
@@ -121,6 +121,7 @@ function aiccu_write_config() {
                print
 
                print "ipv6_interface ${device}"
+               print "setupscript /usr/lib/network/helpers/aiccu"
                print
 
                print "# Security"
@@ -128,6 +129,7 @@ function aiccu_write_config() {
                print
 
                # Misc.
+               print "defaultroute false"
                print "verbose true"
                print "daemonize false"
                print "automatic true"