garywill / linux-router

Set Linux as router in one command. Support Internet sharing, redsocks, Wifi hotspot, IPv6. Can also be used for routing VM/containers 🛰️ (也欢迎关注B站 https://space.bilibili.com/2123686105 )
GNU Lesser General Public License v2.1
1.67k stars 148 forks source link

Syntax error line number #662 #54

Open trinityzhub opened 1 year ago

trinityzhub commented 1 year ago

sudo lnxrouter --ap wlan0 MyAccessPoint -p MyPassPhrase

I got "syntax error" :

/usr/bin/lnxrouter: 622: /usr/bin/lnxrouter: Syntax error: "(" unexpected (expecting "}")

FYI:

OS: Debian Linux Wifi availability : Laptop attached Wifi I changed the wifi access point by using the command sudo iwconfig

Ref:


is_5ghz_frequency() {
    [[ $1 =~ ^(49[0-9]{2})|(5[0-9]{3})$ ]]
}