mirror of
https://github.com/yuaotian/go-cursor-help.git
synced 2025-06-08 12:32:06 +08:00
Merge branch 'master' of https://github.com/yuaotian/go-cursor-help
This commit is contained in:
commit
291c6198bc
@ -152,6 +152,7 @@ _change_mac_for_one_interface() {
|
|||||||
sleep 3
|
sleep 3
|
||||||
|
|
||||||
log_info "尝试为接口 '$interface_name' 设置 MAC 地址: $random_mac"
|
log_info "尝试为接口 '$interface_name' 设置 MAC 地址: $random_mac"
|
||||||
|
sudo ifconfig $interface_name up
|
||||||
if sudo ifconfig "$interface_name" ether "$random_mac"; then
|
if sudo ifconfig "$interface_name" ether "$random_mac"; then
|
||||||
log_info "尝试修改接口 '$interface_name' 的 MAC 地址为: $random_mac [成功]"
|
log_info "尝试修改接口 '$interface_name' 的 MAC 地址为: $random_mac [成功]"
|
||||||
local new_mac_check=$(ifconfig "$interface_name" | awk '/ether/{print $2}')
|
local new_mac_check=$(ifconfig "$interface_name" | awk '/ether/{print $2}')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user