get rid of needless output

This commit is contained in:
huweihua 2014-11-04 21:43:02 -05:00
parent 06bbdbc33f
commit 51f9f121bc

View File

@ -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