diff options
Diffstat (limited to 'init.d/networking')
-rwxr-xr-x | init.d/networking | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/init.d/networking b/init.d/networking new file mode 100755 index 0000000..b23a0bc --- /dev/null +++ b/init.d/networking @@ -0,0 +1,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 $? +} + |