mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-13 04:32:09 +01:00
29 lines
511 B
Plaintext
29 lines
511 B
Plaintext
#!/sbin/runscript
|
|
|
|
# note that the spoofprotect, syncoockies and ip_forward options are set in
|
|
# /etc/sysctl.conf
|
|
depend() {
|
|
after bootmisc hwdrivers modules
|
|
provide net
|
|
keyword nojail noprefix novserver
|
|
}
|
|
|
|
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 $?
|
|
}
|
|
|