From b99077e48737540bb973b06ee75c2aade1ca4d3f Mon Sep 17 00:00:00 2001 From: bergware Date: Sat, 3 Jun 2023 11:42:03 +0200 Subject: [PATCH] rc.inet1 suppress error messages --- etc/rc.d/rc.inet1 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/etc/rc.d/rc.inet1 b/etc/rc.d/rc.inet1 index 127766cf0..6cd2e3bbf 100755 --- a/etc/rc.d/rc.inet1 +++ b/etc/rc.d/rc.inet1 @@ -1,4 +1,4 @@ -#! /bin/sh +#!/bin/sh # /etc/rc.d/rc.inet1 # This script is used to bring up the various network interfaces. # @@ -45,13 +45,14 @@ # Adapted by Bergware for use in unRAID - May 2023 # - added iptables and ip6tables and arp-tables inclusion to bridge interfaces # - fixed ipv4 and ipv6 DNS assignment +# - suppress errors ############################ # READ NETWORK CONFIG FILE # ############################ # get the configuration information from rc.inet1.conf -source /etc/rc.d/rc.inet1.conf +. /etc/rc.d/rc.inet1.conf # system network reference SYSTEM=/sys/class/net @@ -69,7 +70,7 @@ alias log=run run(){ # log command in /var/log/syslog and execute logger -t rc.inet1 "$*" - [[ -n $2 ]] && $* + [[ -n $2 ]] && $* 2>/dev/null } ############################