@@ -27,7 +27,7 @@ Welcome(){
27
27
echo -e " Optional Usage:"
28
28
echo -e " \tipv6-helper server: Set IPV6 configuration to server mode"
29
29
echo -e " \tipv6-helper relay: Set IPV6 configuration to relay mode"
30
- echo -e " \tipv6-helper hybird : Set IPV6 configuration to hybird mode"
30
+ echo -e " \tipv6-helper hybrid : Set IPV6 configuration to hybrid mode"
31
31
echo -e " \tipv6-helper clean: Remove mwan3 modules\n"
32
32
}
33
33
@@ -44,7 +44,7 @@ RebootConfirm(){
44
44
45
45
CheckInstall (){
46
46
if [ ! -f " /etc/opkg/ipv6-installed" ]; then
47
- echo -e " ${Green_font_prefix } \nYou shoud execute 'ipv6-helper install' first.\n${Green_font_prefix } "
47
+ echo -e " ${Red_background_prefix } \nYou shoud execute 'ipv6-helper install' first.\n${Font_color_suffix } "
48
48
else
49
49
echo -e " ${Green_font_prefix} \nConfiguring...\n${Font_color_suffix} "
50
50
fi
@@ -63,6 +63,7 @@ elif [[ $1 = "install" ]]; then
63
63
# Set server to lan
64
64
uci set dhcp.lan.dhcpv6=server
65
65
uci set dhcp.lan.ra=server
66
+ uci set dhcp.lan.ndp=hybrid
66
67
uci set dhcp.lan.ra_management=1
67
68
uci set dhcp.lan.ra_default=1
68
69
@@ -71,6 +72,7 @@ elif [[ $1 = "install" ]]; then
71
72
uci set dhcp.wan6.interface=wan
72
73
uci set dhcp.wan6.ra=server
73
74
uci set dhcp.wan6.dhcpv6=server
75
+ uci set dhcp.wan6.ndp=hybrid
74
76
uci set dhcp.wan6.master=1
75
77
76
78
# Disable IPV6 ula prefix
@@ -101,17 +103,17 @@ elif [[ $1 = "server" ]]; then
101
103
# Set server to lan
102
104
uci set dhcp.lan.dhcpv6=server
103
105
uci set dhcp.lan.ra=server
106
+ uci set dhcp.wan6.ndp=hybrid
104
107
uci set dhcp.lan.ra_management=1
105
108
uci set dhcp.lan.ra_default=1
106
- uci delete dhcp.lan.ndp
107
109
108
110
# Set server to wan6
109
111
uci set dhcp.wan6=dhcp
110
112
uci set dhcp.wan6.interface=wan
111
113
uci set dhcp.wan6.ra=server
112
114
uci set dhcp.wan6.dhcpv6=server
115
+ uci set dhcp.wan6.ndp=hybrid
113
116
uci set dhcp.wan6.master=1
114
- uci delete dhcp.wan6.ndp
115
117
116
118
# Commit changes
117
119
uci commit
@@ -144,28 +146,28 @@ elif [[ $1 = "relay" ]]; then
144
146
145
147
RebootConfirm
146
148
147
- elif [[ $1 = " hybird " ]]; then
149
+ elif [[ $1 = " hybrid " ]]; then
148
150
CheckInstall
149
151
150
- # Set hybird to lan
151
- uci set dhcp.lan.dhcpv6=hybird
152
- uci set dhcp.lan.ndp=hybird
153
- uci set dhcp.lan.ra=hybird
152
+ # Set hybrid to lan
153
+ uci set dhcp.lan.dhcpv6=hybrid
154
+ uci set dhcp.lan.ndp=hybrid
155
+ uci set dhcp.lan.ra=hybrid
154
156
uci set dhcp.lan.ra_management=1
155
157
uci set dhcp.lan.ra_default=1
156
158
157
- # Set hybird to wan6
159
+ # Set hybrid to wan6
158
160
uci set dhcp.wan6=dhcp
159
161
uci set dhcp.wan6.interface=wan
160
- uci set dhcp.wan6.ra=hybird
161
- uci set dhcp.wan6.dhcpv6=hybird
162
- uci set dhcp.wan6.ndp=hybird
162
+ uci set dhcp.wan6.ra=hybrid
163
+ uci set dhcp.wan6.dhcpv6=hybrid
164
+ uci set dhcp.wan6.ndp=hybrid
163
165
uci set dhcp.wan6.master=1
164
166
165
167
# Commit changes
166
168
uci commit
167
169
168
- echo -e " ${Green_font_prefix} Hybird mode configure successfully.\n${Font_color_suffix} "
170
+ echo -e " ${Green_font_prefix} Hybrid mode configure successfully.\n${Font_color_suffix} "
169
171
170
172
RebootConfirm
171
173
0 commit comments