@@ -26,10 +26,12 @@ tgta16=16.20.2 # need armv6l latest from https://unofficial-builds.nodejs.org/
2626tgtl16=16.20.2 # need x86 latest from https://unofficial-builds.nodejs.org/download/release/
2727tgta18=18.20.8 # need armv6l latest from https://unofficial-builds.nodejs.org/download/release/
2828tgtl18=18.20.8 # need x86 latest from https://unofficial-builds.nodejs.org/download/release/
29- tgta20=20.19.4 # need armv6l latest from https://unofficial-builds.nodejs.org/download/release/
30- tgtl20=20.19.4 # need x86 latest from https://unofficial-builds.nodejs.org/download/release/
31- tgta22=22.19.0 # need armv6l latest from https://unofficial-builds.nodejs.org/download/release/
32- tgtl22=None # need x86 latest from https://unofficial-builds.nodejs.org/download/release/
29+ tgta20=20.19.5 # need armv6l latest from https://unofficial-builds.nodejs.org/download/release/
30+ tgtl20=20.19.5 # need x86 latest from https://unofficial-builds.nodejs.org/download/release/
31+ tgta22=22.21.0 # need armv6l latest from https://unofficial-builds.nodejs.org/download/release/
32+ tgtl22=None
33+ tgta24=None
34+ tgtl24=None
3335
3436usage () {
3537 cat << EOL
@@ -111,6 +113,10 @@ if [ $# -gt 0 ]; then
111113 NODE_VERSION=" 22"
112114 shift
113115 ;;
116+ --node24)
117+ NODE_VERSION=" 24"
118+ shift
119+ ;;
114120 --restart)
115121 RESTART=" y"
116122 shift
@@ -262,14 +268,14 @@ if [[ "$(uname -m)" =~ "i686" ]] || [[ "$(uname -m)" =~ "x86_64" && "$(getconf L
262268 echo " There are no known later Nodejs builds for 32 bit systems."
263269 echo " "
264270 echo " ************************************************************"
265- # elif uname -m | grep -q armv6l ; then
266- # echo " "
267- # echo "************************************************************"
268- # echo " "
269- # echo " Warning : Nodejs v20 goes EOL in April 2026 ."
270- # echo " There are no known later Nodejs builds for Arm v6 systems."
271- # echo " "
272- # echo "************************************************************"
271+ elif uname -m | grep -q armv6l ; then
272+ echo " "
273+ echo " ************************************************************"
274+ echo " "
275+ echo " Warning : Nodejs v22 goes EOL in April 2027 ."
276+ echo " There are no known later Nodejs builds for Arm v6 systems."
277+ echo " "
278+ echo " ************************************************************"
273279fi
274280echo " "
275281echo Node-RED update script for : $NODERED_USER @` hostname`
@@ -456,8 +462,11 @@ case $yn in
456462 tgtl=$tgtl20
457463 tgta=$tgta20
458464 elif [[ " $NODE_VERSION " == " 22" ]]; then
459- tgtl=" None "
465+ tgtl=$tgtl22
460466 tgta=$tgta22
467+ elif [[ " $NODE_VERSION " == " 24" ]]; then
468+ tgtl=$tgtl24
469+ tgta=$tgta24
461470 else
462471 tgtl=$tgtl20
463472 tgta=$tgta20
0 commit comments