X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=brc;h=1c1f0f8ac8fb2b4ebfe3be8196b31e21692ccaa0;hb=5f97e1c4a592a6384a7a3d86f8ed337beb7e108f;hp=15799b880f790aab264ea2cc56acd79a1721d844;hpb=23a824d2e65674d73c8748b537fa0f3995113e94;p=distro-setup diff --git a/brc b/brc index 15799b8..1c1f0f8 100644 --- a/brc +++ b/brc @@ -183,13 +183,18 @@ unset _x for x in /a/bin/bash_unpublished/source-!(.#*); do source $x; done source $(dirname $(readlink -f $BASH_SOURCE))/path_add-function source /a/bin/log-quiet/logq-function -if [[ -e /a/bin/errhandle/err ]]; then - source /a/bin/errhandle/err - err-allow -fi -# if someone exported $SOE (stop on error), catch errors +# if someone exported $SOE (stop on error), catch errors. +# +# Note, on debian this results in the following warning when in ssh, +# hich I haven't figured out how to fix. It doesn't happen if we source +# after the shell has started +# +# bash: /usr/share/bashdb/bashdb-main.inc: No such file or directory +# bash: warning: cannot start debugger; debugging mode disabled if [[ $SOE ]]; then - err-catch + if [[ -e /a/bin/errhandle/err ]]; then + source /a/bin/errhandle/err + fi fi path_add /a/exe @@ -1559,11 +1564,17 @@ stopnm() { ser stop dnsmasq s resolvconf -d NetworkManager ser start dnsmasq + s ifup br0 } startnm() { + s ifdown br0 ser start NetworkManager s nmtui-connect } +rebr() { + s ifdown br0 + s ifup br0 +} setini() { # set a value in a .ini style file key="$1" value="$2" section="$3" file="$4" @@ -1998,23 +2009,6 @@ wian() { wtr() { curl wttr.in/boston; } -xl() { - if pgrep gnome-screensav &>/dev/null; then - # this command actually starts gnome-screensaver if it isn\'t running. - # lololol, what crap - gnome-screensaver-command --exit &>/dev/null - fi - mate-screensaver-command --exit &>/dev/null - if ! pidof xscreensaver; then - pushd / - xscreensaver & - popd - # 1 was not long enough - sleep 3 - fi - xscreensaver-command -activate -} - xevkb() { xev -event keyboard; } # * misc stuff