# https://superuser.com/questions/366930/how-do-i-get-the-git-pager-to-clean-up-screen-output-after-exit
# and reading the man
export LESS=RXi
+export SYSTEMD_LESS=$LESS
# * include files
for _x in /a/bin/distro-functions/src/* /a/bin/!(githtml)/*-function?(s); do
}
bbk() {
+ c /
# run latest
install-my-scripts
btrbk-run "$@"
s iptables -A INPUT -s $1 -j DROP
}
+jr() { journalctl "$@"; }
+
net-dev-info() {
e "lspci -nnk|gr -iA2 net"
lspci -nnk|gr -iA2 net
}
ser() {
- local s; [[ $EUID != 0 ]] && s=sudo
+ local s; [[ $EUID != 0 ]] && s=s
if type -p systemctl &>/dev/null; then
$s systemctl $1 $2
else
if diff -q $tmpf $BASH_SOURCE; then
echo "$0: found newer version on host $source. reexecing"
install -T $tmpf /usr/local/bin/btrbk-run
- /usr/local/bin/btrbk-run --pull-reexec "${orig_args[@]}"
+ m /usr/local/bin/btrbk-run --pull-reexec "${orig_args[@]}"
+ exit
fi
fi
SHELL=/bin/bash
-*/10 * * * * iank /a/exe/rootsshsync 2>&1 | /usr/local/bin/log-once -15
+*/10 * * * * iank /a/exe/rootsshsync 2>&1 | /usr/local/bin/log-once -15 rootsshsync
\ No newline at end of file
# MAIN_HARDCODE_PRIMARY_HOSTNAME might mess up the
# smarthost config type, not sure. all other settings
# would be unused in that config type.
- cat >/etc/exim4/conf.d/main/000_localmacros <<EOF
+ rm -f /etc/exim4/conf.d/main/000_localmacros # old filename
+ cat >/etc/exim4/conf.d/main/000_local <<EOF
# i don't have ipv6 setup for my vpn tunnel yet.
disable_ipv6 = true
# libterm-readkey-perl for rt cli tool
# fonts pkgs are an attempt to get less block characters
# gnat-5 & ccache is for coreboot
+# python-dnspython is needed by some ansible module and 3 is
+# for when ansible becomes py3.
p4=(
adb
ansible
dirmngr
dnsutils
dnsmasq
+ python-dnspython
+ python3-dnspython
dtrx
duplicity
eclipse
# todo: setup vpn so this is all taken care of.
if ! $update_wrt; then
wrt_shell=:
-elif $at_home; then
- wrt_shell="ssh wrt.b8.nz"
else
- if [[ $old_host == iank.vpn.office.fsf.org || $new_host == iank.vpn.office.fsf.org ]]; then
- wrt_shell="ssh iank.vpn.office.fsf.org ssh wrt.b8.nz"
- else
- wrt_shell="ssh $HOME_DOMAIN ssh wrt.b8.nz"
- fi
+ wrt_shell="ssh wrt.b8.nz"
fi
btrbk_test="systemctl is-active btrbk.service"