scripts: fix wrong usage of '==' operator
authorJohn Crispin <john@openwrt.org>
Tue, 14 Oct 2014 12:21:11 +0000 (12:21 +0000)
committerJohn Crispin <john@openwrt.org>
Tue, 14 Oct 2014 12:21:11 +0000 (12:21 +0000)
commit20940138ac41e3eca54afefc34f65e40834be3ea
tree3c34846e48daad4595ab2ab2c00f1068022ee62f
parent8267c0e2ac371fe0f93ba34f745976acf358a253
scripts: fix wrong usage of '==' operator

[base-files] shell-scripting: fix wrong usage of '==' operator

normally the '==' is used for invoking a regex parser and is a bashism.
all of the fixes just want to compare a string. the used busybox-ash
will silently "ignore" this mistake, but make it portable/clean at least.

this patch does not change the behavior/logic of the scripts.

Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com>
SVN-Revision: 42911
23 files changed:
package/base-files/files/lib/functions/uci-defaults-new.sh
package/base-files/files/lib/functions/uci-defaults.sh
package/base-files/files/sbin/led.sh
package/base-files/files/sbin/wifi
package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
package/network/config/qos-scripts/files/usr/bin/qos-stat
package/network/services/dropbear/files/dropbear.init
package/network/services/hostapd/files/wpa_supplicant.sh
package/network/services/openvpn/files/openvpn.init
package/network/services/relayd/files/relay.init
package/system/fstools/files/snapshot
package/system/procd/files/nand.sh
package/system/procd/files/procd.sh
scripts/flashing/flash.sh
target/linux/ar71xx/base-files/etc/uci-defaults/03_network-switchX-migration
target/linux/ar71xx/base-files/etc/uci-defaults/04_led_migration
target/linux/brcm2708/image/gen_rpi_sdcard_img.sh
target/linux/brcm47xx/base-files/lib/preinit/15_set_preinit_interface_brcm
target/linux/ixp4xx/base-files/lib/preinit/05_set_ether_mac_ixp4xx
target/linux/ramips/base-files/etc/hotplug.d/usb/10-motion
target/linux/ramips/base-files/lib/preinit/04_handle_checksumming
target/linux/sunxi/image/gen_sunxi_sdcard_img.sh
target/linux/x86_64/image/gen_image_generic.sh