Update 2024-02-14 07:51 OpenBSD/amd64-x13
This commit is contained in:
11
.bin/OLD/ifonly
Executable file
11
.bin/OLD/ifonly
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
only=$1
|
||||
|
||||
for if in $(ifconfig | grep "^[a-z]" | cut -d":" -f1 | grep -Ev "lo0|enc0|pflog0")
|
||||
do
|
||||
doas ifconfig $if down
|
||||
doas ifconfig $if -inet
|
||||
doas ifconfig $if -inet6
|
||||
done
|
||||
doas ifconfig $only inet autoconf up
|
||||
Reference in New Issue
Block a user