1 parent
f32235373d
commit
643c115a9a
1 file changed
+8
@@ -1,5 +1,13 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
|
export APT_LISTCHANGES_FRONTEND=none
|
||||||
|
export LANG=C.UTF-8
|
||||||
|
export LANGUAGE=C
|
||||||
|
export LC_ALL=C.UTF-8
|
||||||
|
|
||||||
|
apt-get --yes --no-install-recommends jq
|
||||||
|
|
||||||
mac="$(ip -j a show dev eth0 | jq -r .[].address | head -n1)"
|
mac="$(ip -j a show dev eth0 | jq -r .[].address | head -n1)"
|
||||||
if [ -z "${mac}" ]; then
|
if [ -z "${mac}" ]; then
|
||||||
mac="$(ip -j a show dev end0 | jq -r .[].address | head -n1)"
|
mac="$(ip -j a show dev end0 | jq -r .[].address | head -n1)"
|
||||||
|
|||||||
Reference in new issue
Block a user