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: "(" unexpected (expecting "}") #39

Closed moarief closed 2 years ago

moarief commented 2 years ago

Hi,

Downloaded the file and tried to run it, but keep getting this error:

610: Syntax error: "(" unexpected (expecting "}")

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

I can't see anything wrong here, but might just be me?

Operating system: Kali Linux

garywill commented 2 years ago

Were you running with wifi connected? Run this (with wifi connected), post the result:

iw dev <YOUR-WIFI-IFACE> link
moarief commented 2 years ago

My bad, had to set executable permission first :)