base-files: make file compare silent in migrate-sysctl
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 17 Sep 2012 18:36:51 +0000 (18:36 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 17 Sep 2012 18:36:51 +0000 (18:36 +0000)
SVN-Revision: 33449

package/base-files/files/etc/uci-defaults/migrate-sysctl

index 2250c57802d738c01b892ff5b94968703c4b4665..b3796a4d2d8092320c5b4225d8421cf56ec177eb 100644 (file)
@@ -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