mirror of
https://github.com/AuxXxilium/arc-addons.git
synced 2024-11-23 21:50:52 +07:00
misc: update
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
16b1ae0a72
commit
c41978c5d0
@ -137,7 +137,7 @@ elif [ "${1}" = "patches" ]; then
|
||||
# Set static IP from cmdline
|
||||
if grep -q 'network.' /proc/cmdline; then
|
||||
for I in $(grep -oE 'network.[0-9a-fA-F:]{12,17}=[^ ]*' /proc/cmdline); do
|
||||
MACR="$(echo "${I}" | cut -d. -f2 | cut -d= -f1 | sed 's/://g; s/.*/\L&/')"
|
||||
MACR="$(echo "${I}" | cut -d. -f2 | cut -d= -f1 | sed 's/://g; s/.*/\L&/' | tr '[:lower:]' '[:upper:]')"
|
||||
IPRS="$(echo "${I}" | cut -d= -f2)"
|
||||
for ETH in $(ls /sys/class/net/ 2>/dev/null | grep eth); do
|
||||
MACX=$(cat /sys/class/net/${ETH}/address 2>/dev/null | sed 's/://g; s/.*/\L&/' | tr '[:lower:]' '[:upper:]')
|
||||
|
Loading…
Reference in New Issue
Block a user