target/linux: replace egrep with grep -E
[openwrt/staging/hauke.git] / target / linux / mvebu / cortexa9 / base-files / lib / upgrade / linksys.sh
index aaa32eb4ea787bc1dfbc662d368948104b474b41..826bf8c9b50f0ecfce13c91d230d72786c34ffba 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
                        ;;