blob: 11cb8e72afb9b0aa5f2bf81479a20cf828dadf7e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/sbin/runscript
# note that the spoofprotect, syncoockies and ip_forward options are set in
# /etc/sysctl.conf
start() {
ebegin "Configuring network interfaces"
ifup -a >/dev/null 2>&1
eend $?
}
stop() {
ebegin "Deconfiguring network interfaces"
ifdown -a >/dev/null 2>&1
eend $?
}
restart() {
ebegin "Reconfiguring network interfaces"
ifdown -a >/dev/null 2>&1 && ifup -a >/dev/null 2>&1
eend $?
}
|