X-Git-Url: https://iankelling.org/git/?p=newns;a=blobdiff_plain;f=newns;fp=newns;h=7e3bf2b368e1fd27645fc2515229ca863accea82;hp=894ac310b2963866328fe545b20ced78e1d2ceab;hb=06e6cf7edb4f03cd47ebe21d4e7f83912a7b9eaf;hpb=f57d11a6635aa26b32085db9aa53d8baedb47944 diff --git a/newns b/newns index 894ac31..7e3bf2b 100755 --- a/newns +++ b/newns @@ -176,25 +176,12 @@ dexec() { ip netns exec default "$@"; } mexec() { /usr/bin/nsenter --mount=/root/mount_namespaces/$nn "$@"; } -# background: head -n1 is defensive. Not sure if there is some weird feature -# for 2 routes to be 0/0. -gateway_ifs=($(ipd route list exact 0/0 | head -n1| sed -r 's/.*dev\s+(\S+).*/\1/')) - -if [[ ! $gateway_ifs ]]; then - cat >&2 <