From: Jo-Philipp Wich Date: Mon, 17 Sep 2012 18:36:51 +0000 (+0000) Subject: base-files: make file compare silent in migrate-sysctl X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=2165240c3237a4a42e8687ab9b3d04e8f1e1bff5;p=openwrt%2Fstaging%2Flinusw.git base-files: make file compare silent in migrate-sysctl SVN-Revision: 33449 --- diff --git a/package/base-files/files/etc/uci-defaults/migrate-sysctl b/package/base-files/files/etc/uci-defaults/migrate-sysctl index 2250c57802..b3796a4d2d 100644 --- a/package/base-files/files/etc/uci-defaults/migrate-sysctl +++ b/package/base-files/files/etc/uci-defaults/migrate-sysctl @@ -1,6 +1,6 @@ #!/bin/sh -if [ ! -f "/rom/etc/sysctl.conf" ] || cmp "/rom/etc/sysctl.conf" "/etc/sysctl.conf"; then +if [ ! -f "/rom/etc/sysctl.conf" ] || cmp -s "/rom/etc/sysctl.conf" "/etc/sysctl.conf"; then exit 0 fi