blob: 7f671b1c218414484fcb91f1aaa445ab1ebc7088 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
case "$ACTION" in
ifup)
. /lib/functions.sh
local proto ip6slaac
config_load network
config_get proto "$INTERFACE" proto
config_get_bool ip6slaac "$INTERFACE" ip6slaac
if [ "$proto" = "static" -a "$ip6slaac" = "1" ]; then
echo 2 > "/proc/sys/net/ipv6/conf/$DEVICE/accept_ra"
echo 2 > "/proc/sys/net/ipv6/conf/$DEVICE/forwarding"
# Though this should be save here, it is not recommended
echo 1 > "/proc/sys/net/ipv6/conf/$DEVICE/disable_ipv6"
echo 0 > "/proc/sys/net/ipv6/conf/$DEVICE/disable_ipv6"
fi
;;
esac
|