From: <abe...@us...> - 2017-05-24 13:54:20
|
Revision: 8333 http://sourceforge.net/p/astlinux/code/8333 Author: abelbeck Date: 2017-05-24 13:54:18 +0000 (Wed, 24 May 2017) Log Message: ----------- upgrade-RUNNIX-image script, add automatic support for runnix-0.5 if PAE is available Modified Paths: -------------- branches/1.0/project/astlinux/target_skeleton/usr/sbin/upgrade-RUNNIX-image Modified: branches/1.0/project/astlinux/target_skeleton/usr/sbin/upgrade-RUNNIX-image =================================================================== --- branches/1.0/project/astlinux/target_skeleton/usr/sbin/upgrade-RUNNIX-image 2017-05-24 13:27:38 UTC (rev 8332) +++ branches/1.0/project/astlinux/target_skeleton/usr/sbin/upgrade-RUNNIX-image 2017-05-24 13:54:18 UTC (rev 8333) @@ -6,8 +6,9 @@ # green color message for web interface GREEN=0 # -# Default RUNNIX Repository -SRC_URL="https://mirror.astlinux-project.org/runnix4" +# Default RUNNIX Repositories +SRC_URL4="https://mirror.astlinux-project.org/runnix4" +SRC_URL5="https://mirror.astlinux-project.org/runnix5" # # Default RUNNIX Version (use if no local 'ver' file) RUN_VER="runnix-0.2.1" @@ -301,6 +302,13 @@ exit $ORANGE fi +# runnix-0.5 requires a CPU with PAE +if grep -q '^flags.*:.* pae ' /proc/cpuinfo; then + SRC_URL="$SRC_URL5" +else + SRC_URL="$SRC_URL4" +fi + case $1 in check) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |