From c6e174dddf79c1cb72ad7b3d8e3313ab3725630d Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 14 Jun 2014 12:18:28 -0400 Subject: /etc/init.d/networking: Look for interfaces.local. Don't silently deconfigure before configuring in the start action. Use default restart action. --- diff --git a/src.etc/init.d/networking b/src.etc/init.d/networking index f53899f..673cba5 100755 --- a/src.etc/init.d/networking +++ b/src.etc/init.d/networking @@ -3,19 +3,17 @@ start() { log 'Configuring network interfaces' - ifdown -a >/dev/null 2>&1 - ifup -a + if [ -e /etc/network/interfaces.local ]; then + file=/etc/network/interfaces.local + else + file=/etc/network/interfaces + fi + ifup -a -i "${file}" + cp "${file}" /var/run/net-ifaces } stop() { log 'Deconfiguring network interfaces' - ifdown -a -} - -restart() -{ - log 'Reconfiguring network interfaces' - ifdown -a - ifup -a + ifdown -a -i /var/run/net-ifaces } -- cgit v0.9.1