diff options
-rwxr-xr-x | src.etc/init.d/networking | 18 |
1 files changed, 8 insertions, 10 deletions
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 } |