From 80b3d8c42573d500edfb7f3da30f48a2c1e14334 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Sat, 15 May 2021 12:56:33 +0200 Subject: [PATCH] try automatic switching to busybox for uuencode and sha256sum --- session.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/session.sh b/session.sh index b52ac0a..b9cef4d 100755 --- a/session.sh +++ b/session.sh @@ -3,6 +3,13 @@ [ -n "$include_session" ] && return 0 include_session="$0" +if ! which uuencode >/dev/null; then + uuencode() { busybox uuencode "$@"; } +fi +if ! which sha256sum >/dev/null; then + sha256sum() { busybox sha256sum "$@"; } +fi + _DATE="$(date +%s)" SESSION_TIMEOUT="${SESSION_TIMEOUT:-7200}" -- 2.39.2