X-Git-Url: https://iankelling.org/git/?p=distro-setup;a=blobdiff_plain;f=distro-begin;h=89a09babf4e1f78c6a9af33ed530985da90a0359;hp=570d077ca68d1fc9f5bdbb666962de4e83506bdb;hb=79b274fcd8bfa556133ab13270e84b40aebe8468;hpb=410b30bc4194a6c84db5d73b15a7e211ce47bc9c diff --git a/distro-begin b/distro-begin index 570d077..89a09ba 100755 --- a/distro-begin +++ b/distro-begin @@ -22,6 +22,24 @@ # set the scrollback to unlimited in case something goes wrong +# send to registrar, glue records: +# for iankelling.org: + +# ns1.iankelling.org 72.14.176.105 +# ns1.iankelling.org 2600:3c00::f03c:91ff:fe6d:baf8 +# ns2.iankelling.org 172.105.84.95 +# ns2.iankelling.org 2a01:7e01::f03c:91ff:feb5:baec + +# for zroe.org: + +# ns1.zroe.org 72.14.176.105 +# ns1.zroe.org 2600:3c00::f03c:91ff:fe6d:baf8 +# ns2.zroe.org 172.105.84.95 +# ns2.zroe.org 2a01:7e01::f03c:91ff:feb5:baec +# + + + ####### begin setup environment ####### @@ -80,14 +98,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; } @@ -217,9 +235,9 @@ EOF done ###### do conflink -# li needs the bind group before conflink -if [[ $HOSTNAME == li ]]; then - getent group bind &>/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