scripts: fix wrong usage of '==' operator
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 14 Oct 2014 12:21:11 +0000 (12:21 +0000)
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 14 Oct 2014 12:21:11 +0000 (12:21 +0000)
commit80abda71b198175734a7f9ae02a982810bc4a51c
treed3a0f88b38cdfc9e7a6cb1246fd98d8b0249990a
parent6472341e9ce180f55f6fff5e73370c9d400ac8fd
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42911 3c298f89-4303-0410-b956-a3cf2f4a3e73
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