Skip to content

Commit 6c86f89

Browse files
Get wifi mac address from get_mac.sh script
Signed-off-by: Pratik Prajapati <[email protected]>
1 parent dd0124c commit 6c86f89

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/cgi-bin/connection.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ function configure_network(network, encryption, key)
2121
else
2222
uci.delete("wireless", "sta", "key")
2323
end
24-
local file = io.open("/etc/config/MAC_0", "r")
24+
os.execute(". /usr/bin/get_mac.sh 0")
25+
local file = io.open("/tmp/MAC", "r")
2526
if not file then
2627
return 1
2728
end

0 commit comments

Comments
 (0)