]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - src/initscripts/system/static-routes
static-routes: Fixes bug12763
[ipfire-2.x.git] / src / initscripts / system / static-routes
index 85785e9af8ab1deb68382c04fb479f408caa49dc..9aacc8db5fb3f6669d6ad8e3456ba911fc8a7d53 100644 (file)
@@ -29,14 +29,14 @@ function init_table() {
                return
        fi
 
-       ip rule add table static
+       ip rule add table static >/dev/null 2>&1
 }
 
 function create_all_routes() {
        local file=${1}
        shift
 
-       # Remote all routes.
+       # Remove all routes.
        ip route flush table static >/dev/null 2>&1
 
        local status
@@ -54,7 +54,7 @@ function create_all_routes() {
                        continue
                fi
 
-               ip route add ${network} via ${gateway} table static proto static
+               ip route add ${network} via ${gateway} table static proto static >/dev/null 2>&1
        done < ${file}
 }