mirror of
https://github.com/daeuniverse/dae.git
synced 2025-07-24 23:00:16 +07:00
Update run-on-macos.md
This commit is contained in:
@ -203,7 +203,7 @@ mkdir -p /Users/Shared/bin
|
|||||||
cat << 'EOF' > /Users/Shared/bin/dae-network-update.sh
|
cat << 'EOF' > /Users/Shared/bin/dae-network-update.sh
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -ex
|
set -ex
|
||||||
export PATH=$PATH:/opt/local/bin/
|
export PATH=$PATH:/opt/local/bin/:/opt/homebrew/bin/
|
||||||
dae_ip=$(limactl shell dae ip --json addr | limactl shell dae jq -cr '.[] | select( .ifname == "lima0" ).addr_info | .[] | select( .family == "inet" ).local')
|
dae_ip=$(limactl shell dae ip --json addr | limactl shell dae jq -cr '.[] | select( .ifname == "lima0" ).addr_info | .[] | select( .family == "inet" ).local')
|
||||||
current_gateway=$(route -n get default|grep gateway|rev|cut -d' ' -f1|rev)
|
current_gateway=$(route -n get default|grep gateway|rev|cut -d' ' -f1|rev)
|
||||||
networksetup -getdnsservers Wi-Fi | cut -d" " -f1 | grep -E '\.|:' && dns_override=1
|
networksetup -getdnsservers Wi-Fi | cut -d" " -f1 | grep -E '\.|:' && dns_override=1
|
||||||
|
Reference in New Issue
Block a user