X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=arch-iso-init;fp=arch-iso-init;h=0000000000000000000000000000000000000000;hb=0d7f79362d601b278236cd1c533c7333e342b54a;hp=e0118f220cd4275e80406f7d824368b2c3b12b98;hpb=15da839e14b07b30de9c3f7559bd17213e4f193d;p=automated-distro-installer diff --git a/arch-iso-init b/arch-iso-init deleted file mode 100644 index e0118f2..0000000 --- a/arch-iso-init +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash -echo $(date) > /tmp/myarchinit.log -if ! ip a | grep '^ *inet ' | grep -vF 127.0.0.1; then - cat <<'eof' -We don't have an ipv4 address. Maybe arch doesn't do that for us, -or we are probably using an ethernet port -which is not the 1st one, so we haven't automatically done dhcpcd, -so let's do it on whatever interface has a carrier -eof - for f in /sys/class/net/*; do - if [[ `cat $f/carrier` == 1 ]]; then - echo $0: running: dhcpcd ${f##*/} - dhcpcd ${f##*/} - break - fi - done -fi -systemctl start sshd