浏览代码

POSIX compatibility modification

Laurent HUBERT 7 年之前
父节点
当前提交
f69c758685
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      scripts/lfirewall

+ 2 - 2
scripts/lfirewall

@@ -288,12 +288,12 @@ case "$1" in
 	status)
 		do_action=do_check
 		global_status=0
-		if [[ "$2" = "-v" ]] ; then
+		if [ "$2" = "-v" ] ; then
 			do_log=log_action
 		fi
 		# Start will not really start but exec the "check" action
 		fw_start
-		if [[ 0 -eq "$global_status" ]] ; then
+		if [ 0 -eq "$global_status" ] ; then
 			echo "Firewall rules match configuration"
 			exit 0
 		else