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"