]> git.ipfire.org Git - people/arne_f/network.git/commitdiff
network: Make restart timeout configureable.
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 4 Jun 2010 01:19:33 +0000 (03:19 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 4 Jun 2010 01:19:33 +0000 (03:19 +0200)
functions.cli
functions.constants

index 14df652a9f376591dacc4031429a66c35da44c47..21bb3c5229e9c09a9a07bac535652fd2def6d18a 100644 (file)
@@ -213,7 +213,7 @@ function cli_restart() {
        cli_stop $@
 
        # Give the system some time to calm down
-       sleep 2
+       sleep ${TIMEOUT_RESTART}
 
        cli_start $@
 }
index 2030dc9b5e9c111773590278994974ee02afbfc3..53b191d25fe85eb625ee1eb131d30106fb6a6748 100644 (file)
@@ -33,7 +33,7 @@ RED_RUN=${RUN_DIR}/red
 PPP_SECRETS=/etc/ppp/secrets
 
 CONFIG_FILE=${CONFIG_DIR}/network_config
-CONFIG_FILE_PARAMS="COLORS DEBUG SHELL"
+CONFIG_FILE_PARAMS="COLORS DEBUG SHELL TIMEOUT_RESTART"
 
 DB_CONNECTION_FILE="${LOG_DIR}/connections.db"
 
@@ -53,3 +53,6 @@ DISCOVER_NOT_SUPPORTED=2
 VALID_ZONES="green orange red grey"
 
 SYS_CLASS_NET="/sys/class/net"
+
+# Timeout values
+TIMEOUT_RESTART=2