X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=distro-begin;h=783c6cebab6c90c46a95fab76bb611a416a92636;hb=efcfe83c7df501547696e38d822232e67b94644f;hp=abcb892f5e1f4747e64cd6a7adb474af8ba21555;hpb=7e4f3d0a6130b69b7f76a3ff13e510ffbeb1484b;p=distro-setup diff --git a/distro-begin b/distro-begin index abcb892..783c6ce 100755 --- a/distro-begin +++ b/distro-begin @@ -80,14 +80,14 @@ source $script_dir/pkgs set +x source /a/bin/distro-functions/src/identify-distros $interactive || set -x -for f in kd x2 x3 frodo tp li lj demohost kw; do +for f in kd x2 x3 frodo tp li l2 demohost kw; do eval "$f() { [[ $HOSTNAME == $f ]]; }" done codename=$(debian-codename) has_wayland() { has_monitor && [[ $codename == buster ]]; } has_x() { has_monitor && [[ $codename != buster ]]; } has_monitor() { ! linode ; } -linode() { lj || li; } +linode() { l2 || li; } # linode actually has btrfs now, but we dont do anything with it. has_btrfs() { ! linode; } home_network() { ! linode && ! kw; } @@ -195,8 +195,10 @@ if [[ $HOSTNAME != $(cat /etc/hostname) ]]; then echo $HOSTNAME > /etc/hostname hostname -F /etc/hostname fi -sudo $sed -i '/^127\.0\.1\.1/d' /etc/hosts -echo "127.0.1.1 $HOSTNAME.b8.nz $HOSTNAME" | sudo tee -a /etc/hosts +sudo sed -i --follow-symlinks -f - /etc/hosts </dev/null || sudo groupadd -r bind +# linode needs bind group before conflink +if $linode; then + pi-nostart bind9 fi # this needs to be before installing pacserve so we have gpg conf. conflink