artix

default description
git clone https://git.awy.one/artix.git
Log | Files | Refs | README | LICENSE

commit 8d66996abee47c50b84b13c88ae316cec6b5d3c2
parent ff05de5e7369ef8103ef18da5195ee43c4c4eb41
Author: awy <awy@awy.one>
Date:   Sat, 15 Nov 2025 02:57:33 +0300

static dhcpcd

Diffstat:
Mpost_chroot.sh | 13+++++++++++++
1 file changed, 13 insertions(+), 0 deletions(-)

diff --git a/post_chroot.sh b/post_chroot.sh @@ -172,6 +172,19 @@ pacman -S libva-nvidia-driver --noconfirm sed -i 's|ACTIVE_CONSOLES="/dev/tty\[1-6\]"|ACTIVE_CONSOLES="/dev/tty[1-2]"|' /etc/dinit.d/config/console.conf +interface=$(ip route show default | awk '{print $5}') +routerip=$(ip route show default | awk '{print $3}') +machineip=$(ip -4 addr show dev "$interface" | awk '/inet/ {print $2}') +dnsserver="1.1.1.1" + +cat <<EOL >> /etc/dhcpcd.conf +noarp +interface $interface +static ip_address=$machineip +static routers=$routerip +static domain_name_servers=$dnsserver +EOL + rm -rf /home/"$username"/.bash* rm /post_chroot.sh