From 51f9f121bc69bf7547f850ce035e963a642c1981 Mon Sep 17 00:00:00 2001 From: huweihua Date: Tue, 4 Nov 2014 21:43:02 -0500 Subject: [PATCH] get rid of needless output --- xCAT/postscripts/updatenetwork | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT/postscripts/updatenetwork b/xCAT/postscripts/updatenetwork index de7db45c8..dd3e18900 100644 --- a/xCAT/postscripts/updatenetwork +++ b/xCAT/postscripts/updatenetwork @@ -4,8 +4,8 @@ . /tmp/post-install/variables.txt #delete the udev rule in the image -rule_file=`ls /etc/udev/rules.d/*net_persistent_names.rules` -if [ -n "$rule_file" ];then +rule_file="/etc/udev/rules.d/*net_persistent_names.rules" +if ls $rule_file >/dev/null 2>&1;then rm -f $rule_file fi