only set alias less=more when less is not installed
authorFelix Fietkau <nbd@openwrt.org>
Mon, 4 Jul 2005 20:19:06 +0000 (20:19 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 4 Jul 2005 20:19:06 +0000 (20:19 +0000)
SVN-Revision: 1341

openwrt/target/default/target_skeleton/etc/profile

index b63dc8ee32f1c2caa74c72e6d5b777abb5a579d9..1d98ae3402e42707a17e8c062659bb3e523fb9be 100644 (file)
@@ -4,7 +4,7 @@
 export PATH=/bin:/sbin:/usr/bin:/usr/sbin
 export PS1='\u@\h:\w\$ '
 
-alias less=more
+[ -x /usr/bin/less ] || alias less=more
 alias vim=vi
 
 arp() { cat /proc/net/arp; }