Revert "Use less as sms pager to allow scrollback"

This reverts commit 3bb3fb6094.

We cannot use this special less argument as it is not busybox less
compatible.

I add busybox aliases to not reproduce the error in the future.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
master
Stacy Harper 4 years ago committed by Maarten van Gompel
parent cddec4205d
commit 18361bd681
  1. 2
      scripts/core/sxmo_common.sh
  2. 2
      scripts/modem/sxmo_modemmonitor.sh
  3. 4
      scripts/modem/sxmo_modemtext.sh

@ -32,6 +32,8 @@ alias find="busybox find"
alias pkill="busybox pkill"
alias pgrep="busybox pgrep"
alias xargs="busybox xargs"
alias less="busybox less"
alias tail="busybox tail"
SXMO_COMMON_INCLUDED=1

@ -172,7 +172,7 @@ checkfornewtexts() {
sxmo_notificationwrite.sh \
random \
"st -T '$NUM SMS' -e less +F '$LOGDIR/$NUM/sms.txt'" \
"st -T '$NUM SMS' -e tail -n9999 -f '$LOGDIR/$NUM/sms.txt'" \
"$LOGDIR/$NUM/sms.txt" \
"Message - $CONTACTNAME: $TEXT"

@ -108,9 +108,9 @@ senddrafttextmenu() {
tailtextlog() {
if [ "$TERMMODE" != "true" ]; then
st -T "$1 SMS" -e less +F "$LOGDIR/$1/sms.txt"
st -T "$1 SMS" -e tail -n9999 -f "$LOGDIR/$1/sms.txt"
else
less +F "$LOGDIR/$1/sms.txt"
tail -n9999 -f "$LOGDIR/$1/sms.txt"
fi
}

Loading…
Cancel
Save