]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
network: move start of static-routes
authorTimo Eissler <timo@eissler.pro>
Sat, 27 Sep 2014 21:28:04 +0000 (23:28 +0200)
committerTimo Eissler <timo@eissler.pro>
Sat, 27 Sep 2014 21:28:04 +0000 (23:28 +0200)
Fixes #10454

Create static routes after network interfaces are initialised.

src/initscripts/init.d/network

index 1e48af94942cca5b43ef1d352f0fe9fd11eaf098..9182e9801fec62c139755fd6c8ef55c93c6966f9 100644 (file)
@@ -18,7 +18,6 @@ eval $(/usr/local/bin/readhash /var/ipfire/ethernet/settings)
 
 init_networking() {
        /etc/rc.d/init.d/dnsmasq start
-       /etc/rc.d/init.d/static-routes start
 }
 
 DO="${1}"
@@ -69,6 +68,8 @@ case "${DO}" in
                                [ "$AUTOCONNECT" == "off" ] || /etc/rc.d/init.d/networking/red start
                        fi
                fi
+
+               /etc/rc.d/init.d/static-routes start
                ;;
 
        stop)