summaryrefslogtreecommitdiffstats
path: root/init.d/networking
blob: b23a0bc4f1dc6e9609a0edb44cb309974d0ae040 (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
	eend $?
}

stop() {
	ebegin "Deconfiguring network interfaces"
	ifdown -a
	eend $?
}

restart() {
	ebegin "Reconfiguring network interfaces"
	ifdown -a && ifup -a
	eend $?
}