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
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"
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