From eb964de48516ef8404807cfde73ee180e8d696e5 Mon Sep 17 00:00:00 2001 From: le Date: Thu, 30 Mar 2023 21:37:43 +0800 Subject: [PATCH] debug scripts. --- activate_conda.sh | 3 ++- debug_install_net.sh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/activate_conda.sh b/activate_conda.sh index d6b5be4..90240e6 100644 --- a/activate_conda.sh +++ b/activate_conda.sh @@ -1,4 +1,5 @@ #/sbin/bin + . /root/miniconda3/etc/profile.d/conda.sh conda activate -cd /archinstall && python archinstall +cd /archinstall && python -m archinstall diff --git a/debug_install_net.sh b/debug_install_net.sh index 61b6126..adabbfd 100644 --- a/debug_install_net.sh +++ b/debug_install_net.sh @@ -4,7 +4,8 @@ local-install nic local-install vim.tiny hw-detect local-install ssh -eth0=`ip a |grep mtu|grep -v LOOP|grep 'ens[0-9]*' -o` +local-install awk +eth0=`ip link show | mawk '/^[0-9]+:/ {print substr($2, 1, length($2)-1)}' |grep -v lo` echo $eth0 echo "ip link set $eth0 up" echo "ip addr add 10.10.20.$1/24 dev $eth0"