mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-21 09:41:47 +01:00
network: Quiet grep on remove
This commit is contained in:
@@ -399,7 +399,7 @@ remove_interface() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Remove interface from /etc/rc.conf
|
# Remove interface from /etc/rc.conf
|
||||||
if [ -n "${_if_vnet}" ] && echo ${_if_vnet} 2>/dev/null | grep -Eo 'vnet[0-9]+'; then
|
if [ -n "${_if_vnet}" ] && echo ${_if_vnet} 2>/dev/null | grep -Eoq 'vnet[0-9]+'; then
|
||||||
sed -i '' "/.*${_if_vnet}.*/d" "${_jail_rc_config}"
|
sed -i '' "/.*${_if_vnet}.*/d" "${_jail_rc_config}"
|
||||||
else
|
else
|
||||||
error_continue "Failed to remove interface from /etc/rc.conf"
|
error_continue "Failed to remove interface from /etc/rc.conf"
|
||||||
|
|||||||
Reference in New Issue
Block a user