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