From: Ian Kelling Date: Mon, 18 Nov 2024 04:29:59 +0000 (-0500) Subject: minor fix and improvement X-Git-Url: https://iankelling.org/git/?a=commitdiff_plain;h=d2d15644ac9e233116e4e2ed6b52766f9ca62675;p=distro-setup minor fix and improvement --- diff --git a/brc b/brc index 5dda2e0..f8691ed 100644 --- a/brc +++ b/brc @@ -3470,8 +3470,10 @@ nonet() { } # echo args then run m() { printf "%s\n" "$*"; "$@"; } -# echo args then run and send output to stderr +# echo args to stderr, then run. Useful when discarding stdout m2() { printf "%s\n" "$*" >&2; "$@"; } +# echo args, then run args in background, discarding output. +mq() { printf "%s\n" "$*"; "$@" &>/dev/null & } # better uptime diff --git a/brc2 b/brc2 index e44c101..b89604a 100644 --- a/brc2 +++ b/brc2 @@ -3055,7 +3055,7 @@ mns() { # mount namespace # systemd namespace + mount namespace sdmn() { - local ns unit user tmpf alt_user=false + local ns unit user tmpf pre_check pid alt_user=false local -a final_args user=$USER while [[ $1 ]]; do @@ -3094,7 +3094,7 @@ sdmn() { } mnsd() { # mount namespace + systemd network namespace - local ns unit user tmpf alt_user=false + local ns unit user tmpf pre_check pid alt_user=false local -a final_args ## begin command line args ##