From: Huangbin Zhan Date: Fri, 27 Nov 2020 11:02:47 +0000 (+0800) Subject: base-files: fix alias more to properly detect /usr/bin/more X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=451c1eb8c2a87bbf486f2883518bbb8c1c06848f;p=openwrt%2Fstaging%2Fnbd.git base-files: fix alias more to properly detect /usr/bin/more Package more is installed to /usr/bin rather than /bin. Signed-off-by: Huangbin Zhan --- diff --git a/package/base-files/files/etc/shinit b/package/base-files/files/etc/shinit index 6b715c1ef9..dccba34b69 100644 --- a/package/base-files/files/etc/shinit +++ b/package/base-files/files/etc/shinit @@ -1,4 +1,4 @@ -[ -x /bin/more ] || alias more=less +[ -x /bin/more ] || [ -x /usr/bin/more ] || alias more=less [ -x /usr/bin/vim ] && alias vi=vim || alias vim=vi alias ll='ls -alF --color=auto'