debug scripts.

This commit is contained in:
le 2023-03-30 21:37:43 +08:00
parent 08824d8c68
commit eb964de485
2 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,5 @@
#/sbin/bin
. /root/miniconda3/etc/profile.d/conda.sh
conda activate
cd /archinstall && python archinstall
cd /archinstall && python -m archinstall

View File

@ -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"