1 parent
a44fce2591
commit
8fe69dba15
1 file changed
-2
@@ -6,7 +6,6 @@ export LANG=C.UTF-8
|
||||
export LANGUAGE=C
|
||||
export LC_ALL=C.UTF-8
|
||||
|
||||
if grep -iq raspberry /proc/cpuinfo; then
|
||||
apt-get --yes --no-install-recommends install jq
|
||||
mac="$(ip -j a show dev eth0 | jq -r .[].address | head -n1)"
|
||||
if [ -z "${mac}" ]; then
|
||||
@@ -17,6 +16,5 @@ if grep -iq raspberry /proc/cpuinfo; then
|
||||
echo -e "[Match]\nMACAddress=${mac}\n[Link]\nName=eth0" > /etc/systemd/network/10-persistent-eth0.link
|
||||
echo "Please reboot the system now."
|
||||
fi
|
||||
fi
|
||||
|
||||
exit 0
|
||||
Reference in new issue
Block a user