Skip to content
This repository was archived by the owner on May 3, 2023. It is now read-only.

Commit 72627d7

Browse files
authored
Merge pull request #241 from EnnawYang/fix
Scripts: ipv6-helper.sh: fix typo
2 parents 8cec13f + c5bb4a5 commit 72627d7

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

scripts/ipv6-helper.sh

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Welcome(){
2727
echo -e "Optional Usage:"
2828
echo -e "\tipv6-helper server: Set IPV6 configuration to server mode"
2929
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"
3131
echo -e "\tipv6-helper clean: Remove mwan3 modules\n"
3232
}
3333

@@ -44,7 +44,7 @@ RebootConfirm(){
4444

4545
CheckInstall(){
4646
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}"
4848
else
4949
echo -e "${Green_font_prefix}\nConfiguring...\n${Font_color_suffix}"
5050
fi
@@ -144,28 +144,28 @@ elif [[ $1 = "relay" ]]; then
144144

145145
RebootConfirm
146146

147-
elif [[ $1 = "hybird" ]]; then
147+
elif [[ $1 = "hybrid" ]]; then
148148
CheckInstall
149149

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
150+
# Set hybrid to lan
151+
uci set dhcp.lan.dhcpv6=hybrid
152+
uci set dhcp.lan.ndp=hybrid
153+
uci set dhcp.lan.ra=hybrid
154154
uci set dhcp.lan.ra_management=1
155155
uci set dhcp.lan.ra_default=1
156156

157-
# Set hybird to wan6
157+
# Set hybrid to wan6
158158
uci set dhcp.wan6=dhcp
159159
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
160+
uci set dhcp.wan6.ra=hybrid
161+
uci set dhcp.wan6.dhcpv6=hybrid
162+
uci set dhcp.wan6.ndp=hybrid
163163
uci set dhcp.wan6.master=1
164164

165165
# Commit changes
166166
uci commit
167167

168-
echo -e "${Green_font_prefix}Hybird mode configure successfully.\n${Font_color_suffix}"
168+
echo -e "${Green_font_prefix}Hybrid mode configure successfully.\n${Font_color_suffix}"
169169

170170
RebootConfirm
171171

0 commit comments

Comments
 (0)