}
ccomp cd c
+bwm() {
+ s bwm-ng -T avg -d
+ }
+
b() {
local topb
if (( ${#_iankdirb[@]} == 0 )); then
grep '^ *hosts:' /etc/nsswitch.conf
if systemctl is-enabled systemd-resolved &>/dev/null || [[ $(systemctl is-active systemd-resolved ||:) != inactive ]]; then
hr; m ser status systemd-resolved | cat || :
- hr; m systemd-resolve --status | cat
+ hr; m resolvectl status | cat
fi
}
sdnbash() { # systemd namespace bash
local unit pid
+ if (( $# != 0 )); then
+ echo $0: error wrong number of args >&2
+ return 1
+ fi
unit=$1
pid=$(servicepid $unit)
m sudo nsenter -t $pid -n -m sudo -u $USER -i bash
sdncmd() { # systemd namespace cmd
local unit pid
+ if (( $# != 0 )); then
+ echo $0: error wrong number of args >&2
+ return 1
+ fi
unit=$1
shift
pid=$(servicepid $unit)
# run it directly, eg:
# time s btrbk -v archive /mnt/r7/amy/boot/btrbk ssh://bo/mnt/boot2/btrbk
archive)
- cmd=resume
+ cmd_arg=resume
std_preserve="999h 999d 999w 999m"
q_preserve="$std_preserve"
preserve_arg=-p
m ifup $gateway_if
fi
- # at least on systemd 237 ifupdown it sets a global and this is not needed
- systemd-resolve --interface=$gateway_if --revert
+ # At least on systemd 237 ifupdown it sets a global and this is not
+ # needed. we are way past that, but I dont think it hurts.
+ resolvectl revert $gateway_if
else
e $0: no gateway_if found
fi