blob: 673cba50f3299ed929f81752f711c05a0e095fe9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/sh /etc/rc.common
start()
{
log 'Configuring network interfaces'
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 -i /var/run/net-ifaces
}
|