-#!/bin/bash -l
+#!/bin/bash
# Copyright (C) 2016 Ian Kelling
#
# Licensed under the Apache License, Version 2.0 (the "License");
# 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 #######
### make ssh interactive shell run better. for when running line interactively line by line
-sudo bash -c 'source /a/c/.bashrc && source /a/exe/ssh-emacs-setup'
-
+sudo bash -c '/a/exe/ssh-emacs-setup'
+if [[ -s ~/.bashrc ]];then . ~/.bashrc;fi
##### setup error handling
interactive=true # set this to false to force set -x
[[ $- == *i* ]] || interactive=false
fi
source /a/bin/errhandle/err
-_errcatch_cleanup() {
+errcatch-cleanup() {
echo 1 >~/.local/distro-begin
}
###### do conflink
# linode needs bind group before conflink
-if $linode; then
+if linode; then
pi-nostart bind9
fi
# this needs to be before installing pacserve so we have gpg conf.
set +x
err-allow
source /etc/profile.d/environment.sh
+export BRC=t
# shellcheck source=./.bashrc
source ~/.bashrc
err-catch
sudo rmmod evbug ||: # might not be loaded yet
file=/etc/modprobe.d/evbug.conf
line="blacklist evbug"
- if ! grep -xFq "$line" $file; then
+ if [[ $(cat $file) != $line ]]; then
sudo dd of=$file 2>/dev/null <<<"$line"
sudo depmod -a
sudo update-initramfs -u