[openwrt/openwrt] base-files: replace fgrep with grep -F

LEDE Commits lede-commits at lists.infradead.org
Sun Feb 6 15:50:20 PST 2022


hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/7994461a5a1c2cdd8bf4cc3fa38c4d496534f080

commit 7994461a5a1c2cdd8bf4cc3fa38c4d496534f080
Author: Rosen Penev <rosenp at gmail.com>
AuthorDate: Sat Feb 5 09:38:53 2022 -0800

    base-files: replace fgrep with grep -F
    
    fgrep is deprecated and replaced by grep -F. The latter is used
    throughout the tree whereas this is the only usage of the former.
    
    Signed-off-by: Rosen Penev <rosenp at gmail.com>
---
 package/base-files/files/etc/profile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/base-files/files/etc/profile b/package/base-files/files/etc/profile
index 0beff1608f..76b149b9fa 100644
--- a/package/base-files/files/etc/profile
+++ b/package/base-files/files/etc/profile
@@ -3,7 +3,7 @@
 [ -f /etc/banner ] && cat /etc/banner
 [ -n "$FAILSAFE" ] && cat /etc/banner.failsafe
 
-fgrep -sq '/ overlay ro,' /proc/mounts && {
+grep -Fsq '/ overlay ro,' /proc/mounts && {
 	echo 'Your JFFS2-partition seems full and overlayfs is mounted read-only.'
 	echo 'Please try to remove files from /overlay/upper/... and reboot!'
 }



More information about the lede-commits mailing list