target/linux: replace egrep with grep -E
[openwrt/openwrt.git] / target / linux / kirkwood / base-files / lib / upgrade / linksys.sh
index 1f2596ea880cceb54699f66d03d2c64e3ec8a4b0..7e20276fe5f6f307086f94ac2a1c322c32b6131e 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
                kernel|rootfs)
                        cur_boot_part=1
                        ;;