mirror of
https://github.com/rwinkhart/artix-install-script.git
synced 2026-09-02 23:17:32 -04:00
Enable IPv6 privacy extensions
This commit is contained in:
@@ -42,6 +42,7 @@ if ! ([ "$gpu" == 'NVIDIA' ] || [ "$gpu" == 'Intel' ]); then
|
|||||||
gpu=AMD
|
gpu=AMD
|
||||||
fi
|
fi
|
||||||
ram=$(echo "$(< /proc/meminfo)" | grep 'MemTotal:' | awk '{print $2;}'); ram=$(echo "$ram / 1000000" | bc)
|
ram=$(echo "$(< /proc/meminfo)" | grep 'MemTotal:' | awk '{print $2;}'); ram=$(echo "$ram / 1000000" | bc)
|
||||||
|
interfaces=(/sys/class/net/*)
|
||||||
# stop hardware detection
|
# stop hardware detection
|
||||||
|
|
||||||
# start conditional questions
|
# start conditional questions
|
||||||
@@ -168,6 +169,12 @@ echo "hostname=\'"$hostname"\'" > /mnt/etc/conf.d/hostname
|
|||||||
base_devel='db diffutils gc guile libisl libmpc perl autoconf automake bash dash binutils bison esysusers etmpfiles fakeroot file findutils flex gawk gcc gettext grep groff gzip libtool m4 make pacman pacman-contrib patch pkgconf python sed opendoas texinfo which bc udev'
|
base_devel='db diffutils gc guile libisl libmpc perl autoconf automake bash dash binutils bison esysusers etmpfiles fakeroot file findutils flex gawk gcc gettext grep groff gzip libtool m4 make pacman pacman-contrib patch pkgconf python sed opendoas texinfo which bc udev'
|
||||||
basestrap /mnt base $base_devel openrc elogind-openrc linux linux-firmware git micro man-db bash-completion
|
basestrap /mnt base $base_devel openrc elogind-openrc linux linux-firmware git micro man-db bash-completion
|
||||||
|
|
||||||
|
# applying IPv6 privacy entensions for all interfaces
|
||||||
|
echo -e 'net.ipv6.conf.all.use_tempaddr = 2\nnet.ipv6.conf.default.use_tempaddr = 2' > /mnt/etc/sysctl.d/40-ipv6.conf
|
||||||
|
for int in "${interfaces[@]}"; do
|
||||||
|
echo "net.ipv6.conf.${int:15}.use_tempaddr = 2" >> /mnt/etc/sysctl.d/40-ipv6.conf
|
||||||
|
done
|
||||||
|
|
||||||
# exporting variables
|
# exporting variables
|
||||||
mkdir /mnt/tempfiles
|
mkdir /mnt/tempfiles
|
||||||
echo "$formfactor" > /mnt/tempfiles/formfactor
|
echo "$formfactor" > /mnt/tempfiles/formfactor
|
||||||
|
|||||||
Reference in New Issue
Block a user