thanks @procrat

This commit is contained in:
Felix Van der Jeugt 2016-10-22 17:53:42 +02:00
parent fd5aabf97f
commit 7e9b3cd2ca
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
# Reading our private mac
here="$(dirname "$0")"
mac="$(cat "$here/macaddress")"
link="$(ip link | grep enp | tr -d ' ' | cut -d: -f2)"
link="$(basename /sys/class/net/enp*)"
# Setting the MAC address for our wired
sudo ip link set "$link" down