summaryrefslogtreecommitdiffstats
path: root/target/linux/ipq806x
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2022-02-05 09:42:42 -0800
committerHauke Mehrtens <hauke@hauke-m.de>2022-02-07 00:03:27 +0100
commit8cfce165a7e3605c22b045cdc1f745b4d6b49fb9 (patch)
treec802cdab7112aaff02a6fc35176a1619ec9ae3f0 /target/linux/ipq806x
parent7994461a5a1c2cdd8bf4cc3fa38c4d496534f080 (diff)
downloadopenwrt-8cfce165a7e3605c22b045cdc1f745b4d6b49fb9.tar.gz
openwrt-8cfce165a7e3605c22b045cdc1f745b4d6b49fb9.tar.bz2
openwrt-8cfce165a7e3605c22b045cdc1f745b4d6b49fb9.zip
target/linux: replace egrep with grep -E
egrep is deprecated and replaced by grep -E. The latter is used throughout the tree. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'target/linux/ipq806x')
-rw-r--r--target/linux/ipq806x/base-files/lib/upgrade/linksys.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ipq806x/base-files/lib/upgrade/linksys.sh b/target/linux/ipq806x/base-files/lib/upgrade/linksys.sh
index 29f4763451..1feffc7aa2 100644
--- a/target/linux/ipq806x/base-files/lib/upgrade/linksys.sh
+++ b/target/linux/ipq806x/base-files/lib/upgrade/linksys.sh
@@ -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
;;