zsh-shell-init/alias.d/opt/keep_en0.sh
2023-09-13 17:10:07 +08:00

6 lines
221 B
Bash
Executable File

# shellcheck shell=ksh
# Ethernet Address: 54:8d:5a:84:1b:15 (Device: en0)
hack_mac="0b:b7:f6:21:bd:0c"
/sbin/ifconfig en0 up
/sbin/ifconfig en0 ether "$hack_mac"
echo "$(date "+%Y-%m-%d %H:%M:%S")" write en0 "$hack_mac"