debug scripts.
This commit is contained in:
parent
08824d8c68
commit
eb964de485
|
@ -1,4 +1,5 @@
|
||||||
#/sbin/bin
|
#/sbin/bin
|
||||||
|
|
||||||
. /root/miniconda3/etc/profile.d/conda.sh
|
. /root/miniconda3/etc/profile.d/conda.sh
|
||||||
conda activate
|
conda activate
|
||||||
cd /archinstall && python archinstall
|
cd /archinstall && python -m archinstall
|
||||||
|
|
|
@ -4,7 +4,8 @@ local-install nic
|
||||||
local-install vim.tiny
|
local-install vim.tiny
|
||||||
hw-detect
|
hw-detect
|
||||||
local-install ssh
|
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 $eth0
|
||||||
echo "ip link set $eth0 up"
|
echo "ip link set $eth0 up"
|
||||||
echo "ip addr add 10.10.20.$1/24 dev $eth0"
|
echo "ip addr add 10.10.20.$1/24 dev $eth0"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user