mirror of
https://huihui.cat/mirrors/MikroTikPatch.git
synced 2025-12-10 03:24:37 +01:00
Update chr_busybox.sh
Signed-off-by: elseif <elseif@live.cn>
This commit is contained in:
parent
7c22877423
commit
2162e76e64
1 changed files with 1 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ STORAGE=$(for d in /sys/block/*; do
|
|||
done)
|
||||
echo "STORAGE is $STORAGE"
|
||||
|
||||
ETH=$(ip route show default | sed -n 's/.* dev \([^\ ]*\) .*/\1/p')
|
||||
ETH=$(ip route show default | grep '^default' | sed -n 's/.* dev \([^\ ]*\) .*/\1/p')
|
||||
echo "ETH is $ETH"
|
||||
|
||||
ADDRESS=$(ip addr show $ETH | grep global | cut -d' ' -f 6 | head -n 1)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue