~mil/sxmo-utils

18361bd681abb5e614604ad6aa25105d4a09704f — Stacy Harper 8 months ago cddec42
Revert "Use less as sms pager to allow scrollback"

This reverts commit 3bb3fb6094a78248e9850a5bf5c5d413e00c4e48.

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>
M scripts/core/sxmo_common.sh => scripts/core/sxmo_common.sh +2 -0
@@ 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


M scripts/modem/sxmo_modemmonitor.sh => scripts/modem/sxmo_modemmonitor.sh +1 -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"


M scripts/modem/sxmo_modemtext.sh => scripts/modem/sxmo_modemtext.sh +2 -2
@@ 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
}