diff options
Diffstat (limited to 'scripts/vyatta_net_name')
| -rwxr-xr-x | scripts/vyatta_net_name | 22 | 
1 files changed, 16 insertions, 6 deletions
diff --git a/scripts/vyatta_net_name b/scripts/vyatta_net_name index e048800e..a7e7be8e 100755 --- a/scripts/vyatta_net_name +++ b/scripts/vyatta_net_name @@ -106,10 +106,15 @@ for name_hwid in ${cfg_net_hwid[@]} ; do      [[ $ethn -gt $last_ethn ]] && \  	last_ethn=$ethn      if [ "$hwid" == "$attr_address" ] ; then -	# we mod the config file interface sub-clock in case it is missing -	[[ "$BOOTFILE" != *test_* ]] && \ -	    ${vyatta_sbindir}/mod_bootfile_eth_hwid $BOOTFILE $name $attr_address  	echo $name +	# we mod the config file interface sub-clock in case it is missing +	if [[ "$BOOTFILE" != *test_* ]] && touch $BOOTFILE &> /dev/null ; then +	    ${vyatta_sbindir}/${cmd}_bootfile_eth_hwid \ +		$BOOTFILE \ +		$name \ +		$attr_address \ +		2>&1 | logger +	fi  	exit 0      fi      [ "$name" == "$kname" ] && \ @@ -141,11 +146,16 @@ else      cmd=add  fi -[[ "$BOOTFILE" != *test_* ]] && \ -    ${vyatta_sbindir}/${cmd}_bootfile_eth_hwid $BOOTFILE $name $attr_address -  echo $name +if [[ "$BOOTFILE" != *test_* ]] && touch $BOOTFILE &> /dev/null ; then +    ${vyatta_sbindir}/${cmd}_bootfile_eth_hwid \ +	$BOOTFILE \ +	$name \ +	$attr_address \ +	2>&1 | logger +fi +  # Local Variables:  # mode: shell-script  # sh-indentation: 4  | 
