Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
docs:guide-user:luci:luci.essentials [2023/04/02 23:43] – [Offline installation] vgaeteradocs:guide-user:luci:luci.essentials [2023/04/03 01:00] – [Offline installation] vgaetera
Line 167: Line 167:
  
 # Fetch OpenWrt release # Fetch OpenWrt release
-eval $(ssh openwrt cat /etc/os-release) +eval $(ssh "${OWRT_HOST}" cat /etc/os-release)
-if [ "${VERSION_ID}" = "snapshot"+
-then OWRT_DIR="../snapshots" +
-else OWRT_DIR="${VERSION_ID}" +
-fi+
  
 # LuCI packages and repos # LuCI packages and repos
-OWRT_URL="https://downloads.${HOME_URL#*//}releases/${OWRT_DIR}/"+case "${VERSION_ID}" in 
 +(snapshot) OWRT_URL="https://downloads.${HOME_URL#*//}snapshots/" ;; 
 +(*) OWRT_URL="https://downloads.${HOME_URL#*//}releases/${VERSION_ID}/" ;; 
 +esac
 OWRT_CORE="libiwinfo libiwinfo-lua" OWRT_CORE="libiwinfo libiwinfo-lua"
 OWRT_COREURL="${OWRT_URL}targets/${OPENWRT_BOARD}/packages" OWRT_COREURL="${OWRT_URL}targets/${OPENWRT_BOARD}/packages"
  • Last modified: 2024/10/27 22:35
  • by palebloodsky