target/linux: replace egrep with grep -E
[openwrt/staging/chunkeey.git] / target / linux / ipq806x / base-files / lib / upgrade / linksys.sh
index 29f476345118298801e6e6ff07df7ddf6d33b371..1feffc7aa2420b7ef4ba9d0a29a2cd1657984f7a 100644 (file)
@@ -9,7 +9,7 @@ linksys_get_target_firmware() {
        cur_boot_part=$(/usr/sbin/fw_printenv -n boot_part)
        if [ -z "${cur_boot_part}" ] ; then
                mtd_ubi0=$(cat /sys/devices/virtual/ubi/ubi0/mtd_num)
-               case $(egrep ^mtd${mtd_ubi0}: /proc/mtd | cut -d '"' -f 2) in
+               case $(grep -E ^mtd${mtd_ubi0}: /proc/mtd | cut -d '"' -f 2) in
                kernel1|rootfs1)
                        cur_boot_part=1
                        ;;